LLVM API Documentation

Public Member Functions | Static Public Member Functions | Protected Member Functions
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

const ValuegetCondition () const
const ValuegetTrueValue () const
const ValuegetFalseValue () const
ValuegetCondition ()
ValuegetTrueValue ()
ValuegetFalseValue ()
 DECLARE_TRANSPARENT_OPERAND_ACCESSORS (Value)
 Transparently provide more efficient getOperand methods.
OtherOps getOpcode () const
 getOpcode() returns a member of one of the enums like Instruction::Add.

Static Public Member Functions

static SelectInstCreate (Value *C, Value *S1, Value *S2, const Twine &NameStr="", Instruction *InsertBefore=nullptr)
static SelectInstCreate (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 Instruction *I)
static bool classof (const Value *V)
 Methods for support type inquiry through isa, cast, and dyn_cast:

Protected Member Functions

SelectInstclone_impl () const override

Detailed Description

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

Definition at line 1542 of file Instructions.h.


Member Function Documentation

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.

Definition at line 62 of file Instructions.cpp.

References llvm::dyn_cast(), llvm::Value::getContext(), llvm::Type::getInt1Ty(), llvm::VectorType::getNumElements(), and llvm::Value::getType().

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

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

Definition at line 1597 of file Instructions.h.

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

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

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

Reimplemented from llvm::Instruction.

Definition at line 1600 of file Instructions.h.

SelectInst * SelectInst::clone_impl ( ) const [override, protected, virtual]

Implements llvm::Instruction.

Definition at line 3733 of file Instructions.cpp.

References Create(), and llvm::User::getOperand().

static SelectInst* llvm::SelectInst::Create ( Value C,
Value S1,
Value S2,
const Twine NameStr = "",
Instruction InsertBefore = nullptr 
) [inline, static]
static SelectInst* llvm::SelectInst::Create ( Value C,
Value S1,
Value S2,
const Twine NameStr,
BasicBlock InsertAtEnd 
) [inline, static]

Definition at line 1572 of file Instructions.h.

Transparently provide more efficient getOperand methods.

Definition at line 1581 of file Instructions.h.

Definition at line 1583 of file Instructions.h.

getOpcode() returns a member of one of the enums like Instruction::Add.

Reimplemented from llvm::Instruction.

Definition at line 1592 of file Instructions.h.

References llvm::Instruction::getOpcode().

Definition at line 1582 of file Instructions.h.


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