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

ValuegetCondition () const
ValuegetTrueValue () const
ValuegetFalseValue () const
 DECLARE_TRANSPARENT_OPERAND_ACCESSORS (Value)
 Transparently provide more efficient getOperand methods.
OtherOps getOpcode () const
virtual SelectInstclone () const

Static Public Member Functions

static SelectInstCreate (Value *C, Value *S1, Value *S2, const std::string &NameStr="", Instruction *InsertBefore=0)
static SelectInstCreate (Value *C, Value *S1, Value *S2, const std::string &NameStr, BasicBlock *InsertAtEnd)
static const char * areInvalidOperands (Value *Cond, Value *True, Value *False)
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 1206 of file Instructions.h.


Member Function Documentation

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

static SelectInst* llvm::SelectInst::Create ( Value C,
Value S1,
Value S2,
const std::string &  NameStr,
BasicBlock InsertAtEnd 
) [inline, static]

Definition at line 1238 of file Instructions.h.

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

Definition at line 1244 of file Instructions.h.

Referenced by FoldOpIntoSelect().

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

Definition at line 1245 of file Instructions.h.

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

Definition at line 1246 of file Instructions.h.

const char * SelectInst::areInvalidOperands ( Value Op0,
Value Op1,
Value Op2 
) [static]

areInvalidOperands - Return a string if the specified operands are invalid for a select operation, otherwise return null.

areInvalidOperands - Return a string if the specified operands are invalid for a select operation, otherwise return null.

Definition at line 147 of file Instructions.cpp.

References llvm::dyn_cast(), llvm::VectorType::getNumElements(), llvm::Value::getType(), llvm::Type::Int1Ty, and VT.

Referenced by llvm::ConstantExpr::getSelectTy().

llvm::SelectInst::DECLARE_TRANSPARENT_OPERAND_ACCESSORS ( Value   ) 

Transparently provide more efficient getOperand methods.

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

References 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 2931 of file Instructions.cpp.

References llvm::User::getNumOperands().

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

Definition at line 1262 of file Instructions.h.

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

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

Reimplemented from llvm::Instruction.

Definition at line 1263 of file Instructions.h.

References llvm::Instruction::getOpcode().

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

Reimplemented from llvm::Instruction.

Definition at line 1266 of file Instructions.h.


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



This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.