1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

Machine{Instr|Operand}: Clarify some isIdenticalTo() subtleties.

llvm-svn: 281956
This commit is contained in:
Matthias Braun 2016-09-20 01:14:39 +00:00
parent cfcf1da683
commit 459e091d82
2 changed files with 5 additions and 4 deletions

View File

@ -721,8 +721,9 @@ public:
IgnoreVRegDefs // Ignore virtual register definitions
};
/// Return true if this instruction is identical to (same
/// opcode and same operands as) the specified instruction.
/// Return true if this instruction is identical to \p Other.
/// Identical meaning same opcode and all operands reported as
/// isIdenticalOp() (equal except for liveness flags).
bool isIdenticalTo(const MachineInstr &Other,
MICheckType Check = CheckDefs) const;

View File

@ -566,8 +566,8 @@ public:
// Other methods.
//===--------------------------------------------------------------------===//
/// isIdenticalTo - Return true if this operand is identical to the specified
/// operand. Note: This method ignores isKill and isDead properties.
/// Returns true if this operand is identical to the specified operand except
/// for liveness related flags (isKill, isUndef and isDead).
bool isIdenticalTo(const MachineOperand &Other) const;
/// \brief MachineOperand hash_value overload.