From bacb8b9a004d4737ff0f8bf9edef501aa73de94f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 20 Aug 2002 18:17:09 +0000 Subject: [PATCH] Add new SetCondInst::getInverseCondition() method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3404 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/iOperators.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/llvm/iOperators.h b/include/llvm/iOperators.h index ba64b0faec1..3bdb13df0f6 100644 --- a/include/llvm/iOperators.h +++ b/include/llvm/iOperators.h @@ -29,6 +29,11 @@ class SetCondInst : public BinaryOperator { public: SetCondInst(BinaryOps opType, Value *S1, Value *S2, const std::string &Name = ""); + + // getInverseCondition - Return the inverse of the current condition opcode. + // For example seteq -> setne, setgt -> setle, setlt -> setge, etc... + // + BinaryOps getInverseCondition() const; }; #endif -- 2.34.1