LLVM API Documentation

llvm::SelectInst Class Reference

#include <Instructions.h>

Inheritance diagram for llvm::SelectInst:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SelectInst (Value *C, Value *S1, Value *S2, const std::string &Name="", Instruction *InsertBefore=0)
 SelectInst (Value *C, Value *S1, Value *S2, const std::string &Name, BasicBlock *InsertAtEnd)
ValuegetCondition () const
ValuegetTrueValue () const
ValuegetFalseValue () const
ValuegetOperand (unsigned i) const
 Transparently provide more efficient getOperand methods.
void setOperand (unsigned i, Value *Val)
unsigned getNumOperands () const
OtherOps getOpcode () const
virtual SelectInstclone () const

Static Public Member Functions

static bool classof (const SelectInst *)
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

SelectInst - This class represents the LLVM 'select' instruction.

Definition at line 644 of file Instructions.h.


Constructor & Destructor Documentation

llvm::SelectInst::SelectInst ( Value C,
Value S1,
Value S2,
const std::string &  Name = "",
Instruction InsertBefore = 0 
) [inline]

Definition at line 658 of file Instructions.h.

References C, llvm::cl::init(), and Name.

llvm::SelectInst::SelectInst ( Value C,
Value S1,
Value S2,
const std::string &  Name,
BasicBlock InsertAtEnd 
) [inline]

Definition at line 664 of file Instructions.h.

References C, and llvm::cl::init().


Member Function Documentation

Value* llvm::SelectInst::getCondition (  )  const [inline]

Definition at line 671 of file Instructions.h.

References Ops.

Referenced by FoldOpIntoSelect().

Value* llvm::SelectInst::getTrueValue (  )  const [inline]

Definition at line 672 of file Instructions.h.

References Ops.

Value* llvm::SelectInst::getFalseValue (  )  const [inline]

Definition at line 673 of file Instructions.h.

References Ops.

Value* llvm::SelectInst::getOperand ( unsigned  i  )  const [inline]

Transparently provide more efficient getOperand methods.

Reimplemented from llvm::User.

Definition at line 676 of file Instructions.h.

References Ops.

Referenced by FoldOpIntoSelect(), and llvm::Interpreter::visitSelectInst().

void llvm::SelectInst::setOperand ( unsigned  i,
Value Val 
) [inline]

Reimplemented from llvm::User.

Definition at line 680 of file Instructions.h.

References Ops, and Val.

unsigned llvm::SelectInst::getNumOperands (  )  const [inline]

Reimplemented from llvm::User.

Definition at line 684 of file Instructions.h.

OtherOps llvm::SelectInst::getOpcode (  )  const [inline]

Subclass classification... getOpcode() returns a member of one of the enums that is coming soon (down below)...

Reimplemented from llvm::Instruction.

Definition at line 686 of file Instructions.h.

References llvm::Instruction::getOpcode().

SelectInst * SelectInst::clone (  )  const [virtual]

clone() - Create a copy of 'this' instruction that is identical in all ways except the following: The instruction has no parent The instruction has no name

Implements llvm::Instruction.

Definition at line 1325 of file Instructions.cpp.

static bool llvm::SelectInst::classof ( const SelectInst  )  [inline, static]

Definition at line 693 of file Instructions.h.

static bool llvm::SelectInst::classof ( const Instruction I  )  [inline, static]

Methods for support type inquiry through isa, cast, and dyn_cast:.

Reimplemented from llvm::Instruction.

Definition at line 694 of file Instructions.h.

References llvm::Instruction::getOpcode(), and llvm::Instruction::Select.

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

Reimplemented from llvm::Instruction.

Definition at line 697 of file Instructions.h.

References llvm::CastInst::classof(), and V.


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