LLVM API Documentation

llvm::ExtractElementInst Class Reference

#include <Instructions.h>

Inheritance diagram for llvm::ExtractElementInst:

Inheritance graph
[legend]
Collaboration diagram for llvm::ExtractElementInst:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ExtractElementInst (Value *Vec, Value *Idx, const std::string &Name="", Instruction *InsertBefore=0)
 ExtractElementInst (Value *Vec, Value *Idx, const std::string &Name, BasicBlock *InsertAtEnd)
virtual ExtractElementInstclone () const
virtual bool mayWriteToMemory () const
ValuegetOperand (unsigned i) const
 Transparently provide more efficient getOperand methods.
void setOperand (unsigned i, Value *Val)
unsigned getNumOperands () const

Static Public Member Functions

static bool isValidOperands (const Value *Vec, const Value *Idx)
static bool classof (const ExtractElementInst *)
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

ExtractElementInst - This instruction extracts a single (scalar) element from a PackedType value

Definition at line 727 of file Instructions.h.


Constructor & Destructor Documentation

ExtractElementInst::ExtractElementInst ( Value Vec,
Value Idx,
const std::string &  Name = "",
Instruction InsertBefore = 0 
)

Definition at line 802 of file Instructions.cpp.

References llvm::Use::init(), isValidOperands(), and Val.

ExtractElementInst::ExtractElementInst ( Value Vec,
Value Idx,
const std::string &  Name,
BasicBlock InsertAtEnd 
)

Definition at line 813 of file Instructions.cpp.

References llvm::Use::init(), isValidOperands(), and Val.


Member Function Documentation

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

Reimplemented from llvm::Instruction.

Definition at line 765 of file Instructions.h.

References llvm::CastInst::classof(), and V.

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

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

Reimplemented from llvm::Instruction.

Definition at line 762 of file Instructions.h.

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

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

Definition at line 761 of file Instructions.h.

ExtractElementInst * ExtractElementInst::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 1280 of file Instructions.cpp.

unsigned llvm::ExtractElementInst::getNumOperands (  )  const [inline]

Reimplemented from llvm::User.

Definition at line 758 of file Instructions.h.

Value* llvm::ExtractElementInst::getOperand ( unsigned  i  )  const [inline]

Transparently provide more efficient getOperand methods.

Reimplemented from llvm::User.

Definition at line 750 of file Instructions.h.

bool ExtractElementInst::isValidOperands ( const Value Vec,
const Value Idx 
) [static]

isValidOperands - Return true if an extractelement instruction can be formed with the specified operands.

Definition at line 825 of file Instructions.cpp.

References llvm::Value::getType(), llvm::Type::UIntTy, and Val.

Referenced by ExtractElementInst(), llvm::BytecodeReader::ParseConstantPoolValue(), and llvm::BytecodeReader::ParseInstruction().

virtual bool llvm::ExtractElementInst::mayWriteToMemory (  )  const [inline, virtual]

mayWriteToMemory - Return true if this instruction may modify memory.

Reimplemented from llvm::Instruction.

Definition at line 747 of file Instructions.h.

void llvm::ExtractElementInst::setOperand ( unsigned  i,
Value Val 
) [inline]

Reimplemented from llvm::User.

Definition at line 754 of file Instructions.h.

References Val.


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