Lines Matching refs:CGM
34 llvm::IndexedInstrProfReader *PGOReader = CGM.getPGOReader(); in setFuncName()
36 Name, Linkage, CGM.getCodeGenOpts().MainFileName, in setFuncName()
40 if (CGM.getCodeGenOpts().hasProfileClangInstr()) in setFuncName()
41 FuncNameVar = llvm::createPGOFuncNameVar(CGM.getModule(), Linkage, FuncName); in setFuncName()
616 bool InstrumentRegions = CGM.getCodeGenOpts().hasProfileClangInstr(); in assignRegionCounters()
617 llvm::IndexedInstrProfReader *PGOReader = CGM.getPGOReader(); in assignRegionCounters()
625 if (CGM.getTarget().getCXXABI().hasConstructorVariants() && in assignRegionCounters()
632 CGM.ClearUnusedCoverageMapping(D); in assignRegionCounters()
636 if (CGM.getCodeGenOpts().CoverageMapping) in assignRegionCounters()
639 SourceManager &SM = CGM.getContext().getSourceManager(); in assignRegionCounters()
667 const auto &SM = CGM.getContext().getSourceManager(); in skipRegionMappingForDecl()
678 CoverageMappingGen MappingGen(*CGM.getCoverageMapping(), in emitCounterRegionMapping()
679 CGM.getContext().getSourceManager(), in emitCounterRegionMapping()
680 CGM.getLangOpts(), RegionCounterMap.get()); in emitCounterRegionMapping()
687 CGM.getCoverageMapping()->addFunctionMappingRecord( in emitCounterRegionMapping()
699 CoverageMappingGen MappingGen(*CGM.getCoverageMapping(), in emitEmptyCounterMapping()
700 CGM.getContext().getSourceManager(), in emitEmptyCounterMapping()
701 CGM.getLangOpts()); in emitEmptyCounterMapping()
709 CGM.getCoverageMapping()->addFunctionMappingRecord( in emitEmptyCounterMapping()
737 if (!CGM.getCodeGenOpts().hasProfileClangInstr() || !RegionCounterMap) in emitCounterIncrement()
743 auto *I8PtrTy = llvm::Type::getInt8PtrTy(CGM.getLLVMContext()); in emitCounterIncrement()
744 Builder.CreateCall(CGM.getIntrinsic(llvm::Intrinsic::instrprof_increment), in emitCounterIncrement()
765 bool InstrumentValueSites = CGM.getCodeGenOpts().hasProfileClangInstr(); in valueProfile()
777 CGM.getIntrinsic(llvm::Intrinsic::instrprof_value_profile), Args); in valueProfile()
782 llvm::IndexedInstrProfReader *PGOReader = CGM.getPGOReader(); in valueProfile()
793 llvm::annotateValueSite(CGM.getModule(), *ValueSite, *ProfRecord, in valueProfile()
803 CGM.getPGOStats().addVisited(IsInMainFile); in loadRegionCounts()
810 CGM.getPGOStats().addMissing(IsInMainFile); in loadRegionCounts()
812 CGM.getPGOStats().addMismatched(IsInMainFile); in loadRegionCounts()
815 CGM.getPGOStats().addMismatched(IsInMainFile); in loadRegionCounts()
856 llvm::MDBuilder MDHelper(CGM.getLLVMContext()); in createProfileWeights()
880 llvm::MDBuilder MDHelper(CGM.getLLVMContext()); in createProfileWeights()