Home | History | Annotate | Download | only in CodeGen

Lines Matching defs:CGM

39     CodeGenModule &CGM = CGF.CGM;
41 CGM.getObjCRuntime().EmitObjCGlobalAssign(CGF, CGF.EmitScalarExpr(Init),
44 CGM.getObjCRuntime().EmitObjCWeakAssign(CGF, CGF.EmitScalarExpr(Init),
66 CodeGenModule &CGM = CGF.CGM;
98 function = CGM.GetAddrOfCXXDestructor(dtor, Dtor_Complete);
103 function = CodeGenFunction(CGM).generateDestroyHelper(addr, type,
109 CGM.getCXXABI().registerGlobalDtor(CGF, D, function, argument);
117 if (!CGF.CGM.getCodeGenOpts().OptimizationLevel)
122 llvm::Constant *InvariantStart = CGF.CGM.getIntrinsic(InvStartID);
142 if (CGM.isTypeConstant(D.getType(), true))
157 CreateGlobalInitOrDestructFunction(CodeGenModule &CGM,
164 static llvm::Constant *createAtExitStub(CodeGenModule &CGM,
168 llvm::FunctionType *ty = llvm::FunctionType::get(CGM.VoidTy, false);
170 CreateGlobalInitOrDestructFunction(CGM, ty,
173 CodeGenFunction CGF(CGM);
178 CGF.StartFunction(GlobalDecl(), CGM.getContext().VoidTy, fn,
179 CGM.getTypes().arrangeNullaryFunction(),
198 llvm::Constant *dtorStub = createAtExitStub(CGM, dtor, addr);
205 CGM.CreateRuntimeFunction(atexitTy, "atexit");
218 if (CGM.getCodeGenOpts().ForbidGuardVariables)
219 CGM.Error(D.getLocation(),
223 CGM.getCXXABI().EmitGuardedInit(*this, D, DeclPtr, PerformInit);
227 CreateGlobalInitOrDestructFunction(CodeGenModule &CGM,
232 Name, &CGM.getModule());
233 if (!CGM.getLangOpts().AppleKext && !TLS) {
236 CGM.getTarget().getStaticInitSectionSpecifier())
240 Fn->setCallingConv(CGM.getRuntimeCC());
242 if (!CGM.getLangOpts().Exceptions)
245 if (CGM.getSanOpts().Address)
247 if (CGM.getSanOpts().Thread)
249 if (CGM.getSanOpts().Memory)
494 CGM.getTypes().arrangeFunctionDeclaration(getContext().VoidTy, args,
497 llvm::FunctionType *FTy = CGM.getTypes().GetFunctionType(FI);
499 CreateGlobalInitOrDestructFunction(CGM, FTy, "__cxx_global_array_dtor");