Lines Matching refs:CGF
22 void CGCXXABI::ErrorUnsupportedABI(CodeGenFunction &CGF, StringRef S) {
23 DiagnosticsEngine &Diags = CGF.CGM.getDiags();
26 Diags.Report(CGF.getContext().getFullLoc(CGF.CurCodeDecl->getLocation()),
76 CodeGenFunction &CGF, const Expr *E, llvm::Value *&This,
78 ErrorUnsupportedABI(CGF, "calls through member pointers");
90 CGCXXABI::EmitMemberDataPointerAddress(CodeGenFunction &CGF, const Expr *E,
93 ErrorUnsupportedABI(CGF, "loads of member pointers");
94 llvm::Type *Ty = CGF.ConvertType(MPT->getPointeeType())->getPointerTo();
98 llvm::Value *CGCXXABI::EmitMemberPointerConversion(CodeGenFunction &CGF,
101 ErrorUnsupportedABI(CGF, "member function pointer conversions");
111 CGCXXABI::EmitMemberPointerComparison(CodeGenFunction &CGF,
116 ErrorUnsupportedABI(CGF, "member function pointer comparison");
117 return CGF.Builder.getFalse();
121 CGCXXABI::EmitMemberPointerIsNotNull(CodeGenFunction &CGF,
124 ErrorUnsupportedABI(CGF, "member function pointer null testing");
125 return CGF.Builder.getFalse();
153 void CGCXXABI::buildThisParam(CodeGenFunction &CGF, FunctionArgList ¶ms) {
154 const CXXMethodDecl *MD = cast<CXXMethodDecl>(CGF.CurGD.getDecl());
163 getThisDecl(CGF) = ThisDecl;
166 void CGCXXABI::EmitThisParam(CodeGenFunction &CGF) {
168 assert(getThisDecl(CGF) && "no 'this' variable for function");
169 getThisValue(CGF)
170 = CGF.Builder.CreateLoad(CGF.GetAddrOfLocalVar(getThisDecl(CGF)),
174 void CGCXXABI::EmitReturnFromThunk(CodeGenFunction &CGF,
176 CGF.EmitReturnOfRValue(RV, ResultType);
190 llvm::Value *CGCXXABI::InitializeArrayCookie(CodeGenFunction &CGF,
196 ErrorUnsupportedABI(CGF, "array cookie initialization");
219 void CGCXXABI::ReadArrayCookie(CodeGenFunction &CGF, llvm::Value *ptr,
225 llvm::Type *charPtrTy = CGF.Int8Ty->getPointerTo(AS);
226 ptr = CGF.Builder.CreateBitCast(ptr, charPtrTy);
237 allocPtr = CGF.Builder.CreateConstInBoundsGEP1_64(ptr,
239 numElements = readArrayCookieImpl(CGF, allocPtr, cookieSize);
242 llvm::Value *CGCXXABI::readArrayCookieImpl(CodeGenFunction &CGF,
245 ErrorUnsupportedABI(CGF, "reading a new[] cookie");
246 return llvm::ConstantInt::get(CGF.SizeTy, 0);
249 void CGCXXABI::registerGlobalDtor(CodeGenFunction &CGF,
257 CGF.registerGlobalDtorWithAtExit(D, dtor, addr);
304 CGCXXABI::EmitCtorCompleteObjectHandler(CodeGenFunction &CGF,
309 ErrorUnsupportedABI(CGF, "complete object detection in ctor");
318 LValue CGCXXABI::EmitThreadLocalVarDeclLValue(CodeGenFunction &CGF,
321 ErrorUnsupportedABI(CGF, "odr-use of thread_local global");