LLVM API Documentation

llvm::InsertValueInst Class Reference

#include <Instructions.h>

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

List of all members.

Public Types

typedef const unsigned * idx_iterator

Public Member Functions

void * operator new (size_t s)
virtual InsertValueInst * clone (LLVMContext &Context) const
 DECLARE_TRANSPARENT_OPERAND_ACCESSORS (Value)
 Transparently provide more efficient getOperand methods.
idx_iterator idx_begin () const
idx_iterator idx_end () const
Value * getAggregateOperand ()
const Value * getAggregateOperand () const
Value * getInsertedValueOperand ()
const Value * getInsertedValueOperand () const
unsigned getNumIndices () const
bool hasIndices () const

Static Public Member Functions

template<typename InputIterator>
static InsertValueInst * Create (Value *Agg, Value *Val, InputIterator IdxBegin, InputIterator IdxEnd, const Twine &NameStr="", Instruction *InsertBefore=0)
template<typename InputIterator>
static InsertValueInst * Create (Value *Agg, Value *Val, InputIterator IdxBegin, InputIterator IdxEnd, const Twine &NameStr, BasicBlock *InsertAtEnd)
static InsertValueInst * Create (Value *Agg, Value *Val, unsigned Idx, const Twine &NameStr="", Instruction *InsertBefore=0)
static InsertValueInst * Create (Value *Agg, Value *Val, unsigned Idx, const Twine &NameStr, BasicBlock *InsertAtEnd)
static unsigned getAggregateOperandIndex ()
static unsigned getInsertedValueOperandIndex ()
static bool classof (const InsertValueInst *)
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

InsertValueInst - This instruction inserts a struct field of array element value into an aggregate value.

Definition at line 1630 of file Instructions.h.


Member Typedef Documentation

Definition at line 1722 of file Instructions.h.


Member Function Documentation

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

Reimplemented from llvm::User.

Definition at line 1682 of file Instructions.h.

References operator new().

template<typename InputIterator>
static InsertValueInst* llvm::InsertValueInst::Create ( Value *  Agg,
Value *  Val,
InputIterator  IdxBegin,
InputIterator  IdxEnd,
const Twine &  NameStr = "",
Instruction *  InsertBefore = 0 
) [inline, static]

template<typename InputIterator>
static InsertValueInst* llvm::InsertValueInst::Create ( Value *  Agg,
Value *  Val,
InputIterator  IdxBegin,
InputIterator  IdxEnd,
const Twine &  NameStr,
BasicBlock *  InsertAtEnd 
) [inline, static]

Definition at line 1695 of file Instructions.h.

static InsertValueInst* llvm::InsertValueInst::Create ( Value *  Agg,
Value *  Val,
unsigned  Idx,
const Twine &  NameStr = "",
Instruction *  InsertBefore = 0 
) [inline, static]

Constructors - These two creators are convenience methods because one index insertvalue instructions are much more common than those with more than one.

Definition at line 1706 of file Instructions.h.

static InsertValueInst* llvm::InsertValueInst::Create ( Value *  Agg,
Value *  Val,
unsigned  Idx,
const Twine &  NameStr,
BasicBlock *  InsertAtEnd 
) [inline, static]

Definition at line 1711 of file Instructions.h.

InsertValueInst * InsertValueInst::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 2893 of file Instructions.cpp.

References llvm::Value::SubclassOptionalData.

llvm::InsertValueInst::DECLARE_TRANSPARENT_OPERAND_ACCESSORS ( Value   ) 

Transparently provide more efficient getOperand methods.

idx_iterator llvm::InsertValueInst::idx_begin (  )  const [inline]

Definition at line 1723 of file Instructions.h.

idx_iterator llvm::InsertValueInst::idx_end (  )  const [inline]

Definition at line 1724 of file Instructions.h.

Value* llvm::InsertValueInst::getAggregateOperand (  )  [inline]

Definition at line 1726 of file Instructions.h.

References llvm::User::getOperand().

Referenced by BuildSubAggregate().

const Value* llvm::InsertValueInst::getAggregateOperand (  )  const [inline]

Definition at line 1729 of file Instructions.h.

References llvm::User::getOperand().

static unsigned llvm::InsertValueInst::getAggregateOperandIndex (  )  [inline, static]

Definition at line 1732 of file Instructions.h.

Value* llvm::InsertValueInst::getInsertedValueOperand (  )  [inline]

Definition at line 1736 of file Instructions.h.

References llvm::User::getOperand().

const Value* llvm::InsertValueInst::getInsertedValueOperand (  )  const [inline]

Definition at line 1739 of file Instructions.h.

References llvm::User::getOperand().

static unsigned llvm::InsertValueInst::getInsertedValueOperandIndex (  )  [inline, static]

Definition at line 1742 of file Instructions.h.

unsigned llvm::InsertValueInst::getNumIndices (  )  const [inline]

Definition at line 1746 of file Instructions.h.

bool llvm::InsertValueInst::hasIndices (  )  const [inline]

Definition at line 1750 of file Instructions.h.

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

Definition at line 1755 of file Instructions.h.

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

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

Reimplemented from llvm::Instruction.

Definition at line 1756 of file Instructions.h.

References llvm::Instruction::getOpcode().

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

Reimplemented from llvm::Instruction.

Definition at line 1759 of file Instructions.h.

References llvm::ExtractValueInst::classof().


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