reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
 3196   CGF.StartFunction(GlobalDecl(), C.VoidTy, Fn, CGFI, Args, Loc, Loc);
 3198   CGBuilderTy &Bld = CGF.Builder;
 3223   llvm::Value *ThreadID = getNVPTXThreadID(CGF);
 3225   llvm::Value *LaneID = getNVPTXLaneID(CGF);
 3227   llvm::Value *WarpID = getNVPTXWarpID(CGF);
 3229   Address AddrReduceListArg = CGF.GetAddrOfLocalVar(&ReduceListArg);
 3232           CGF.EmitLoadOfScalar(AddrReduceListArg, /*Volatile=*/false,
 3234           CGF.ConvertTypeForMem(ReductionArrayTy)->getPointerTo()),
 3235       CGF.getPointerAlign());
 3253       llvm::Type *CopyType = CGF.ConvertTypeForMem(CType);
 3260         CntAddr = CGF.CreateMemTemp(C.IntTy, ".cnt.addr");
 3261         CGF.EmitStoreOfScalar(llvm::Constant::getNullValue(CGM.IntTy), CntAddr,
 3263         PrecondBB = CGF.createBasicBlock("precond");
 3264         ExitBB = CGF.createBasicBlock("exit");
 3265         llvm::BasicBlock *BodyBB = CGF.createBasicBlock("body");
 3267         (void)ApplyDebugLocation::CreateEmpty(CGF);
 3268         CGF.EmitBlock(PrecondBB);
 3269         Cnt = CGF.EmitLoadOfScalar(CntAddr, /*Volatile=*/false, C.IntTy, Loc);
 3273         CGF.EmitBlock(BodyBB);
 3276       CGM.getOpenMPRuntime().emitBarrierCall(CGF, Loc, OMPD_unknown,
 3279       llvm::BasicBlock *ThenBB = CGF.createBasicBlock("then");
 3280       llvm::BasicBlock *ElseBB = CGF.createBasicBlock("else");
 3281       llvm::BasicBlock *MergeBB = CGF.createBasicBlock("ifcont");
 3286       CGF.EmitBlock(ThenBB);
 3290       llvm::Value *ElemPtrPtr = CGF.EmitLoadOfScalar(
 3312           CGF.EmitLoadOfScalar(ElemPtr, /*Volatile=*/false, CType, Loc);
 3314       CGF.EmitStoreOfScalar(Elem, MediumPtr, /*Volatile=*/true, CType);
 3318       CGF.EmitBlock(ElseBB);
 3321       CGF.EmitBlock(MergeBB);
 3324       CGM.getOpenMPRuntime().emitBarrierCall(CGF, Loc, OMPD_unknown,
 3331       llvm::BasicBlock *W0ThenBB = CGF.createBasicBlock("then");
 3332       llvm::BasicBlock *W0ElseBB = CGF.createBasicBlock("else");
 3333       llvm::BasicBlock *W0MergeBB = CGF.createBasicBlock("ifcont");
 3335       Address AddrNumWarpsArg = CGF.GetAddrOfLocalVar(&NumWarpsArg);
 3336       llvm::Value *NumWarpsVal = CGF.EmitLoadOfScalar(
 3344       CGF.EmitBlock(W0ThenBB);
 3356       llvm::Value *TargetElemPtrVal = CGF.EmitLoadOfScalar(
 3367           CGF.EmitLoadOfScalar(SrcMediumPtr, /*Volatile=*/true, CType, Loc);
 3368       CGF.EmitStoreOfScalar(SrcMediumValue, TargetElemPtr, /*Volatile=*/false,
 3372       CGF.EmitBlock(W0ElseBB);
 3375       CGF.EmitBlock(W0MergeBB);
 3379         CGF.EmitStoreOfScalar(Cnt, CntAddr, /*Volatile=*/false, C.IntTy);
 3380         CGF.EmitBranch(PrecondBB);
 3381         (void)ApplyDebugLocation::CreateEmpty(CGF);
 3382         CGF.EmitBlock(ExitBB);
 3389   CGF.FinishFunction();