Home | History | Annotate | Download | only in CodeGen

Lines Matching refs:CGM

31 CodeGenFunction::CodeGenFunction(CodeGenModule &cgm)
32 : CodeGenTypeCache(cgm), CGM(cgm),
33 Target(CGM.getContext().getTargetInfo()),
34 Builder(cgm.getModule().getContext()),
45 CGM.getCXXABI().getMangleContext().startNewFunction();
58 return CGM.getTypes().ConvertTypeForMem(T);
62 return CGM.getTypes().ConvertType(T);
211 if (CGM.getCodeGenOpts().EmitDeclMetadata)
218 if (!CGM.getCodeGenOpts().InstrumentFunctions)
235 llvm::Constant *F = CGM.CreateRuntimeFunction(FunctionTy, Fn);
237 CGM.getIntrinsic(llvm::Intrinsic::returnaddress),
249 llvm::Constant *MCountFn = CGM.CreateRuntimeFunction(FTy,
270 if (!CGM.getCodeGenOpts().NoInline)
285 CGM.getModule().getOrInsertNamedMetadata("opencl.kernels");
328 if (CGM.getCodeGenOpts().InstrumentForProfiling)
357 CGM.getCXXABI().EmitInstanceFunctionProlog(*this);
427 if (CGM.getModuleDebugInfo() && !FD->hasAttr<NoDebugAttr>())
428 DebugInfo = CGM.getModuleDebugInfo();
435 CGM.getCXXABI().BuildInstanceFunctionParams(*this, ResTy, Args);
452 !CGM.getCodeGenOpts().CUDAIsDevice &&
454 CGM
684 CGM.ErrorUnsupported(S, Type, OmitOnError);
776 SizeVal = Builder.CreateNUWMul(SizeVal, CGM.getSize(eltSize));
782 SizeVal = CGM.getSize(Size);
790 if (!CGM.getTypes().isZeroInitializable(Ty)) {
794 llvm::Constant *NullConstant = CGM.EmitNullConstant(Ty);
797 new llvm::GlobalVariable(CGM.getModule(), NullConstant->getType(),
1110 Builder.CreateBitCast(CGM.EmitAnnotationString(AnnotationStr), Int8PtrTy),
1111 Builder.CreateBitCast(CGM.EmitAnnotationUnit(Location), Int8PtrTy),
1112 CGM.EmitAnnotationLineNo(Location)
1124 EmitAnnotationCall(CGM.getIntrinsic(llvm::Intrinsic::var_annotation),
1125 Builder.CreateBitCast(V, CGM.Int8PtrTy, V->getName()),
1133 llvm::Value *F = CGM.getIntrinsic(llvm::Intrinsic::ptr_annotation,
1134 CGM.Int8PtrTy);
1142 if (VTy != CGM.Int8PtrTy)
1143 V = Builder.Insert(new llvm::BitCastInst(V, CGM.Int8PtrTy));