• Home
  • Raw
  • Download

Lines Matching refs:CGF

23 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()
42 CodeGenFunction &CGF, const Expr *E, Address This, in EmitLoadOfMemberFunctionPointer() argument
45 ErrorUnsupportedABI(CGF, "calls through member pointers"); in EmitLoadOfMemberFunctionPointer()
59 CGCXXABI::EmitMemberDataPointerAddress(CodeGenFunction &CGF, const Expr *E, in EmitMemberDataPointerAddress() argument
62 ErrorUnsupportedABI(CGF, "loads of member pointers"); in EmitMemberDataPointerAddress()
63 llvm::Type *Ty = CGF.ConvertType(MPT->getPointeeType()) in EmitMemberDataPointerAddress()
68 llvm::Value *CGCXXABI::EmitMemberPointerConversion(CodeGenFunction &CGF, in EmitMemberPointerConversion() argument
71 ErrorUnsupportedABI(CGF, "member function pointer conversions"); in EmitMemberPointerConversion()
81 CGCXXABI::EmitMemberPointerComparison(CodeGenFunction &CGF, in EmitMemberPointerComparison() argument
86 ErrorUnsupportedABI(CGF, "member function pointer comparison"); in EmitMemberPointerComparison()
87 return CGF.Builder.getFalse(); in EmitMemberPointerComparison()
91 CGCXXABI::EmitMemberPointerIsNotNull(CodeGenFunction &CGF, in EmitMemberPointerIsNotNull() argument
94 ErrorUnsupportedABI(CGF, "member function pointer null testing"); in EmitMemberPointerIsNotNull()
95 return CGF.Builder.getFalse(); in EmitMemberPointerIsNotNull()
122 void CGCXXABI::buildThisParam(CodeGenFunction &CGF, FunctionArgList &params) { in buildThisParam() argument
123 const CXXMethodDecl *MD = cast<CXXMethodDecl>(CGF.CurGD.getDecl()); in buildThisParam()
132 CGF.CXXABIThisDecl = ThisDecl; in buildThisParam()
136 auto &Layout = CGF.getContext().getASTRecordLayout(MD->getParent()); in buildThisParam()
139 !isThisCompleteObject(CGF.CurGD)) { in buildThisParam()
140 CGF.CXXABIThisAlignment = Layout.getAlignment(); in buildThisParam()
142 CGF.CXXABIThisAlignment = Layout.getNonVirtualAlignment(); in buildThisParam()
146 llvm::Value *CGCXXABI::loadIncomingCXXThis(CodeGenFunction &CGF) { in loadIncomingCXXThis() argument
147 return CGF.Builder.CreateLoad(CGF.GetAddrOfLocalVar(getThisDecl(CGF)), in loadIncomingCXXThis()
151 void CGCXXABI::setCXXABIThisValue(CodeGenFunction &CGF, llvm::Value *ThisPtr) { in setCXXABIThisValue() argument
153 assert(getThisDecl(CGF) && "no 'this' variable for function"); in setCXXABIThisValue()
154 CGF.CXXABIThisValue = ThisPtr; in setCXXABIThisValue()
157 void CGCXXABI::EmitReturnFromThunk(CodeGenFunction &CGF, in EmitReturnFromThunk() argument
159 assert(!CGF.hasAggregateEvaluationKind(ResultType) && in EmitReturnFromThunk()
161 CGF.EmitReturnOfRValue(RV, ResultType); in EmitReturnFromThunk()
175 Address CGCXXABI::InitializeArrayCookie(CodeGenFunction &CGF, in InitializeArrayCookie() argument
181 ErrorUnsupportedABI(CGF, "array cookie initialization"); in InitializeArrayCookie()
204 void CGCXXABI::ReadArrayCookie(CodeGenFunction &CGF, Address ptr, in ReadArrayCookie() argument
209 ptr = CGF.Builder.CreateElementBitCast(ptr, CGF.Int8Ty); in ReadArrayCookie()
221 CGF.Builder.CreateConstInBoundsByteGEP(ptr, -cookieSize); in ReadArrayCookie()
223 numElements = readArrayCookieImpl(CGF, allocAddr, cookieSize); in ReadArrayCookie()
226 llvm::Value *CGCXXABI::readArrayCookieImpl(CodeGenFunction &CGF, in readArrayCookieImpl() argument
229 ErrorUnsupportedABI(CGF, "reading a new[] cookie"); in readArrayCookieImpl()
230 return llvm::ConstantInt::get(CGF.SizeTy, 0); in readArrayCookieImpl()
255 CGCXXABI::EmitCtorCompleteObjectHandler(CodeGenFunction &CGF, in EmitCtorCompleteObjectHandler() argument
260 ErrorUnsupportedABI(CGF, "complete object detection in ctor"); in EmitCtorCompleteObjectHandler()
283 CGCXXABI::emitTerminateForUnexpectedException(CodeGenFunction &CGF, in emitTerminateForUnexpectedException() argument
286 return CGF.EmitNounwindRuntimeCall(CGF.CGM.getTerminateFn()); in emitTerminateForUnexpectedException()
298 CodeGenFunction &CGF, const CXXConstructorDecl *D, CXXCtorType Type, in addImplicitConstructorArgs() argument
301 getImplicitConstructorArgs(CGF, D, Type, ForVirtualBase, Delegating); in addImplicitConstructorArgs()