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 () const
 DECLARE_TRANSPARENT_OPERAND_ACCESSORS (Value)
 Transparently provide more efficient getOperand methods.
const PointerType * getType () const
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 std::string &NameStr="", Instruction *InsertBefore=0)
template<typename InputIterator>
static InsertValueInst * Create (Value *Agg, Value *Val, InputIterator IdxBegin, InputIterator IdxEnd, const std::string &NameStr, BasicBlock *InsertAtEnd)
static InsertValueInst * Create (Value *Agg, Value *Val, unsigned Idx, const std::string &NameStr="", Instruction *InsertBefore=0)
static InsertValueInst * Create (Value *Agg, Value *Val, unsigned Idx, const std::string &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 1702 of file Instructions.h.


Member Typedef Documentation

Definition at line 1799 of file Instructions.h.


Member Function Documentation

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

Reimplemented from llvm::User.

Definition at line 1754 of file Instructions.h.

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

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

Definition at line 1767 of file Instructions.h.

static InsertValueInst* llvm::InsertValueInst::Create ( Value *  Agg,
Value *  Val,
unsigned  Idx,
const std::string &  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 1778 of file Instructions.h.

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

Definition at line 1783 of file Instructions.h.

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

llvm::InsertValueInst::DECLARE_TRANSPARENT_OPERAND_ACCESSORS ( Value   ) 

Transparently provide more efficient getOperand methods.

const PointerType* llvm::InsertValueInst::getType (  )  const [inline]

All values are typed, get the type of this value.

Reimplemented from llvm::Value.

Definition at line 1795 of file Instructions.h.

References llvm::Intrinsic::getType().

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

Definition at line 1800 of file Instructions.h.

References llvm::SmallVectorImpl< T >::begin(), and Indices.

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

Definition at line 1801 of file Instructions.h.

References llvm::SmallVectorImpl< T >::end(), and Indices.

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

Definition at line 1803 of file Instructions.h.

References llvm::User::getOperand().

Referenced by BuildSubAggregate().

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

Definition at line 1806 of file Instructions.h.

References llvm::User::getOperand().

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

Definition at line 1809 of file Instructions.h.

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

Definition at line 1813 of file Instructions.h.

References llvm::User::getOperand().

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

Definition at line 1816 of file Instructions.h.

References llvm::User::getOperand().

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

Definition at line 1819 of file Instructions.h.

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

Definition at line 1823 of file Instructions.h.

References Indices, and llvm::SmallVectorImpl< T >::size().

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

Definition at line 1827 of file Instructions.h.

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

Definition at line 1832 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 1833 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 1836 of file Instructions.h.

References llvm::ExtractValueInst::classof().


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