|
LLVM 22.0.0git
|
The object is used to identify and match basic blocks given their hashes. More...
Public Member Functions | |
| void | init (const std::vector< MachineBasicBlock * > &Blocks, const std::vector< BlendedBlockHash > &Hashes) |
| Initialize stale matcher. | |
| MachineBasicBlock * | matchBlock (BlendedBlockHash BlendedHash) const |
| Find the most similar block for a given hash. | |
The object is used to identify and match basic blocks given their hashes.
Definition at line 37 of file BasicBlockMatchingAndInference.cpp.
|
inline |
Initialize stale matcher.
Definition at line 40 of file BasicBlockMatchingAndInference.cpp.
References assert(), llvm::Block, and I.
|
inline |
Find the most similar block for a given hash.
Definition at line 52 of file BasicBlockMatchingAndInference.cpp.
References llvm::Block, llvm::BlendedBlockHash::distance(), and llvm::BlendedBlockHash::getOpcodeHash().