Home
last modified time | relevance | path

Searched refs:CGF (Results 1 – 25 of 67) sorted by relevance

123

/external/clang/lib/CodeGen/
DCGOpenMPRuntime.cpp69 void EmitBody(CodeGenFunction &CGF, const Stmt *S) override;
73 virtual LValue getThreadIDVariableLValue(CodeGenFunction &CGF);
140 void Enter(CodeGenFunction &CGF) override { in Enter() argument
143 auto PartIdLVal = CGF.EmitLoadOfPointerLValue( in Enter()
144 CGF.GetAddrOfLocalVar(PartIDVar), in Enter()
146 auto *Res = CGF.EmitLoadOfScalar(PartIdLVal, SourceLocation()); in Enter()
147 auto *DoneBB = CGF.createBasicBlock(".untied.done."); in Enter()
148 UntiedSwitch = CGF.Builder.CreateSwitch(Res, DoneBB); in Enter()
149 CGF.EmitBlock(DoneBB); in Enter()
150 CGF.EmitBranchThroughCleanup(CGF.ReturnBlock); in Enter()
[all …]
DCGOpenMPRuntimeNVPTX.cpp24 llvm::Value *CGOpenMPRuntimeNVPTX::getNVPTXWarpSize(CodeGenFunction &CGF) { in getNVPTXWarpSize() argument
25 CGBuilderTy &Bld = CGF.Builder; in getNVPTXWarpSize()
33 llvm::Value *CGOpenMPRuntimeNVPTX::getNVPTXThreadID(CodeGenFunction &CGF) { in getNVPTXThreadID() argument
34 CGBuilderTy &Bld = CGF.Builder; in getNVPTXThreadID()
42 llvm::Value *CGOpenMPRuntimeNVPTX::getNVPTXNumThreads(CodeGenFunction &CGF) { in getNVPTXNumThreads() argument
43 CGBuilderTy &Bld = CGF.Builder; in getNVPTXNumThreads()
51 void CGOpenMPRuntimeNVPTX::getNVPTXCTABarrier(CodeGenFunction &CGF) { in getNVPTXCTABarrier() argument
52 CGBuilderTy &Bld = CGF.Builder; in getNVPTXCTABarrier()
58 void CGOpenMPRuntimeNVPTX::syncCTAThreads(CodeGenFunction &CGF) { in syncCTAThreads() argument
59 getNVPTXCTABarrier(CGF); in syncCTAThreads()
[all …]
DCGExprAgg.cpp34 CodeGenFunction &CGF; member in __anon72f122a10111::AggExprEmitter
58 return CGF.CreateAggTemp(T, "agg.tmp.ensured"); in EnsureSlot()
62 Dest = CGF.CreateAggTemp(T, "agg.tmp.ensured"); in EnsureDest()
67 : CGF(cgf), Builder(CGF.Builder), Dest(Dest), in AggExprEmitter()
91 if (CGF.getLangOpts().getGC() && TypeRequiresGCollection(T)) in needsGC()
103 ApplyDebugLocation DL(CGF, E); in Visit()
108 CGF.ErrorUnsupported(S, "aggregate expression"); in VisitStmt()
129 = CGF.tryEmitAsConstant(E)) { in VisitDeclRefExpr()
130 EmitFinalDestCopy(E->getType(), result.getReferenceLValue(CGF, E)); in VisitDeclRefExpr()
173 CodeGenFunction::CXXDefaultInitExprScope Scope(CGF); in VisitCXXDefaultInitExpr()
[all …]
DCGObjCRuntime.cpp86 LValue CGObjCRuntime::EmitValueForIvarAtOffset(CodeGen::CodeGenFunction &CGF, in EmitValueForIvarAtOffset() argument
94 llvm::Type *LTy = CGF.CGM.getTypes().ConvertTypeForMem(IvarTy); in EmitValueForIvarAtOffset()
95 llvm::Value *V = CGF.Builder.CreateBitCast(BaseValue, CGF.Int8PtrTy); in EmitValueForIvarAtOffset()
96 V = CGF.Builder.CreateInBoundsGEP(V, Offset, "add.ptr"); in EmitValueForIvarAtOffset()
99 V = CGF.Builder.CreateBitCast(V, llvm::PointerType::getUnqual(LTy)); in EmitValueForIvarAtOffset()
100 LValue LV = CGF.MakeNaturalAlignAddrLValue(V, IvarTy); in EmitValueForIvarAtOffset()
119 uint64_t FieldBitOffset = LookupFieldBitOffset(CGF.CGM, OID, nullptr, Ivar); in EmitValueForIvarAtOffset()
120 uint64_t BitOffset = FieldBitOffset % CGF.CGM.getContext().getCharWidth(); in EmitValueForIvarAtOffset()
121 uint64_t AlignmentBits = CGF.CGM.getTarget().getCharAlign(); in EmitValueForIvarAtOffset()
122 uint64_t BitFieldSize = Ivar->getBitWidthValue(CGF.getContext()); in EmitValueForIvarAtOffset()
[all …]
DCGStmtOpenMP.cpp30 void emitPreInitStmt(CodeGenFunction &CGF, const OMPExecutableDirective &S) { in emitPreInitStmt() argument
36 CGF.EmitVarDecl(cast<VarDecl>(*I)); in emitPreInitStmt()
39 CGF.EmitAutoVarAlloca(cast<VarDecl>(*I)); in emitPreInitStmt()
40 CGF.EmitAutoVarCleanups(Emission); in emitPreInitStmt()
49 static bool isCapturedVar(CodeGenFunction &CGF, const VarDecl *VD) { in isCapturedVar() argument
50 return CGF.LambdaCaptureFields.lookup(VD) || in isCapturedVar()
51 (CGF.CapturedStmtInfo && CGF.CapturedStmtInfo->lookup(VD)) || in isCapturedVar()
52 (CGF.CurCodeDecl && isa<BlockDecl>(CGF.CurCodeDecl)); in isCapturedVar()
56 OMPLexicalScope(CodeGenFunction &CGF, const OMPExecutableDirective &S, in OMPLexicalScope() argument
58 : CodeGenFunction::LexicalScope(CGF, S.getSourceRange()), in OMPLexicalScope()
[all …]
DCGCXXABI.cpp23 void CGCXXABI::ErrorUnsupportedABI(CodeGenFunction &CGF, StringRef S) { in ErrorUnsupportedABI() argument
24 DiagnosticsEngine &Diags = CGF.CGM.getDiags(); in ErrorUnsupportedABI()
27 Diags.Report(CGF.getContext().getFullLoc(CGF.CurCodeDecl->getLocation()), in ErrorUnsupportedABI()
77 CodeGenFunction &CGF, const Expr *E, Address This, in EmitLoadOfMemberFunctionPointer() argument
80 ErrorUnsupportedABI(CGF, "calls through member pointers"); in EmitLoadOfMemberFunctionPointer()
93 CGCXXABI::EmitMemberDataPointerAddress(CodeGenFunction &CGF, const Expr *E, in EmitMemberDataPointerAddress() argument
96 ErrorUnsupportedABI(CGF, "loads of member pointers"); in EmitMemberDataPointerAddress()
97 llvm::Type *Ty = CGF.ConvertType(MPT->getPointeeType()) in EmitMemberDataPointerAddress()
102 llvm::Value *CGCXXABI::EmitMemberPointerConversion(CodeGenFunction &CGF, in EmitMemberPointerConversion() argument
105 ErrorUnsupportedABI(CGF, "member function pointer conversions"); in EmitMemberPointerConversion()
[all …]
DCGExprScalar.cpp62 CodeGenFunction &CGF; member in __anonf981b7880111::ScalarExprEmitter
69 : CGF(cgf), Builder(CGF.Builder), IgnoreResultAssign(ira), in ScalarExprEmitter()
83 llvm::Type *ConvertType(QualType T) { return CGF.ConvertType(T); } in ConvertType()
84 LValue EmitLValue(const Expr *E) { return CGF.EmitLValue(E); } in EmitLValue()
86 return CGF.EmitCheckedLValue(E, TCK); in EmitCheckedLValue()
93 return CGF.EmitLoadOfLValue(LV, Loc).getScalarVal(); in EmitLoadOfLValue()
123 Value *AlignmentValue = CGF.EmitScalarExpr(AVAttr->getAlignment()); in EmitLValueAlignmentAssumption()
125 CGF.EmitAlignmentAssumption(V, AlignmentCI->getZExtValue()); in EmitLValueAlignmentAssumption()
204 ApplyDebugLocation DL(CGF, E); in Visit()
209 S->dump(CGF.getContext().getSourceManager()); in VisitStmt()
[all …]
DCGCXXABI.h52 ImplicitParamDecl *getThisDecl(CodeGenFunction &CGF) { in getThisDecl() argument
53 return CGF.CXXABIThisDecl; in getThisDecl()
55 llvm::Value *getThisValue(CodeGenFunction &CGF) { in getThisValue() argument
56 return CGF.CXXABIThisValue; in getThisValue()
58 Address getThisAddress(CodeGenFunction &CGF) { in getThisAddress() argument
59 return Address(CGF.CXXABIThisValue, CGF.CXXABIThisAlignment); in getThisAddress()
63 void ErrorUnsupportedABI(CodeGenFunction &CGF, StringRef S);
68 ImplicitParamDecl *&getStructorImplicitParamDecl(CodeGenFunction &CGF) { in getStructorImplicitParamDecl() argument
69 return CGF.CXXStructorImplicitParamDecl; in getStructorImplicitParamDecl()
71 llvm::Value *&getStructorImplicitParamValue(CodeGenFunction &CGF) { in getStructorImplicitParamValue() argument
[all …]
DCGAtomic.cpp30 CodeGenFunction &CGF; member in __anon56f3ab900111::AtomicInfo
43 AtomicInfo(CodeGenFunction &CGF, LValue &lvalue) in AtomicInfo() argument
44 : CGF(CGF), AtomicSizeInBits(0), ValueSizeInBits(0), in AtomicInfo()
47 ASTContext &C = CGF.getContext(); in AtomicInfo()
54 EvaluationKind = CGF.getEvaluationKind(ValueTy); in AtomicInfo()
83 auto VoidPtrAddr = CGF.EmitCastToVoidPtr(lvalue.getBitFieldPointer()); in AtomicInfo()
87 VoidPtrAddr = CGF.Builder.CreateConstGEP1_64( in AtomicInfo()
89 auto Addr = CGF.Builder.CreatePointerBitCastOrAddrSpaceCast( in AtomicInfo()
91 CGF.Builder.getIntNTy(AtomicSizeInBits)->getPointerTo(), in AtomicInfo()
121 AtomicTy = ValueTy = CGF.getContext().getExtVectorType( in AtomicInfo()
[all …]
DItaniumCXXABI.cpp116 EmitLoadOfMemberFunctionPointer(CodeGenFunction &CGF,
124 EmitMemberDataPointerAddress(CodeGenFunction &CGF, const Expr *E,
129 llvm::Value *EmitMemberPointerConversion(CodeGenFunction &CGF,
144 llvm::Value *EmitMemberPointerComparison(CodeGenFunction &CGF,
149 llvm::Value *EmitMemberPointerIsNotNull(CodeGenFunction &CGF,
153 void emitVirtualObjectDelete(CodeGenFunction &CGF, const CXXDeleteExpr *DE,
162 void emitRethrow(CodeGenFunction &CGF, bool isNoReturn) override;
163 void emitThrow(CodeGenFunction &CGF, const CXXThrowExpr *E) override;
165 void emitBeginCatch(CodeGenFunction &CGF, const CXXCatchStmt *C) override;
168 emitTerminateForUnexpectedException(CodeGenFunction &CGF,
[all …]
DCGExprCXX.cpp28 commonEmitCXXMemberOrOperatorCall(CodeGenFunction &CGF, const CXXMethodDecl *MD, in commonEmitCXXMemberOrOperatorCall() argument
43 CGF.EmitTypeCheck( in commonEmitCXXMemberOrOperatorCall()
46 CallLoc, This, CGF.getContext().getRecordType(MD->getParent())); in commonEmitCXXMemberOrOperatorCall()
49 Args.add(RValue::get(This), MD->getThisType(CGF.getContext())); in commonEmitCXXMemberOrOperatorCall()
63 CGF.EmitCallArgs(Args, FPT, drop_begin(CE->arguments(), ArgsToSkip), in commonEmitCXXMemberOrOperatorCall()
352 static void EmitNullBaseClassInitialization(CodeGenFunction &CGF, in EmitNullBaseClassInitialization() argument
358 DestPtr = CGF.Builder.CreateElementBitCast(DestPtr, CGF.Int8Ty); in EmitNullBaseClassInitialization()
360 const ASTRecordLayout &Layout = CGF.getContext().getASTRecordLayout(Base); in EmitNullBaseClassInitialization()
370 CharUnits VBPtrWidth = CGF.getPointerSize(); in EmitNullBaseClassInitialization()
372 CGF.CGM.getCXXABI().getVBPtrOffsets(Base); in EmitNullBaseClassInitialization()
[all …]
DMicrosoftCXXABI.cpp115 void emitVirtualObjectDelete(CodeGenFunction &CGF, const CXXDeleteExpr *DE,
119 void emitRethrow(CodeGenFunction &CGF, bool isNoReturn) override;
120 void emitThrow(CodeGenFunction &CGF, const CXXThrowExpr *E) override;
122 void emitBeginCatch(CodeGenFunction &CGF, const CXXCatchStmt *C) override;
137 void EmitBadTypeidCall(CodeGenFunction &CGF) override;
138 llvm::Value *EmitTypeid(CodeGenFunction &CGF, QualType SrcRecordTy,
145 llvm::Value *EmitDynamicCastCall(CodeGenFunction &CGF, Address Value,
150 llvm::Value *EmitDynamicCastToVoid(CodeGenFunction &CGF, Address Value,
154 bool EmitBadCastCall(CodeGenFunction &CGF) override;
160 GetVirtualBaseClassOffset(CodeGenFunction &CGF, Address This,
[all …]
DCGObjC.cpp33 tryEmitARCRetainScalarExpr(CodeGenFunction &CGF, const Expr *e);
34 static RValue AdjustObjCObjectType(CodeGenFunction &CGF,
251 static RValue AdjustObjCObjectType(CodeGenFunction &CGF, QualType ExpT, in AdjustObjCObjectType() argument
257 llvm::Type *ExpLLVMTy = CGF.ConvertType(ExpT); in AdjustObjCObjectType()
262 return RValue::get(CGF.Builder.CreateBitCast(Result.getScalarVal(), in AdjustObjCObjectType()
489 void Emit(CodeGenFunction &CGF, Flags flags) override { in Emit()
490 const ObjCMethodDecl *method = cast<ObjCMethodDecl>(CGF.CurCodeDecl); in Emit()
499 llvm::Value *self = CGF.LoadObjCSelf(); in Emit()
502 CGF.CGM.getObjCRuntime().GenerateMessageSendSuper(CGF, ReturnValueSlot(), in Emit()
503 CGF.getContext().VoidTy, in Emit()
[all …]
DCGClass.cpp225 ApplyNonVirtualAndVirtualOffset(CodeGenFunction &CGF, Address addr, in ApplyNonVirtualAndVirtualOffset() argument
236 baseOffset = llvm::ConstantInt::get(CGF.PtrDiffTy, in ApplyNonVirtualAndVirtualOffset()
239 baseOffset = CGF.Builder.CreateAdd(virtualOffset, baseOffset); in ApplyNonVirtualAndVirtualOffset()
247 ptr = CGF.Builder.CreateBitCast(ptr, CGF.Int8PtrTy); in ApplyNonVirtualAndVirtualOffset()
248 ptr = CGF.Builder.CreateInBoundsGEP(ptr, baseOffset, "add.ptr"); in ApplyNonVirtualAndVirtualOffset()
255 alignment = CGF.CGM.getVBaseAlignment(addr.getAlignment(), in ApplyNonVirtualAndVirtualOffset()
482 void Emit(CodeGenFunction &CGF, Flags flags) override { in Emit()
484 cast<CXXMethodDecl>(CGF.CurCodeDecl)->getParent(); in Emit()
488 CGF.GetAddressOfDirectBaseInCompleteClass(CGF.LoadCXXThisAddress(), in Emit()
491 CGF.EmitCXXDestructorCall(D, Dtor_Base, BaseIsVirtual, in Emit()
[all …]
DCGOpenMPRuntime.h57 virtual void Enter(CodeGenFunction &CGF) {} in Enter() argument
58 virtual void Exit(CodeGenFunction &CGF) {} in Exit() argument
72 static void CallbackFn(intptr_t CodeGen, CodeGenFunction &CGF, in CallbackFn() argument
74 return (*reinterpret_cast<Callable *>(CodeGen))(CGF, Action); in CallbackFn()
88 void operator()(CodeGenFunction &CGF) const;
386 llvm::Value *emitUpdateLocation(CodeGenFunction &CGF, SourceLocation Loc,
425 virtual Address emitThreadIDAddress(CodeGenFunction &CGF, SourceLocation Loc);
429 llvm::Value *getThreadID(CodeGenFunction &CGF, SourceLocation Loc);
449 void emitThreadPrivateVarInit(CodeGenFunction &CGF, Address VDAddr,
490 TaskResultTy emitTaskInit(CodeGenFunction &CGF, SourceLocation Loc,
[all …]
DCGExprComplex.cpp48 CodeGenFunction &CGF; member in __anon60d41c0a0111::ComplexExprEmitter
54 : CGF(cgf), Builder(CGF.Builder), IgnoreReal(ir), IgnoreImag(ii) { in ComplexExprEmitter()
77 return EmitLoadOfLValue(CGF.EmitLValue(E), E->getExprLoc()); in EmitLoadOfLValue()
98 ApplyDebugLocation DL(CGF, E); in Visit()
103 S->dump(CGF.getContext().getSourceManager()); in VisitStmt()
119 if (CodeGenFunction::ConstantEmission result = CGF.tryEmitAsConstant(E)) { in VisitDeclRefExpr()
121 return EmitLoadOfLValue(result.getReferenceLValue(CGF, E), in VisitDeclRefExpr()
134 return CGF.EmitObjCMessageExpr(E).getComplexVal(); in VisitObjCMessageExpr()
140 return EmitLoadOfLValue(CGF.getOpaqueLValueMapping(E), E->getExprLoc()); in VisitOpaqueValueExpr()
141 return CGF.getOpaqueRValueMapping(E).getComplexVal(); in VisitOpaqueValueExpr()
[all …]
DCGCUDARuntime.cpp27 RValue CGCUDARuntime::EmitCUDAKernelCallExpr(CodeGenFunction &CGF, in EmitCUDAKernelCallExpr() argument
30 llvm::BasicBlock *ConfigOKBlock = CGF.createBasicBlock("kcall.configok"); in EmitCUDAKernelCallExpr()
31 llvm::BasicBlock *ContBlock = CGF.createBasicBlock("kcall.end"); in EmitCUDAKernelCallExpr()
33 CodeGenFunction::ConditionalEvaluation eval(CGF); in EmitCUDAKernelCallExpr()
34 CGF.EmitBranchOnBoolExpr(E->getConfig(), ContBlock, ConfigOKBlock, in EmitCUDAKernelCallExpr()
37 eval.begin(CGF); in EmitCUDAKernelCallExpr()
38 CGF.EmitBlock(ConfigOKBlock); in EmitCUDAKernelCallExpr()
47 llvm::Value *Callee = CGF.EmitScalarExpr(E->getCallee()); in EmitCUDAKernelCallExpr()
48 CGF.EmitCall(E->getCallee()->getType(), Callee, E, ReturnValue, TargetDecl); in EmitCUDAKernelCallExpr()
49 CGF.EmitBranch(ContBlock); in EmitCUDAKernelCallExpr()
[all …]
DCGObjCMac.cpp998 llvm::Value *EmitClassRefViaRuntime(CodeGenFunction &CGF,
1022 CodeGen::RValue EmitMessageSend(CodeGen::CodeGenFunction &CGF,
1098 llvm::Value *EmitClassRef(CodeGenFunction &CGF,
1101 llvm::Value *EmitClassRefFromId(CodeGenFunction &CGF,
1104 llvm::Value *EmitNSAutoreleasePoolClassRef(CodeGenFunction &CGF) override;
1180 llvm::Value *EmitSelector(CodeGenFunction &CGF, Selector Sel);
1181 Address EmitSelectorAddr(CodeGenFunction &CGF, Selector Sel);
1188 CodeGen::RValue GenerateMessageSend(CodeGen::CodeGenFunction &CGF,
1197 GenerateMessageSendSuper(CodeGen::CodeGenFunction &CGF,
1204 llvm::Value *GetClass(CodeGenFunction &CGF,
[all …]
DCGException.cpp218 const EHPersonality &EHPersonality::get(CodeGenFunction &CGF) { in get() argument
219 return get(CGF.CGM, dyn_cast_or_null<FunctionDecl>(CGF.CurCodeDecl)); in get()
336 static llvm::Constant *getCatchAllValue(CodeGenFunction &CGF) { in getCatchAllValue() argument
338 return llvm::ConstantPointerNull::get(CGF.Int8PtrTy); in getCatchAllValue()
347 void Emit(CodeGenFunction &CGF, Flags flags) override { in Emit()
348 CGF.EmitNounwindRuntimeCall(getFreeExceptionFn(CGF.CGM), exn); in Emit()
466 static void emitFilterDispatchBlock(CodeGenFunction &CGF, in emitFilterDispatchBlock() argument
475 CGF.EmitBlockAfterUses(dispatchBlock); in emitFilterDispatchBlock()
481 llvm::Value *selector = CGF.getSelectorFromSlot(); in emitFilterDispatchBlock()
482 llvm::BasicBlock *unexpectedBB = CGF.createBasicBlock("ehspec.unexpected"); in emitFilterDispatchBlock()
[all …]
DCGObjCRuntime.h85 LValue EmitValueForIvarAtOffset(CodeGen::CodeGenFunction &CGF,
98 void EmitTryCatchStmt(CodeGenFunction &CGF,
104 void EmitInitOfCatchParam(CodeGenFunction &CGF, llvm::Value *exn,
111 void EmitAtSynchronizedStmt(CodeGenFunction &CGF,
125 virtual llvm::Value *GetSelector(CodeGenFunction &CGF, Selector Sel) = 0;
132 virtual Address GetAddrOfSelector(CodeGenFunction &CGF, Selector Sel) = 0;
135 virtual llvm::Value *GetSelector(CodeGenFunction &CGF,
162 GenerateMessageSend(CodeGen::CodeGenFunction &CGF,
178 GenerateMessageSendSuper(CodeGen::CodeGenFunction &CGF,
191 virtual llvm::Value *GenerateProtocolRef(CodeGenFunction &CGF,
[all …]
DCodeGenFunction.h220 virtual void EmitBody(CodeGenFunction &CGF, const Stmt *S) { in EmitBody() argument
221 CGF.incrementProfileCounter(S); in EmitBody()
222 CGF.EmitStmt(S); in EmitBody()
247 CodeGenFunction &CGF;
250 CGCapturedStmtRAII(CodeGenFunction &CGF, in CGCapturedStmtRAII() argument
252 : CGF(CGF), PrevCapturedStmtInfo(CGF.CapturedStmtInfo) { in CGCapturedStmtRAII()
253 CGF.CapturedStmtInfo = NewCapturedStmtInfo; in CGCapturedStmtRAII()
255 ~CGCapturedStmtRAII() { CGF.CapturedStmtInfo = PrevCapturedStmtInfo; } in ~CGCapturedStmtRAII()
266 CodeGenFunction *CGF; variable
268 SanitizerScope(CodeGenFunction *CGF);
[all …]
DTargetInfo.cpp90 Address ABIInfo::EmitMSVAArg(CodeGenFunction &CGF, Address VAListAddr, in EmitMSVAArg() argument
241 static llvm::Value *emitRoundPointerUpToAlignment(CodeGenFunction &CGF, in emitRoundPointerUpToAlignment() argument
246 PtrAsInt = CGF.Builder.CreatePtrToInt(PtrAsInt, CGF.IntPtrTy); in emitRoundPointerUpToAlignment()
247 PtrAsInt = CGF.Builder.CreateAdd(PtrAsInt, in emitRoundPointerUpToAlignment()
248 llvm::ConstantInt::get(CGF.IntPtrTy, Align.getQuantity() - 1)); in emitRoundPointerUpToAlignment()
249 PtrAsInt = CGF.Builder.CreateAnd(PtrAsInt, in emitRoundPointerUpToAlignment()
250 llvm::ConstantInt::get(CGF.IntPtrTy, -Align.getQuantity())); in emitRoundPointerUpToAlignment()
251 PtrAsInt = CGF.Builder.CreateIntToPtr(PtrAsInt, in emitRoundPointerUpToAlignment()
271 static Address emitVoidPtrDirectVAArg(CodeGenFunction &CGF, in emitVoidPtrDirectVAArg() argument
280 if (VAListAddr.getElementType() != CGF.Int8PtrTy) in emitVoidPtrDirectVAArg()
[all …]
DCGOpenMPRuntimeNVPTX.h48 void emitEntryHeader(CodeGenFunction &CGF, EntryFunctionState &EST,
52 void emitEntryFooter(CodeGenFunction &CGF, EntryFunctionState &EST);
60 llvm::Value *getNVPTXWarpSize(CodeGenFunction &CGF);
63 llvm::Value *getNVPTXThreadID(CodeGenFunction &CGF);
66 llvm::Value *getNVPTXNumThreads(CodeGenFunction &CGF);
69 void getNVPTXCTABarrier(CodeGenFunction &CGF);
72 void syncCTAThreads(CodeGenFunction &CGF);
85 llvm::Value *getMasterThreadID(CodeGenFunction &CGF);
104 void emitWorkerLoop(CodeGenFunction &CGF, WorkerFunctionState &WST);
145 void emitNumTeamsClause(CodeGenFunction &CGF, const Expr *NumTeams,
[all …]
DCGCleanup.cpp36 DominatingValue<RValue>::saved_type::save(CodeGenFunction &CGF, RValue rv) { in save() argument
46 CGF.CreateDefaultAlignTempAlloca(V->getType(), "saved-rvalue"); in save()
47 CGF.Builder.CreateStore(V, addr); in save()
56 Address addr = CGF.CreateDefaultAlignTempAlloca(ComplexTy, "saved-complex"); in save()
57 CGF.Builder.CreateStore(V.first, in save()
58 CGF.Builder.CreateStructGEP(addr, 0, CharUnits())); in save()
60 CGF.CGM.getDataLayout().getTypeAllocSize(V.first->getType())); in save()
61 CGF.Builder.CreateStore(V.second, in save()
62 CGF.Builder.CreateStructGEP(addr, 1, offset)); in save()
73 CGF.CreateTempAlloca(V.getType(), CGF.getPointerAlign(), "saved-rvalue"); in save()
[all …]
DCGBlocks.cpp263 CodeGenFunction *CGF, in tryCaptureAsConstant() argument
289 return CGM.EmitConstantInit(*var, CGF); in tryCaptureAsConstant()
321 static void computeBlockInfo(CodeGenModule &CGM, CodeGenFunction *CGF, in computeBlockInfo() argument
348 assert(CGF && CGF->CurFuncDecl && isa<CXXMethodDecl>(CGF->CurFuncDecl) && in computeBlockInfo()
350 QualType thisType = cast<CXXMethodDecl>(CGF->CurFuncDecl)->getThisType(C); in computeBlockInfo()
384 if (llvm::Constant *constant = tryCaptureAsConstant(CGM, CGF, variable)) { in computeBlockInfo()
562 static void enterBlockScope(CodeGenFunction &CGF, BlockDecl *block) { in enterBlockScope() argument
563 assert(CGF.HaveInsertPoint()); in enterBlockScope()
567 *new CGBlockInfo(block, CGF.CurFn->getName()); in enterBlockScope()
568 blockInfo.NextBlockInfo = CGF.FirstBlockInfo; in enterBlockScope()
[all …]

123