Home | History | Annotate | Download | only in CodeGen

Lines Matching defs:CGM

136     return CGM.getOpenCLRuntime().EmitWorkGroupLocalVarDecl(*this, D);
144 CodeGenModule &CGM = CGF.CGM;
146 StringRef Name = CGM.getMangledName(&D);
157 CGM.getBlockMangledName(GlobalDecl(), Name, BD);
163 StringRef Name = CGM.getMangledName(FD);
183 Name = CGM.getMangledName(&D);
187 llvm::Type *LTy = CGM.getTypes().ConvertTypeForMem(Ty);
189 CGM.GetGlobalVarAddressSpace(&D, CGM.getContext().getTargetAddressSpace(Ty));
191 new llvm::GlobalVariable(CGM.getModule(), LTy,
193 CGM.EmitNullConstant(D.getType()), Name, 0,
201 CGM.setTLSMode(GV, D);
221 llvm::Constant *Init = CGM.EmitConstantInit(D, this);
227 CGM.ErrorUnsupported(D.getInit(), "constant l-value expression");
245 GV = new llvm::GlobalVariable(CGM.getModule(), Init->getType(),
250 CGM.getContext().getTargetAddressSpace(D.getType()));
265 GV->setConstant(CGM.isTypeConstant(D.getType(), true));
287 CGM.getStaticLocalDeclAddress(&D);
299 CGM.setStaticLocalDeclAddress(&D, addr);
317 CGM.AddGlobalAnnotations(&D, var);
323 CGM.AddUsedGlobal(var);
332 CGM.setStaticLocalDeclAddress(&D, castedAddr);
337 CGM.getCodeGenOpts().getDebugInfo() >= CodeGenOptions::LimitedDebugInfo) {
403 llvm::Value *F = CGF.CGM.getIntrinsic(llvm::Intrinsic::stackrestore);
821 if (CGM.getCodeGenOpts().MergeAllConstants && !NRVO && !isByRef &&
822 CGM.isTypeConstant(Ty, true)) {
887 llvm::Value *F = CGM.getIntrinsic(llvm::Intrinsic::stacksave);
920 if (CGM.getCodeGenOpts().getDebugInfo()
1043 constant = CGM.EmitConstantInit(D, this);
1067 CGM.getDataLayout().getTypeAllocSize(constant->getType()))) {
1080 new llvm::GlobalVariable(CGM.getModule(), constant->getType(), true,
1231 llvm::Constant *F = CGM.GetAddrOfFunction(FD);
1234 const CGFunctionInfo &Info = CGM.getTypes().arrangeFunctionDeclaration(FD);
1524 if (CGM.getCodeGenOpts().OptimizationLevel == 0) {
1535 if (CGM.getCodeGenOpts().getDebugInfo()
1584 if (CGM.getCodeGenOpts().OptimizationLevel == 0) {
1588 llvm::Value * Null = CGM.EmitNullConstant(D.getType());
1629 if (CGM.getCodeGenOpts().getDebugInfo()