|
LLVM 24.0.0git
|
The sample profiler data loader pass. More...
#include "llvm/Transforms/IPO/SampleProfile.h"
Public Member Functions | |
| LLVM_ABI | SampleProfileLoaderPass (std::string File="", std::string RemappingFile="", ThinOrFullLTOPhase LTOPhase=ThinOrFullLTOPhase::None, IntrusiveRefCntPtr< vfs::FileSystem > FS=nullptr, bool DisableSampleProfileInlining=false, bool UseFlattenedProfile=false) |
| LLVM_ABI PreservedAnalyses | run (Module &M, ModuleAnalysisManager &AM) |
| Public Member Functions inherited from llvm::detail::PassInfoMixin< SampleProfileLoaderPass > | |
| void | printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName) |
Static Public Member Functions | |
| static LLVM_ABI StringRef | getSampleProfileFile (const LLVMContext &C) |
| Return -sample-profile-file. | |
| Static Public Member Functions inherited from llvm::OptionalPassInfoMixin< SampleProfileLoaderPass > | |
| static bool | isRequired () |
| Static Public Member Functions inherited from llvm::detail::InfoMixin< SampleProfileLoaderPass > | |
| static StringRef | name () |
| Gets the name of the pass we are mixed into. | |
The sample profiler data loader pass.
Definition at line 38 of file SampleProfile.h.
| SampleProfileLoaderPass::SampleProfileLoaderPass | ( | std::string | File = "", |
| std::string | RemappingFile = "", | ||
| ThinOrFullLTOPhase | LTOPhase = ThinOrFullLTOPhase::None, | ||
| IntrusiveRefCntPtr< vfs::FileSystem > | FS = nullptr, | ||
| bool | DisableSampleProfileInlining = false, | ||
| bool | UseFlattenedProfile = false ) |
Definition at line 2147 of file SampleProfile.cpp.
References llvm::move().
|
static |
Return -sample-profile-file.
Definition at line 2143 of file SampleProfile.cpp.
References C(), and llvm::getIPOOptions().
Referenced by llvm::LTOCodeGenerator::optimize(), and optimizeModule().
| PreservedAnalyses SampleProfileLoaderPass::run | ( | Module & | M, |
| ModuleAnalysisManager & | AM ) |
Definition at line 2156 of file SampleProfile.cpp.
References llvm::PreservedAnalyses::all(), llvm::StringRef::empty(), F, FAM, llvm::getIPOOptions(), llvm::vfs::getRealFileSystem(), llvm::AnalysisManager< IRUnitT, ExtraArgTs >::getResult(), and llvm::PreservedAnalyses::none().