Jlm
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Attributes | List of all members
jlm::llvm::aa::EncodingStatistics Class Referencefinal

Statistics class for memory state encoder encoding. More...

Inheritance diagram for jlm::llvm::aa::EncodingStatistics:
Inheritance graph
[legend]
Collaboration diagram for jlm::llvm::aa::EncodingStatistics:
Collaboration graph
[legend]

Public Member Functions

 ~EncodingStatistics () override=default
 
 EncodingStatistics (const util::FilePath &sourceFile)
 
void Start (const rvsdg::Graph &graph)
 
void Stop ()
 
void AddIntraProceduralRegionMemoryStateCounts (const MemoryStateTypeCounter &counter)
 
void AddLoadMemoryStateCounts (const MemoryStateTypeCounter &counter)
 
void AddStoreMemoryStateCounts (const MemoryStateTypeCounter &counter)
 
void AddCallEntryMergeStateCounts (const MemoryStateTypeCounter &counter)
 
- Public Member Functions inherited from jlm::util::Statistics
virtual ~Statistics ()
 
 Statistics (const Statistics::Id &statisticsId, util::FilePath sourceFile)
 
Statistics::Id GetId () const noexcept
 
std::string_view GetName () const
 
const util::FilePathGetSourceFile () const
 
std::string Serialize (char fieldSeparator, char nameValueSeparator) const
 
bool HasMeasurement (const std::string &name) const noexcept
 
const MeasurementGetMeasurement (const std::string &name) const
 
template<typename T >
const T & GetMeasurementValue (const std::string &name) const
 
IteratorRange< MeasurementList::const_iterator > GetMeasurements () const
 
bool HasTimer (const std::string &name) const noexcept
 
size_t GetTimerElapsedNanoseconds (const std::string &name) const
 
IteratorRange< TimerList::const_iterator > GetTimers () const
 

Static Public Member Functions

static std::unique_ptr< EncodingStatisticsCreate (const util::FilePath &sourceFile)
 

Private Member Functions

void AddMemoryStateTypeCounter (const std::string &suffix, const MemoryStateTypeCounter &counter)
 

Static Private Attributes

static constexpr auto NumTotalAllocaState_ = "#TotalAllocaState"
 
static constexpr auto NumTotalMallocState_ = "#TotalMallocState"
 
static constexpr auto NumTotalDeltaState_ = "#TotalDeltaState"
 
static constexpr auto NumTotalImportState_ = "#TotalImportState"
 
static constexpr auto NumTotalLambdaState_ = "#TotalLambdaState"
 
static constexpr auto NumTotalExternalState_ = "#TotalExternalState"
 
static constexpr auto NumTotalNonEscapedState_ = "#TotalNonEscapedState"
 
static constexpr auto NumMaxMemoryState_ = "#MaxMemoryState"
 
static constexpr auto NumMaxNonEscapedMemoryState_ = "#MaxNonEscapedMemoryState"
 
static constexpr auto NumIntraProceduralRegions_ = "#IntraProceduralRegions"
 
static constexpr auto RegionArgumentStateSuffix_ = "Arguments"
 
static constexpr auto NumLoadOperations_ = "#LoadOperations"
 
static constexpr auto LoadStateSuffix_ = "sThroughLoad"
 
static constexpr auto NumStoreOperations_ = "#StoreOperations"
 
static constexpr auto StoreStateSuffix_ = "sThroughStore"
 
static constexpr auto NumCallEntryMergeOperations_ = "#CallEntryMergeOperations"
 
static constexpr auto CallEntryMergeStateSuffix_ = "sIntoCallEntryMerge"
 

Additional Inherited Members

