aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-01-12 23:18:06 +0000
committerChris Lattner <sabre@nondot.org>2004-01-12 23:18:06 +0000
commit925e3474bd4c3d4db63ce5739c98d30c213fbc88 (patch)
tree1f0be21714ac69ea9bcf5834e0006a7bd7dcf74f
parenteab20b58b1ca882933b3934fd9f320aba0bc1f10 (diff)
Add new method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10809 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Instruction.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h
index cc9a8aec2b..9de8747361 100644
--- a/include/llvm/Instruction.h
+++ b/include/llvm/Instruction.h
@@ -105,6 +105,12 @@ public:
bool isCommutative() const { return isCommutative(getOpcode()); }
static bool isCommutative(unsigned op);
+ /// isRelational - Return true if the instruction is a Set* instruction:
+ ///
+ bool isRelational() const { return isRelational(getOpcode()); }
+ static bool isRelational(unsigned op);
+
+
/// isTrappingInstruction - Return true if the instruction may trap.
///
bool isTrapping() const {