LLVM API Documentation
#include <Instructions.h>
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 (LLVMContext &Context) const |
Static Public Member Functions | |
| static SelectInst * | Create (Value *C, Value *S1, Value *S2, const Twine &NameStr="", Instruction *InsertBefore=0) |
| static SelectInst * | Create (Value *C, Value *S1, Value *S2, const Twine &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) |
Definition at line 1167 of file Instructions.h.
| static SelectInst* llvm::SelectInst::Create | ( | Value * | C, | |
| Value * | S1, | |||
| Value * | S2, | |||
| const Twine & | NameStr = "", |
|||
| Instruction * | InsertBefore = 0 | |||
| ) | [inline, static] |
Definition at line 1190 of file Instructions.h.
Referenced by clone(), llvm::NoFolder::CreateSelect(), llvm::IRBuilder< true, llvm::TargetFolder >::CreateSelect(), getMax(), getMin(), SimplifyCondBranchToCondBranch(), and TryToShrinkGlobalToBoolean().
| static SelectInst* llvm::SelectInst::Create | ( | Value * | C, | |
| Value * | S1, | |||
| Value * | S2, | |||
| const Twine & | NameStr, | |||
| BasicBlock * | InsertAtEnd | |||
| ) | [inline, static] |
Definition at line 1195 of file Instructions.h.
| Value* llvm::SelectInst::getCondition | ( | ) | const [inline] |
| Value* llvm::SelectInst::getTrueValue | ( | ) | const [inline] |
Definition at line 1202 of file Instructions.h.
| Value* llvm::SelectInst::getFalseValue | ( | ) | const [inline] |
Definition at line 1203 of file Instructions.h.
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 123 of file Instructions.cpp.
References llvm::dyn_cast(), llvm::Value::getContext(), llvm::Type::getInt1Ty(), llvm::VectorType::getNumElements(), llvm::Value::getType(), 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 1212 of file Instructions.h.
References llvm::Instruction::getOpcode().
| SelectInst * SelectInst::clone | ( | LLVMContext & | Context | ) | 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 3014 of file Instructions.cpp.
References Create(), llvm::User::getOperand(), and llvm::Value::SubclassOptionalData.
| static bool llvm::SelectInst::classof | ( | const SelectInst * | ) | [inline, static] |
Definition at line 1219 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 1220 of file Instructions.h.
References llvm::Instruction::getOpcode().