projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eab20b5
)
Add new method
author
Chris Lattner
<sabre@nondot.org>
Mon, 12 Jan 2004 23:18:06 +0000
(23:18 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 12 Jan 2004 23:18:06 +0000
(23:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10809
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Instruction.h
patch
|
blob
|
history
diff --git
a/include/llvm/Instruction.h
b/include/llvm/Instruction.h
index cc9a8aec2b129f07ee96dc4241549d906cdae3c7..9de8747361eb4b584e5f507bd89c30edf8155844 100644
(file)
--- 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 {