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;
97 function = CGM.GetAddrOfCXXDestructor(dtor, Dtor_Complete);
102 function = CodeGenFunction(CGM).generateDestroyHelper(addr, type,
108 CGM.getCXXABI().registerGlobalDtor(CGF, function, argument);
116 if (!CGF.CGM.getCodeGenOpts().OptimizationLevel)
121 llvm::Constant *InvariantStart = CGF.CGM.getIntrinsic(InvStartID);
141 if (CGM.isTypeConstant(D.getType(), true))
156 CreateGlobalInitOrDestructFunction(CodeGenModule &CGM,
162 static llvm::Constant *createAtExitStub(CodeGenModule &CGM,
166 llvm::FunctionType *ty = llvm::FunctionType::get(CGM.VoidTy, false);
168 CreateGlobalInitOrDestructFunction(CGM, ty,
171 CodeGenFunction CGF(CGM);
176 CGF.StartFunction(GlobalDecl(), CGM.getContext().VoidTy, fn,
177 CGM.getTypes().arrangeNullaryFunction(),
196 llvm::Constant *dtorStub = createAtExitStub(CGM, dtor, addr);
203 CGM.CreateRuntimeFunction(atexitTy, "atexit");
216 if (CGM.getCodeGenOpts().ForbidGuardVariables)
217 CGM.Error(D.getLocation(),
221 CGM.getCXXABI().EmitGuardedInit(*this, D, DeclPtr, PerformInit);
225 CreateGlobalInitOrDestructFunction(CodeGenModule &CGM,
230 Name, &CGM.getModule());
231 if (!CGM.getLangOpts().AppleKext) {
234 CGM.getContext().getTargetInfo().getStaticInitSectionSpecifier())
238 Fn->setCallingConv(CGM.getRuntimeCC());
240 if (!CGM.getLangOpts().Exceptions)
243 if (CGM.getSanOpts().Address)
245 if (CGM.getSanOpts().Thread)
247 if (CGM.getSanOpts().Memory)
445 CGM.getTypes().arrangeFunctionDeclaration(getContext().VoidTy, args,
448 llvm::FunctionType *FTy = CGM.getTypes().GetFunctionType(FI);
450 CreateGlobalInitOrDestructFunction(CGM, FTy, "__cxx_global_array_dtor");