- Public Types inherited from jlm::util::Statistics
enum class  Id {
  FirstEnumValue , Aggregation , AgnosticModRefSummarizer , AliasAnalysisPrecisionEvaluation ,
  AndersenAnalysis , Annotation , CommonNodeElimination , ControlFlowRecovery ,
  DataNodeToDelta , DeadNodeElimination , FunctionInlining , IfConversion ,
  InvariantValueRedirection , JlmToRvsdgConversion , LoopUnrolling , LoopUnswitching ,
  MemoryStateEncoder , PullNodes , PushNodes , ReduceNodes ,
  RegionAwareModRefSummarizer , RvsdgConstruction , RvsdgDestruction , RvsdgOptimization ,
  RvsdgTreePrinter , ScalarEvolution , LastEnumValue
}
 
using Measurement = std::variant< std::string, int64_t, uint64_t, double >
 
using MeasurementList = std::list< std::pair< std::string, Measurement > >
 
using TimerList = std::list< std::pair< std::string, util::Timer > >
 
- Protected Member Functions inherited from jlm::util::Statistics
template<typename T >
void AddMeasurement (std::string name, T value)
 
util::TimerAddTimer (std::string name)
 
util::TimerGetTimer (const std::string &name)
 
const util::TimerGetTimer (const std::string &name) const
 

Detailed Description

Statistics class for memory state encoder encoding.

Definition at line 134 of file MemoryStateEncoder.cpp.

Constructor & Destructor Documentation

◆ ~EncodingStatistics()

jlm::llvm::aa::EncodingStatistics::~EncodingStatistics ( )
overridedefault

◆ EncodingStatistics()

jlm::llvm::aa::EncodingStatistics::EncodingStatistics ( const util::FilePath sourceFile)
inlineexplicit

Definition at line 171 of file MemoryStateEncoder.cpp.

Member Function Documentation

◆ AddCallEntryMergeStateCounts()

void jlm::llvm::aa::EncodingStatistics::AddCallEntryMergeStateCounts ( const MemoryStateTypeCounter counter)
inline

Definition at line 210 of file MemoryStateEncoder.cpp.

◆ AddIntraProceduralRegionMemoryStateCounts()

void jlm::llvm::aa::EncodingStatistics::AddIntraProceduralRegionMemoryStateCounts ( const MemoryStateTypeCounter counter)
inline

Definition at line 189 of file MemoryStateEncoder.cpp.

◆ AddLoadMemoryStateCounts()

void jlm::llvm::aa::EncodingStatistics::AddLoadMemoryStateCounts ( const MemoryStateTypeCounter counter)
inline

Definition at line 196 of file MemoryStateEncoder.cpp.

◆ AddMemoryStateTypeCounter()

void jlm::llvm::aa::EncodingStatistics::AddMemoryStateTypeCounter ( const std::string &  suffix,
const MemoryStateTypeCounter counter 
)
inlineprivate

Definition at line 224 of file MemoryStateEncoder.cpp.

◆ AddStoreMemoryStateCounts()

void jlm::llvm::aa::EncodingStatistics::AddStoreMemoryStateCounts ( const MemoryStateTypeCounter counter)
inline

Definition at line 203 of file MemoryStateEncoder.cpp.

◆ Create()

static std::unique_ptr<EncodingStatistics> jlm::llvm::aa::EncodingStatistics::Create ( const util::FilePath sourceFile)
inlinestatic

Definition at line 217 of file MemoryStateEncoder.cpp.

◆ Start()

void jlm::llvm::aa::EncodingStatistics::Start ( const rvsdg::Graph graph)
inline

Definition at line 176 of file MemoryStateEncoder.cpp.

◆ Stop()

void jlm::llvm::aa::EncodingStatistics::Stop ( )
inline

Definition at line 183 of file MemoryStateEncoder.cpp.

Member Data Documentation

◆ CallEntryMergeStateSuffix_

constexpr auto jlm::llvm::aa::EncodingStatistics::CallEntryMergeStateSuffix_ = "sIntoCallEntryMerge"
staticconstexprprivate

Definition at line 166 of file MemoryStateEncoder.cpp.

◆ LoadStateSuffix_

constexpr auto jlm::llvm::aa::EncodingStatistics::LoadStateSuffix_ = "sThroughLoad"
staticconstexprprivate

Definition at line 156 of file MemoryStateEncoder.cpp.

◆ NumCallEntryMergeOperations_

constexpr auto jlm::llvm::aa::EncodingStatistics::NumCallEntryMergeOperations_ = "#CallEntryMergeOperations"
staticconstexprprivate

Definition at line 164 of file MemoryStateEncoder.cpp.

◆ NumIntraProceduralRegions_

constexpr auto jlm::llvm::aa::EncodingStatistics::NumIntraProceduralRegions_ = "#IntraProceduralRegions"
staticconstexprprivate

Definition at line 149 of file MemoryStateEncoder.cpp.

◆ NumLoadOperations_

constexpr auto jlm::llvm::aa::EncodingStatistics::NumLoadOperations_ = "#LoadOperations"
staticconstexprprivate

Definition at line 154 of file MemoryStateEncoder.cpp.

◆ NumMaxMemoryState_

constexpr auto jlm::llvm::aa::EncodingStatistics::NumMaxMemoryState_ = "#MaxMemoryState"
staticconstexprprivate

Definition at line 145 of file MemoryStateEncoder.cpp.

◆ NumMaxNonEscapedMemoryState_

constexpr auto jlm::llvm::aa::EncodingStatistics::NumMaxNonEscapedMemoryState_ = "#MaxNonEscapedMemoryState"
staticconstexprprivate

Definition at line 146 of file MemoryStateEncoder.cpp.

◆ NumStoreOperations_

constexpr auto jlm::llvm::aa::EncodingStatistics::NumStoreOperations_ = "#StoreOperations"
staticconstexprprivate

Definition at line 159 of file MemoryStateEncoder.cpp.

◆ NumTotalAllocaState_

constexpr auto jlm::llvm::aa::EncodingStatistics::NumTotalAllocaState_ = "#TotalAllocaState"
staticconstexprprivate

Definition at line 137 of file MemoryStateEncoder.cpp.

◆ NumTotalDeltaState_

constexpr auto jlm::llvm::aa::EncodingStatistics::NumTotalDeltaState_ = "#TotalDeltaState"
staticconstexprprivate

Definition at line 139 of file MemoryStateEncoder.cpp.

◆ NumTotalExternalState_

constexpr auto jlm::llvm::aa::EncodingStatistics::NumTotalExternalState_ = "#TotalExternalState"
staticconstexprprivate

Definition at line 142 of file MemoryStateEncoder.cpp.

◆ NumTotalImportState_

constexpr auto jlm::llvm::aa::EncodingStatistics::NumTotalImportState_ = "#TotalImportState"
staticconstexprprivate

Definition at line 140 of file MemoryStateEncoder.cpp.

◆ NumTotalLambdaState_

constexpr auto jlm::llvm::aa::EncodingStatistics::NumTotalLambdaState_ = "#TotalLambdaState"
staticconstexprprivate

Definition at line 141 of file MemoryStateEncoder.cpp.

◆ NumTotalMallocState_

constexpr auto jlm::llvm::aa::EncodingStatistics::NumTotalMallocState_ = "#TotalMallocState"
staticconstexprprivate

Definition at line 138 of file MemoryStateEncoder.cpp.

◆ NumTotalNonEscapedState_

constexpr auto jlm::llvm::aa::EncodingStatistics::NumTotalNonEscapedState_ = "#TotalNonEscapedState"
staticconstexprprivate

Definition at line 144 of file MemoryStateEncoder.cpp.

◆ RegionArgumentStateSuffix_

constexpr auto jlm::llvm::aa::EncodingStatistics::RegionArgumentStateSuffix_ = "Arguments"
staticconstexprprivate

Definition at line 151 of file MemoryStateEncoder.cpp.

◆ StoreStateSuffix_

constexpr auto jlm::llvm::aa::EncodingStatistics::StoreStateSuffix_ = "sThroughStore"
staticconstexprprivate

Definition at line 161 of file MemoryStateEncoder.cpp.


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