Lines Matching defs:CGM

37     : CodeGenTypeCache(cgm), CGM(cgm), Target(cgm.getTarget()),
40 SanOpts(&CGM.getLangOpts().Sanitize), AutoreleaseResult(false), BlockInfo(nullptr),
44 EHSelectorSlot(nullptr), DebugInfo(CGM.getModuleDebugInfo()),
55 CGM.getCXXABI().getMangleContext().startNewFunction();
58 if (CGM.getLangOpts().FastMath)
60 if (CGM.getLangOpts().FiniteMathOnly) {
77 CGM.getOpenMPRuntime().FunctionFinished(*this);
83 return CGM.getTypes().ConvertTypeForMem(T);
87 return CGM.getTypes().ConvertType(T);
281 if (CGM.getCodeGenOpts().EmitDeclMetadata)
296 if (!CGM.getCodeGenOpts().InstrumentFunctions)
313 llvm::Constant *F = CGM.CreateRuntimeFunction(FunctionTy, Fn);
315 CGM.getIntrinsic(llvm::Intrinsic::returnaddress),
331 CGM.CreateRuntimeFunction(FTy, getTarget().getMCountName());
339 CodeGenModule &CGM,llvm::LLVMContext &Context,
403 CGM.getContext().getTargetAddressSpace(LangAS::opencl_global);
459 if (CGM.getCodeGenOpts().EmitOpenCLArgMetadata)
460 GenOpenCLArgMetadata(FD, Fn, CGM, Context, kernelMDArgs,
471 llvm::UndefValue::get(CGM.getTypes().ConvertType(A->getTypeHint())),
501 CGM.getModule().getOrInsertNamedMetadata("opencl.kernels");
538 if (CGM.getSanitizerBlacklist().isIn(*Fn))
545 if (!CGM.getCodeGenOpts().NoInline) {
566 CGM.getTargetCodeGenInfo().getUBSanFunctionSignature(CGM)) {
568 CGM.GetAddrOfRTTIDescriptor(FD->getType(), /*ForEH=*/true);
608 if (CGM.getCodeGenOpts().InstrumentForProfiling)
652 CGM.getCXXABI().EmitInstanceFunctionProlog(*this);
713 if (HaveInsertPoint() && CGM.getCodeGenOpts().ProfileInstrGenerate) {
753 llvm::Constant *Unsized = CGF.CGM.GetAddrOfFunction(UnsizedDealloc);
771 if (CGM.getCXXABI().HasThisReturn(GD))
773 CGM.getCXXABI().buildThisParam(*this, Args);
780 CGM.getCXXABI().addImplicitStructorParams(*this, ResTy, Args);
809 !CGM.getCodeGenOpts().CUDAIsDevice &&
811 CGM.getCUDARuntime().EmitDeviceStubBody(*this, Args);
850 else if (CGM.getCodeGenOpts().OptimizationLevel == 0)
851 Builder.CreateCall(CGM.getIntrinsic(llvm::Intrinsic::trap));
1132 CGM.ErrorUnsupported(S, Type);
1224 SizeVal = Builder.CreateNUWMul(SizeVal, CGM.getSize(eltSize));
1230 SizeVal = CGM.getSize(Size);
1238 if (!CGM.getTypes().isZeroInitializable(Ty)) {
1242 llvm::Constant *NullConstant = CGM.EmitNullConstant(Ty);
1245 new llvm::GlobalVariable(CGM.getModule(), NullConstant->getType(),
1564 if (CGM.getCodeGenOpts().getDebugInfo() >= CodeGenOptions::LimitedDebugInfo)
1601 Builder.CreateBitCast(CGM.EmitAnnotationString(AnnotationStr), Int8PtrTy),
1602 Builder.CreateBitCast(CGM.EmitAnnotationUnit(Location), Int8PtrTy),
1603 CGM.EmitAnnotationLineNo(Location)
1613 EmitAnnotationCall(CGM.getIntrinsic(llvm::Intrinsic::var_annotation),
1614 Builder.CreateBitCast(V, CGM.Int8PtrTy, V->getName()),
1622 llvm::Value *F = CGM.getIntrinsic(llvm::Intrinsic::ptr_annotation,
1623 CGM.Int8PtrTy);
1629 if (VTy != CGM.Int8PtrTy)
1630 V = Builder.Insert(new llvm::BitCastInst(V, CGM.Int8PtrTy));