LLVM API Documentation

llvm::ExtractElementInst Class Reference

#include <Instructions.h>

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

List of all members.

Public Member Functions

void * operator new (size_t s)
 ExtractElementInst (Value *Vec, Value *Idx, const std::string &NameStr="", Instruction *InsertBefore=0)
 ExtractElementInst (Value *Vec, unsigned Idx, const std::string &NameStr="", Instruction *InsertBefore=0)
 ExtractElementInst (Value *Vec, Value *Idx, const std::string &NameStr, BasicBlock *InsertAtEnd)
 ExtractElementInst (Value *Vec, unsigned Idx, const std::string &NameStr, BasicBlock *InsertAtEnd)
virtual ExtractElementInst * clone () const
 DECLARE_TRANSPARENT_OPERAND_ACCESSORS (Value)
 Transparently provide more efficient getOperand methods.

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 VectorType value

Definition at line 1325 of file Instructions.h.


Constructor & Destructor Documentation

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

Definition at line 1132 of file Instructions.cpp.

References isValidOperands(), and llvm::Value::setName().

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

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

Definition at line 1162 of file Instructions.cpp.

References isValidOperands(), and llvm::Value::setName().

ExtractElementInst::ExtractElementInst ( Value *  Vec,
unsigned  Idx,
const std::string &  NameStr,
BasicBlock *  InsertAtEnd 
)


Member Function Documentation

void* llvm::ExtractElementInst::operator new ( size_t  s  )  [inline]

Reimplemented from llvm::User.

Definition at line 1334 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 1194 of file Instructions.cpp.

References llvm::Value::getType(), and llvm::Type::Int32Ty.

Referenced by ExtractElementInst().

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

llvm::ExtractElementInst::DECLARE_TRANSPARENT_OPERAND_ACCESSORS ( Value   ) 

Transparently provide more efficient getOperand methods.

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

Definition at line 1356 of file Instructions.h.

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

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

Reimplemented from llvm::Instruction.

Definition at line 1357 of file Instructions.h.

References llvm::Instruction::getOpcode().

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

Reimplemented from llvm::Instruction.

Definition at line 1360 of file Instructions.h.


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