|
LLVM
3.7.0
|
Special DenseMapInfo traits to compare MachineInstr* by value of the instruction rather than by pointer value. More...
#include <MachineInstr.h>
Static Public Member Functions | |
| static MachineInstr * | getEmptyKey () |
| static MachineInstr * | getTombstoneKey () |
| static unsigned | getHashValue (const MachineInstr *const &MI) |
| static bool | isEqual (const MachineInstr *const &LHS, const MachineInstr *const &RHS) |
Special DenseMapInfo traits to compare MachineInstr* by value of the instruction rather than by pointer value.
The hashing and equality testing functions ignore definitions so this is useful for CSE, etc.
Definition at line 1212 of file MachineInstr.h.
|
inlinestatic |
Definition at line 1213 of file MachineInstr.h.
Referenced by isEqual().
|
static |
Definition at line 1957 of file MachineInstr.cpp.
References llvm::SmallVectorTemplateCommon< T >::begin(), llvm::SmallVectorTemplateCommon< T >::end(), llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOpcode(), llvm::MachineOperand::getReg(), llvm::hash_combine_range(), llvm::MachineOperand::hash_value, llvm::MachineOperand::isDef(), llvm::MachineOperand::isReg(), llvm::TargetRegisterInfo::isVirtualRegister(), llvm::MachineInstr::operands(), llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), and llvm::SmallVectorImpl< T >::reserve().
|
inlinestatic |
Definition at line 1217 of file MachineInstr.h.
Referenced by isEqual().
|
inlinestatic |
Definition at line 1223 of file MachineInstr.h.
References getEmptyKey(), getTombstoneKey(), llvm::MachineInstr::IgnoreVRegDefs, and llvm::MachineInstr::isIdenticalTo().
1.8.6