Lines Matching full:mo
60 stable_hash llvm::stableHashValue(const MachineOperand &MO) { in stableHashValue() argument
61 switch (MO.getType()) { in stableHashValue()
63 if (MO.getReg().isVirtual()) { in stableHashValue()
64 const MachineRegisterInfo &MRI = MO.getParent()->getMF()->getRegInfo(); in stableHashValue()
66 for (auto &Def : MRI.def_instructions(MO.getReg())) in stableHashValue()
72 return stable_hash_combine(MO.getType(), MO.getReg(), MO.getSubReg(), in stableHashValue()
73 MO.isDef()); in stableHashValue()
75 return stable_hash_combine(MO.getType(), MO.getTargetFlags(), MO.getImm()); in stableHashValue()
78 auto Val = MO.isCImm() ? MO.getCImm()->getValue() in stableHashValue()
79 : MO.getFPImm()->getValueAPF().bitcastToAPInt(); in stableHashValue()
82 return hash_combine(MO.getType(), MO.getTargetFlags(), ValHash); in stableHashValue()
101 if (const char *Name = MO.getTargetIndexName()) in stableHashValue()
102 return stable_hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue()
104 MO.getOffset()); in stableHashValue()
111 return stable_hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue()
112 MO.getIndex()); in stableHashValue()
115 return hash_combine(MO.getType(), MO.getTargetFlags(), MO.getOffset(), in stableHashValue()
116 stable_hash_combine_string(MO.getSymbolName())); in stableHashValue()
120 if (const MachineInstr *MI = MO.getParent()) { in stableHashValue()
126 const uint32_t *RegMask = MO.getRegMask(); in stableHashValue()
129 return hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue()
137 return hash_combine(MO.getType(), MO.getTargetFlags()); in stableHashValue()
144 MO.getShuffleMask(), std::back_inserter(ShuffleMaskHashes), in stableHashValue()
147 return hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue()
152 auto SymbolName = MO.getMCSymbol()->getName(); in stableHashValue()
153 return hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue()
157 return stable_hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue()
158 MO.getCFIIndex()); in stableHashValue()
160 return stable_hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue()
161 MO.getIntrinsicID()); in stableHashValue()
163 return stable_hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue()
164 MO.getPredicate()); in stableHashValue()
166 return stable_hash_combine(MO.getType(), MO.getInstrRefInstrIndex(), in stableHashValue()
167 MO.getInstrRefOpIndex()); in stableHashValue()
184 for (const MachineOperand &MO : MI.operands()) { in stableHashValue() local
185 if (!HashVRegs && MO.isReg() && MO.isDef() && MO.getReg().isVirtual()) in stableHashValue()
188 if (MO.isCPI()) { in stableHashValue()
190 MO.getType(), MO.getTargetFlags(), MO.getIndex())); in stableHashValue()
194 stable_hash StableHash = stableHashValue(MO); in stableHashValue()