LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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

 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
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)

Detailed Description

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

Definition at line 559 of file Instructions.h.


Constructor & Destructor Documentation

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

Definition at line 574 of file Instructions.h.

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

Definition at line 579 of file Instructions.h.


Member Function Documentation

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

Reimplemented from llvm::Instruction.

Definition at line 600 of file Instructions.h.

References classof().

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

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

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

Definition at line 596 of file Instructions.h.

Referenced by classof().

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

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

Definition at line 585 of file Instructions.h.

References llvm::User::Operands.

Referenced by FoldBinOpIntoSelect().

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

Definition at line 587 of file Instructions.h.

References llvm::User::Operands.

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

References llvm::Instruction::getOpcode().

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

Definition at line 586 of file Instructions.h.

References llvm::User::Operands.


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