LLVM 24.0.0git
llvm::MemProfContextDisambiguation Class Reference

#include "llvm/Transforms/IPO/MemProfContextDisambiguation.h"

Inheritance diagram for llvm::MemProfContextDisambiguation:
[legend]

Public Member Functions

LLVM_ABI MemProfContextDisambiguation (const ModuleSummaryIndex *Summary=nullptr, bool isSamplePGO=false)
LLVM_ABI PreservedAnalyses run (Module &M, ModuleAnalysisManager &AM)
LLVM_ABI void run (ModuleSummaryIndex &Index, function_ref< bool(GlobalValue::GUID, const GlobalValueSummary *)> isPrevailing, LLVMContext &Ctx, function_ref< void(StringRef, StringRef, const Twine &)> EmitRemark=nullptr)
Public Member Functions inherited from llvm::detail::PassInfoMixin< MemProfContextDisambiguation >
void printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName)

Static Public Member Functions

static LLVM_ABI bool isEnabled (const cl::LibraryOptionsContext &C)
 Return -memprof-context-disambiguation.
static LLVM_ABI bool supportsHotColdNew (const cl::LibraryOptionsContext &C)
 Return -supports-hot-cold-new.
Static Public Member Functions inherited from llvm::OptionalPassInfoMixin< MemProfContextDisambiguation >
static bool isRequired ()
Static Public Member Functions inherited from llvm::detail::InfoMixin< MemProfContextDisambiguation >
static StringRef name ()
 Gets the name of the pass we are mixed into.

Detailed Description

Definition at line 44 of file MemProfContextDisambiguation.h.

Constructor & Destructor Documentation

◆ MemProfContextDisambiguation()

MemProfContextDisambiguation::MemProfContextDisambiguation ( const ModuleSummaryIndex * Summary = nullptr,
bool isSamplePGO = false )

Definition at line 7919 of file MemProfContextDisambiguation.cpp.

Member Function Documentation

◆ isEnabled()

bool MemProfContextDisambiguation::isEnabled ( const cl::LibraryOptionsContext & C)
static

Return -memprof-context-disambiguation.

Definition at line 7923 of file MemProfContextDisambiguation.cpp.

References C().

Referenced by llvm::PassBuilder::buildLTODefaultPipeline(), and llvm::PassBuilder::buildThinLTODefaultPipeline().

◆ run() [1/2]

◆ run() [2/2]

◆ supportsHotColdNew()

bool MemProfContextDisambiguation::supportsHotColdNew ( const cl::LibraryOptionsContext & C)
static

Return -supports-hot-cold-new.

Definition at line 7928 of file MemProfContextDisambiguation.cpp.

References C().

Referenced by llvm::lto::LTO::run().


The documentation for this class was generated from the following files: