Lines Matching refs:CGM

37     CodeGenModule &CGM = CGF.CGM;
39 CGM.getObjCRuntime().EmitObjCGlobalAssign(CGF, CGF.EmitScalarExpr(Init),
42 CGM.getObjCRuntime().EmitObjCWeakAssign(CGF, CGF.EmitScalarExpr(Init),
59 CodeGenModule &CGM = CGF.CGM;
90 function = CGM.GetAddrOfCXXDestructor(dtor, Dtor_Complete);
95 function = CodeGenFunction(CGM).generateDestroyHelper(addr, type,
101 CGM.getCXXABI().registerGlobalDtor(CGF, function, argument);
109 if (!CGF.CGM.getCodeGenOpts().OptimizationLevel)
114 llvm::Constant *InvariantStart = CGF.CGM.getIntrinsic(InvStartID);
134 if (CGM.isTypeConstant(D.getType(), true))
149 CreateGlobalInitOrDestructFunction(CodeGenModule &CGM,
155 static llvm::Constant *createAtExitStub(CodeGenModule &CGM,
159 llvm::FunctionType *ty = llvm::FunctionType::get(CGM.VoidTy, false);
161 CreateGlobalInitOrDestructFunction(CGM, ty,
164 CodeGenFunction CGF(CGM);
166 CGF.StartFunction(GlobalDecl(), CGM.getContext().VoidTy, fn,
167 CGM.getTypes().arrangeNullaryFunction(),
186 llvm::Constant *dtorStub = createAtExitStub(CGM, dtor, addr);
193 CGM.CreateRuntimeFunction(atexitTy, "atexit");
206 if (CGM.getCodeGenOpts().ForbidGuardVariables)
207 CGM.Error(D.getLocation(),
211 CGM.getCXXABI().EmitGuardedInit(*this, D, DeclPtr, PerformInit);
215 CreateGlobalInitOrDestructFunction(CodeGenModule &CGM,
220 Name, &CGM.getModule());
221 if (!CGM.getContext().getLangOpts().AppleKext) {
224 CGM.getContext().getTargetInfo().getStaticInitSectionSpecifier())
228 if (!CGM.getLangOpts().Exceptions)
231 if (CGM.getLangOpts().AddressSanitizer)
324 if (CGM.getModuleDebugInfo() && !D->hasAttr<NoDebugAttr>())
325 DebugInfo = CGM.getModuleDebugInfo();
401 CGM.getTypes().arrangeFunctionDeclaration(getContext().VoidTy, args,
404 llvm::FunctionType *FTy = CGM.getTypes().GetFunctionType(FI);
406 CreateGlobalInitOrDestructFunction(CGM, FTy, "__cxx_global_array_dtor");