LLVM API Documentation
#include <Instructions.h>
Inheritance diagram for llvm::SetCondInst:
Public Member Functions | |
SetCondInst (BinaryOps Opcode, Value *LHS, Value *RHS, const std::string &Name="", Instruction *InsertBefore=0) | |
SetCondInst (BinaryOps Opcode, Value *LHS, Value *RHS, const std::string &Name, BasicBlock *InsertAtEnd) | |
BinaryOps | getInverseCondition () const |
BinaryOps | getSwappedCondition () const |
Static Public Member Functions | |
static BinaryOps | getInverseCondition (BinaryOps Opcode) |
static BinaryOps | getSwappedCondition (BinaryOps Opcode) |
static bool | classof (const SetCondInst *) |
static bool | classof (const Instruction *I) |
Methods for support type inquiry through isa, cast, and dyn_cast:. | |
static bool | classof (const Value *V) |
Definition at line 425 of file Instructions.h.
SetCondInst::SetCondInst | ( | BinaryOps | Opcode, | |
Value * | LHS, | |||
Value * | RHS, | |||
const std::string & | Name = "" , |
|||
Instruction * | InsertBefore = 0 | |||
) |
SetCondInst::SetCondInst | ( | BinaryOps | Opcode, | |
Value * | LHS, | |||
Value * | RHS, | |||
const std::string & | Name, | |||
BasicBlock * | InsertAtEnd | |||
) |
BinaryOps llvm::SetCondInst::getInverseCondition | ( | ) | const [inline] |
getInverseCondition - Return the inverse of the current condition opcode. For example seteq -> setne, setgt -> setle, setlt -> setge, etc...
Definition at line 435 of file Instructions.h.
References llvm::BinaryOperator::getOpcode().
Referenced by SetCondInst().
Instruction::BinaryOps SetCondInst::getInverseCondition | ( | BinaryOps | Opcode | ) | [static] |
getInverseCondition - Static version that you can use without an instruction available.
Definition at line 1167 of file Instructions.cpp.
BinaryOps llvm::SetCondInst::getSwappedCondition | ( | ) | const [inline] |
getSwappedCondition - Return the condition opcode that would be the result of exchanging the two operands of the setcc instruction without changing the result produced. Thus, seteq->seteq, setle->setge, setlt->setgt, etc.
Definition at line 448 of file Instructions.h.
References llvm::BinaryOperator::getOpcode().
Referenced by llvm::ConstantFoldBinaryInstruction().
Instruction::BinaryOps SetCondInst::getSwappedCondition | ( | BinaryOps | Opcode | ) | [static] |
getSwappedCondition - Static version that you can use without an instruction available.
Definition at line 1184 of file Instructions.cpp.
static bool llvm::SetCondInst::classof | ( | const SetCondInst * | ) | [inline, static] |
static bool llvm::SetCondInst::classof | ( | const Instruction * | I | ) | [inline, static] |
Methods for support type inquiry through isa, cast, and dyn_cast:.
Reimplemented from llvm::BinaryOperator.
Definition at line 460 of file Instructions.h.
References llvm::Instruction::getOpcode().
static bool llvm::SetCondInst::classof | ( | const Value * | V | ) | [inline, static] |