Loading clang/lib/CodeGen/CGKokkos.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -313,6 +313,10 @@ bool CodeGenFunction::EmitKokkosParallelFor(const CallExpr *CE, InductionVarDecl = EmitKokkosParallelForInductionVar(Lambda).at(0); EmitVarDecl(*InductionVarDecl); Address Addr = GetAddrOfLocalVar(InductionVarDecl); llvm::Value *Zero = llvm::ConstantInt::get(ConvertType(InductionVarDecl->getType()), 0); Builder.CreateStore(Zero, Addr); // Create the sync region. PushSyncRegion(); llvm::Instruction *SRStart = EmitSyncRegionStart(); Loading Loading
clang/lib/CodeGen/CGKokkos.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -313,6 +313,10 @@ bool CodeGenFunction::EmitKokkosParallelFor(const CallExpr *CE, InductionVarDecl = EmitKokkosParallelForInductionVar(Lambda).at(0); EmitVarDecl(*InductionVarDecl); Address Addr = GetAddrOfLocalVar(InductionVarDecl); llvm::Value *Zero = llvm::ConstantInt::get(ConvertType(InductionVarDecl->getType()), 0); Builder.CreateStore(Zero, Addr); // Create the sync region. PushSyncRegion(); llvm::Instruction *SRStart = EmitSyncRegionStart(); Loading