Lines Matching defs:MemOpKey
81 class MemOpKey {
83 MemOpKey(const MachineOperand *Base, const MachineOperand *Scale,
93 bool operator==(const MemOpKey &Other) const {
117 /// Provide DenseMapInfo for MemOpKey.
118 template <> struct DenseMapInfo<MemOpKey> {
121 static inline MemOpKey getEmptyKey() {
122 return MemOpKey(PtrInfo::getEmptyKey(), PtrInfo::getEmptyKey(),
127 static inline MemOpKey getTombstoneKey() {
128 return MemOpKey(PtrInfo::getTombstoneKey(), PtrInfo::getTombstoneKey(),
133 static unsigned getHashValue(const MemOpKey &Val) {
134 // Checking any field of MemOpKey is enough to determine if the key is
176 static bool isEqual(const MemOpKey &LHS, const MemOpKey &RHS) {
177 // Checking any field of MemOpKey is enough to determine if the key is
191 static inline MemOpKey getMemOpKey(const MachineInstr &MI, unsigned N) {
194 return MemOpKey(&MI.getOperand(N + X86::AddrBaseReg),
259 using MemOpMap = DenseMap<MemOpKey, SmallVector<MachineInstr *, 16>>;