LLVM: lib/CodeGen/MachineBlockHashInfo.cpp File Reference (original) (raw)
MachineBlockHashInfo.cpp File Reference
#include "[llvm/CodeGen/MachineBlockHashInfo.h](MachineBlockHashInfo%5F8h%5Fsource.html)"#include "[llvm/CodeGen/Passes.h](CodeGen%5F2Passes%5F8h%5Fsource.html)"#include "[llvm/InitializePasses.h](InitializePasses%5F8h%5Fsource.html)"#include "[llvm/Target/TargetMachine.h](llvm%5F2Target%5F2TargetMachine%5F8h%5Fsource.html)"
Go to the source code of this file.
| Classes | |
|---|---|
| struct | CollectHashInfo |
| Functions | |
|---|---|
| uint64_t | hashBlock (const MachineBasicBlock &MBB, bool HashOperands) |
| uint16_t | fold_64_to_16 (const uint64_t Value) |
| Fold a 64-bit integer to a 16-bit one. |
Function Documentation
◆ fold_64_to_16()
| uint16_t fold_64_to_16 | ( | const uint64_t | Value | ) |
|---|
Fold a 64-bit integer to a 16-bit one.
Definition at line 37 of file MachineBlockHashInfo.cpp.
Referenced by llvm::MachineBlockHashInfo::runOnMachineFunction().
◆ hashBlock()
| uint64_t hashBlock | ( | const MachineBasicBlock & | MBB, |
|---|---|---|---|
| bool | HashOperands ) |
Definition at line 20 of file MachineBlockHashInfo.cpp.
References llvm::hashing::detail::hash_16_bytes(), llvm::hash_value(), MBB, and MI.
Referenced by llvm::MachineBlockHashInfo::runOnMachineFunction().