LLVM API Documentation

llvm::InsertElementInst Class Reference

#include <Instructions.h>

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

List of all members.

Public Member Functions

virtual InsertElementInst * clone () const
const VectorType * getType () const
 DECLARE_TRANSPARENT_OPERAND_ACCESSORS (Value)
 Transparently provide more efficient getOperand methods.

Static Public Member Functions

static InsertElementInst * Create (const InsertElementInst &IE)
static InsertElementInst * Create (Value *Vec, Value *NewElt, Value *Idx, const std::string &NameStr="", Instruction *InsertBefore=0)
static InsertElementInst * Create (Value *Vec, Value *NewElt, unsigned Idx, const std::string &NameStr="", Instruction *InsertBefore=0)
static InsertElementInst * Create (Value *Vec, Value *NewElt, Value *Idx, const std::string &NameStr, BasicBlock *InsertAtEnd)
static InsertElementInst * Create (Value *Vec, Value *NewElt, unsigned Idx, const std::string &NameStr, BasicBlock *InsertAtEnd)
static bool isValidOperands (const Value *Vec, const Value *NewElt, const Value *Idx)
static bool classof (const InsertElementInst *)
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

InsertElementInst - This instruction inserts a single (scalar) element into a VectorType value

Definition at line 1378 of file Instructions.h.


Member Function Documentation

static InsertElementInst* llvm::InsertElementInst::Create ( const InsertElementInst &  IE  )  [inline, static]

static InsertElementInst* llvm::InsertElementInst::Create ( Value *  Vec,
Value *  NewElt,
Value *  Idx,
const std::string &  NameStr = "",
Instruction *  InsertBefore = 0 
) [inline, static]

Definition at line 1392 of file Instructions.h.

static InsertElementInst* llvm::InsertElementInst::Create ( Value *  Vec,
Value *  NewElt,
unsigned  Idx,
const std::string &  NameStr = "",
Instruction *  InsertBefore = 0 
) [inline, static]

Definition at line 1397 of file Instructions.h.

static InsertElementInst* llvm::InsertElementInst::Create ( Value *  Vec,
Value *  NewElt,
Value *  Idx,
const std::string &  NameStr,
BasicBlock *  InsertAtEnd 
) [inline, static]

Definition at line 1402 of file Instructions.h.

static InsertElementInst* llvm::InsertElementInst::Create ( Value *  Vec,
Value *  NewElt,
unsigned  Idx,
const std::string &  NameStr,
BasicBlock *  InsertAtEnd 
) [inline, static]

Definition at line 1407 of file Instructions.h.

bool InsertElementInst::isValidOperands ( const Value *  Vec,
const Value *  NewElt,
const Value *  Idx 
) [static]

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

Definition at line 1273 of file Instructions.cpp.

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

InsertElementInst * InsertElementInst::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 2913 of file Instructions.cpp.

References Create().

const VectorType* llvm::InsertElementInst::getType (  )  const [inline]

getType - Overload to return most specific vector type.

Reimplemented from llvm::Value.

Definition at line 1422 of file Instructions.h.

References llvm::Intrinsic::getType().

llvm::InsertElementInst::DECLARE_TRANSPARENT_OPERAND_ACCESSORS ( Value   ) 

Transparently provide more efficient getOperand methods.

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

Definition at line 1430 of file Instructions.h.

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

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

Reimplemented from llvm::Instruction.

Definition at line 1431 of file Instructions.h.

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

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

Reimplemented from llvm::Instruction.

Definition at line 1434 of file Instructions.h.


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