summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Instruction.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-09-17 19:14:47 +0000
committerChris Lattner <sabre@nondot.org>2006-09-17 19:14:47 +0000
commite1496fbb3307c639c9deabe144c7a2e937e1ccef (patch)
tree6fd8e59236030d30bf856b0510ea8222beea77f0 /llvm/lib/VMCore/Instruction.cpp
parent241211939d53bdd7720bdc3d80c9ca04c2afef7d (diff)
downloadbcm5719-llvm-e1496fbb3307c639c9deabe144c7a2e937e1ccef.tar.gz
bcm5719-llvm-e1496fbb3307c639c9deabe144c7a2e937e1ccef.zip
Add new SetCondInst::isRelational/isEquality methods. Rename
Instruction::isRelational to Instruction::isComparison. llvm-svn: 30444
Diffstat (limited to 'llvm/lib/VMCore/Instruction.cpp')
-rw-r--r--llvm/lib/VMCore/Instruction.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/Instruction.cpp b/llvm/lib/VMCore/Instruction.cpp
index ab4aaac7450..b2951461d7c 100644
--- a/llvm/lib/VMCore/Instruction.cpp
+++ b/llvm/lib/VMCore/Instruction.cpp
@@ -200,9 +200,9 @@ bool Instruction::isCommutative(unsigned op) {
}
}
-/// isRelational - Return true if the instruction is a Set* instruction:
+/// isComparison - Return true if the instruction is a Set* instruction:
///
-bool Instruction::isRelational(unsigned op) {
+bool Instruction::isComparison(unsigned op) {
switch (op) {
case SetEQ:
case SetNE:
OpenPOWER on IntegriCloud