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 359 of file Instructions.h.
|
Definition at line 708 of file Instructions.cpp. References getInverseCondition(). |
|
Definition at line 716 of file Instructions.cpp. References getInverseCondition(). |
|
Reimplemented from llvm::BinaryOperator. Definition at line 399 of file Instructions.h. References classof(). |
|
Methods for support type inquiry through isa, cast, and dyn_cast:.
Reimplemented from llvm::BinaryOperator. Definition at line 394 of file Instructions.h. References llvm::Instruction::getOpcode(), llvm::ISD::SetEQ, llvm::ISD::SetGE, llvm::ISD::SetGT, llvm::ISD::SetLE, llvm::ISD::SetLT, and llvm::ISD::SetNE. |
|
Definition at line 393 of file Instructions.h. Referenced by classof(). |
|
getInverseCondition - Static version that you can use without an instruction available. Definition at line 727 of file Instructions.cpp. References llvm::ISD::SetEQ, llvm::ISD::SetGE, llvm::ISD::SetGT, llvm::ISD::SetLE, llvm::ISD::SetLT, and llvm::ISD::SetNE. |
|
getInverseCondition - Return the inverse of the current condition opcode. For example seteq -> setne, setgt -> setle, setlt -> setge, etc... Definition at line 369 of file Instructions.h. References llvm::BinaryOperator::getOpcode(). Referenced by SetCondInst(). |
|
getSwappedCondition - Static version that you can use without an instruction available. Definition at line 744 of file Instructions.cpp. References llvm::ISD::SetEQ, llvm::ISD::SetGE, llvm::ISD::SetGT, llvm::ISD::SetLE, llvm::ISD::SetLT, and llvm::ISD::SetNE. |
|
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 382 of file Instructions.h. References llvm::BinaryOperator::getOpcode(). Referenced by llvm::ConstantFoldBinaryInstruction(). |