aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {