From e1496fbb3307c639c9deabe144c7a2e937e1ccef Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 17 Sep 2006 19:14:47 +0000 Subject: Add new SetCondInst::isRelational/isEquality methods. Rename Instruction::isRelational to Instruction::isComparison. llvm-svn: 30444 --- llvm/lib/VMCore/Instruction.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/VMCore/Instruction.cpp') 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: -- cgit v1.2.3