Lines Matching refs:CGM

148     return CGM.getOpenCLRuntime().EmitWorkGroupLocalVarDecl(*this, D);
156 CodeGenModule &CGM = CGF.CGM;
158 StringRef Name = CGM.getMangledName(&D);
169 CGM.getBlockMangledName(GlobalDecl(), Name, BD);
175 StringRef Name = CGM.getMangledName(FD);
195 Name = CGM.getMangledName(&D);
199 llvm::Type *LTy = CGM.getTypes().ConvertTypeForMem(Ty);
201 CGM.GetGlobalVarAddressSpace(&D, CGM.getContext().getTargetAddressSpace(Ty));
203 new llvm::GlobalVariable(CGM.getModule(), LTy,
205 CGM.EmitNullConstant(D.getType()), Name, 0,
209 CGM.setGlobalVisibility(GV, &D);
212 CGM.setTLSMode(GV, D);
232 llvm::Constant *Init = CGM.EmitConstantInit(D, this);
238 CGM.ErrorUnsupported(D.getInit(), "constant l-value expression");
256 GV = new llvm::GlobalVariable(CGM.getModule(), Init->getType(),
261 CGM.getContext().getTargetAddressSpace(D.getType()));
276 GV->setConstant(CGM.isTypeConstant(D.getType(), true));
298 CGM.getStaticLocalDeclAddress(&D);
310 CGM.setStaticLocalDeclAddress(&D, addr);
328 CGM.AddGlobalAnnotations(&D, var);
334 CGM.AddUsedGlobal(var);
343 CGM.setStaticLocalDeclAddress(&D, castedAddr);
348 CGM.getCodeGenOpts().getDebugInfo() >= CodeGenOptions::LimitedDebugInfo) {
414 llvm::Value *F = CGF.CGM.getIntrinsic(llvm::Intrinsic::stackrestore);
476 CGF.Builder.CreateCall2(CGF.CGM.getLLVMLifetimeEndFn(),
803 if (CGF.CGM.getCodeGenOpts().OptimizationLevel == 0)
863 if (CGM.getCodeGenOpts().MergeAllConstants && !NRVO && !isByRef &&
864 CGM.isTypeConstant(Ty, true)) {
917 uint64_t size = CGM.getDataLayout().getTypeAllocSize(LTy);
923 Builder.CreateCall2(CGM.getLLVMLifetimeStartFn(), sizeV, castAddr)
936 llvm::Value *F = CGM.getIntrinsic(llvm::Intrinsic::stacksave);
969 if (CGM.getCodeGenOpts().getDebugInfo()
1088 constant = CGM.EmitConstantInit(D, this);
1119 CGM.getDataLayout().getTypeAllocSize(constant->getType()))) {
1132 new llvm::GlobalVariable(CGM.getModule(), constant->getType(), true,
1290 llvm::Constant *F = CGM.GetAddrOfFunction(FD);
1293 const CGFunctionInfo &Info = CGM.getTypes().arrangeFunctionDeclaration(FD);
1619 if (CGM.getCodeGenOpts().OptimizationLevel == 0) {
1630 if (CGM.getCodeGenOpts().getDebugInfo()
1687 if (CGM.getCodeGenOpts().OptimizationLevel == 0) {
1691 llvm::Value * Null = CGM.EmitNullConstant(D.getType());
1732 if (CGM.getCodeGenOpts().getDebugInfo()