diff options
Diffstat (limited to 'include/llvm/Instruction.h')
-rw-r--r-- | include/llvm/Instruction.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h index 8d49870e4d..a7359731db 100644 --- a/include/llvm/Instruction.h +++ b/include/llvm/Instruction.h @@ -67,6 +67,12 @@ public: /// * The instruction has no name /// virtual Instruction *clone() const = 0; + + /// isIdenticalTo - Return true if the specified instruction is exactly + /// identical to the current one. This means that all operands match and any + /// extra information (e.g. load is volatile) agree. + bool isIdenticalTo(Instruction *I) const; + // Accessor methods... // |