LLVM API Documentation

llvm::SelectInst Class Reference

#include <Instructions.h>

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

List of all members.

Public Member Functions

Value * getCondition () const
Value * getTrueValue () const
Value * getFalseValue () const
 DECLARE_TRANSPARENT_OPERAND_ACCESSORS (Value)
 Transparently provide more efficient getOperand methods.
OtherOps getOpcode () const
virtual SelectInst * clone () const

Static Public Member Functions

static SelectInst * Create (Value *C, Value *S1, Value *S2, const std::string &NameStr="", Instruction *InsertBefore=0)
static SelectInst * Create (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 1213 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 1245 of file Instructions.h.

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

Definition at line 1251 of file Instructions.h.

Referenced by FoldOpIntoSelect().

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

Definition at line 1252 of file Instructions.h.

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

Definition at line 1253 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 121 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 1262 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 2905 of file Instructions.cpp.

References llvm::User::getNumOperands().

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

Definition at line 1269 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 1270 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 1273 of file Instructions.h.


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