LLVM API Documentation
#include <Instructions.h>
Inheritance diagram for llvm::SelectInst:
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) | |
Value * | getCondition () const |
Value * | getTrueValue () const |
Value * | getFalseValue () const |
Value * | getOperand (unsigned i) const |
Transparently provide more efficient getOperand methods. | |
void | setOperand (unsigned i, Value *Val) |
unsigned | getNumOperands () const |
OtherOps | getOpcode () const |
virtual SelectInst * | clone () 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) |
Definition at line 629 of file Instructions.h.
llvm::SelectInst::SelectInst | ( | Value * | C, | |
Value * | S1, | |||
Value * | S2, | |||
const std::string & | Name = "" , |
|||
Instruction * | InsertBefore = 0 | |||
) | [inline] |
Definition at line 643 of file Instructions.h.
References llvm::CallingConv::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 649 of file Instructions.h.
References llvm::CallingConv::C, and llvm::cl::init().
static bool llvm::SelectInst::classof | ( | const Value * | V | ) | [inline, static] |
Reimplemented from llvm::Instruction.
Definition at line 682 of file Instructions.h.
References llvm::CastInst::classof(), and V.
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 679 of file Instructions.h.
References llvm::Instruction::getOpcode(), and llvm::Instruction::Select.
static bool llvm::SelectInst::classof | ( | const SelectInst * | ) | [inline, static] |
Definition at line 678 of file Instructions.h.
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 1278 of file Instructions.cpp.
Value* llvm::SelectInst::getCondition | ( | ) | const [inline] |
Value* llvm::SelectInst::getFalseValue | ( | ) | const [inline] |
Definition at line 658 of file Instructions.h.
unsigned llvm::SelectInst::getNumOperands | ( | ) | const [inline] |
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 671 of file Instructions.h.
References llvm::Instruction::getOpcode().
Value* llvm::SelectInst::getOperand | ( | unsigned | i | ) | const [inline] |
Transparently provide more efficient getOperand methods.
Reimplemented from llvm::User.
Definition at line 661 of file Instructions.h.
Referenced by FoldOpIntoSelect(), isIdenticalSelectInst(), and llvm::Interpreter::visitSelectInst().
Value* llvm::SelectInst::getTrueValue | ( | ) | const [inline] |
Definition at line 657 of file Instructions.h.
void llvm::SelectInst::setOperand | ( | unsigned | i, | |
Value * | Val | |||
) | [inline] |