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

virtual ExtractElementInst * clone (LLVMContext &Context) const
 DECLARE_TRANSPARENT_OPERAND_ACCESSORS (Value)
 Transparently provide more efficient getOperand methods.

Static Public Member Functions

static ExtractElementInst * Create (const ExtractElementInst &EE)
static ExtractElementInst * Create (Value *Vec, Value *Idx, const Twine &NameStr="", Instruction *InsertBefore=0)
static ExtractElementInst * Create (Value *Vec, Value *Idx, const Twine &NameStr, BasicBlock *InsertAtEnd)
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 1273 of file Instructions.h.


Member Function Documentation

static ExtractElementInst* llvm::ExtractElementInst::Create ( const ExtractElementInst &  EE  )  [inline, static]

static ExtractElementInst* llvm::ExtractElementInst::Create ( Value *  Vec,
Value *  Idx,
const Twine &  NameStr = "",
Instruction *  InsertBefore = 0 
) [inline, static]

Definition at line 1283 of file Instructions.h.

static ExtractElementInst* llvm::ExtractElementInst::Create ( Value *  Vec,
Value *  Idx,
const Twine &  NameStr,
BasicBlock *  InsertAtEnd 
) [inline, static]

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

References llvm::Value::getContext(), llvm::Type::getInt32Ty(), and llvm::Value::getType().

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

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

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

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

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

Reimplemented from llvm::Instruction.

Definition at line 1308 of file Instructions.h.


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