LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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 359 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 708 of file Instructions.cpp.

References getInverseCondition().

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

Definition at line 716 of file Instructions.cpp.

References getInverseCondition().


Member Function Documentation

static bool llvm::SetCondInst::classof const Value V  )  [inline, static]
 

Reimplemented from llvm::BinaryOperator.

Definition at line 399 of file Instructions.h.

References 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 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.

static bool llvm::SetCondInst::classof const SetCondInst  )  [inline, static]
 

Definition at line 393 of file Instructions.h.

Referenced by classof().

Instruction::BinaryOps SetCondInst::getInverseCondition BinaryOps  Opcode  )  [static]
 

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.

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 369 of file Instructions.h.

References llvm::BinaryOperator::getOpcode().

Referenced by SetCondInst().

Instruction::BinaryOps SetCondInst::getSwappedCondition BinaryOps  Opcode  )  [static]
 

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.

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 382 of file Instructions.h.

References llvm::BinaryOperator::getOpcode().

Referenced by llvm::ConstantFoldBinaryInstruction().


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