LLVM 20.0.0git
|
An union-find based Minimum Spanning Tree for CFG. More...
#include "llvm/Transforms/Instrumentation/CFGMST.h"
Public Member Functions | |
void | dumpEdges (raw_ostream &OS, const Twine &Message) const |
Edge & | addEdge (BasicBlock *Src, BasicBlock *Dest, uint64_t W) |
CFGMST (Function &Func, bool InstrumentFuncEntry, bool InstrumentLoopEntries, BranchProbabilityInfo *BPI=nullptr, BlockFrequencyInfo *BFI=nullptr, LoopInfo *LI=nullptr) | |
const std::vector< std::unique_ptr< Edge > > & | allEdges () const |
std::vector< std::unique_ptr< Edge > > & | allEdges () |
size_t | numEdges () const |
size_t | bbInfoSize () const |
BBInfo & | getBBInfo (const BasicBlock *BB) const |
BBInfo * | findBBInfo (const BasicBlock *BB) const |
An union-find based Minimum Spanning Tree for CFG.
Implements a Union-find algorithm to compute Minimum Spanning Tree for a given CFG.
|
inline |
|
inline |
Definition at line 304 of file CFGMST.h.
References llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::end(), Index, llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::insert(), and llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::size().
Referenced by getInstrBB().
|
inline |
|
inline |
Definition at line 341 of file CFGMST.h.
Referenced by dumpEdges().
|
inline |
Definition at line 349 of file CFGMST.h.
References llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::size().
|
inline |
Definition at line 285 of file CFGMST.h.
References llvm::CFGMST< Edge, BBInfo >::getBBInfo(), llvm::Value::getName(), OS, llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::size(), and llvm::Twine::str().
|
inline |
Definition at line 359 of file CFGMST.h.
References llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::end(), and llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::find().
|
inline |
Definition at line 352 of file CFGMST.h.
References assert(), and llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::find().
Referenced by llvm::CFGMST< Edge, BBInfo >::dumpEdges().
|
inline |