diff options
author | Chris Lattner <sabre@nondot.org> | 2004-11-30 02:51:53 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-11-30 02:51:53 +0000 |
commit | 38f14553939e574becab6ea1e0b055d31293b0cf (patch) | |
tree | f5791ecabae032bdf4e8aa26b02ffdae43c8f732 /include/llvm/Instruction.h | |
parent | 8cca1a7cbc1b1d0d1975f6cc607d2bcf6e327530 (diff) | |
download | llvm-38f14553939e574becab6ea1e0b055d31293b0cf.tar.gz llvm-38f14553939e574becab6ea1e0b055d31293b0cf.tar.bz2 llvm-38f14553939e574becab6ea1e0b055d31293b0cf.tar.xz |
Add method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18368 91177308-0d34-0410-b5e6-96231b3b80d8
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... // |