LLVM API Documentation

llvm::SetCondInst Class Reference

#include <Instructions.h>

Inheritance diagram for llvm::SetCondInst:

Inheritance graph
[legend]
Collaboration diagram for llvm::SetCondInst:

Collaboration graph
[legend]
List of all members.

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)

Detailed Description

SetCondInst class - Represent a setCC operator, where CC is eq, ne, lt, gt, le, or ge.

Definition at line 425 of file Instructions.h.


Constructor & Destructor Documentation

SetCondInst::SetCondInst ( BinaryOps  Opcode,
Value LHS,
Value RHS,
const std::string &  Name = "",
Instruction InsertBefore = 0 
)

Definition at line 1148 of file Instructions.cpp.

References getInverseCondition().

SetCondInst::SetCondInst ( BinaryOps  Opcode,
Value LHS,
Value RHS,
const std::string &  Name,
BasicBlock InsertAtEnd 
)

Definition at line 1156 of file Instructions.cpp.

References getInverseCondition().


Member Function Documentation

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]

Definition at line 459 of file Instructions.h.

Referenced by classof().

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]

Reimplemented from llvm::BinaryOperator.

Definition at line 465 of file Instructions.h.

References classof(), and V.


The documentation for this class was generated from the following files: