LLVM API Documentation
#include <Instructions.h>
Inheritance diagram for llvm::InsertElementInst:


Public Member Functions | |
| InsertElementInst (Value *Vec, Value *NewElt, Value *Idx, const std::string &Name="", Instruction *InsertBefore=0) | |
| InsertElementInst (Value *Vec, Value *NewElt, Value *Idx, const std::string &Name, BasicBlock *InsertAtEnd) | |
| virtual InsertElementInst * | clone () const |
| virtual bool | mayWriteToMemory () const |
| const PackedType * | getType () const |
| Value * | getOperand (unsigned i) const |
| Transparently provide more efficient getOperand methods. | |
| void | setOperand (unsigned i, Value *Val) |
| unsigned | getNumOperands () const |
Static Public Member Functions | |
| 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) |
Definition at line 792 of file Instructions.h.
| InsertElementInst::InsertElementInst | ( | Value * | Vec, | |
| Value * | NewElt, | |||
| Value * | Idx, | |||
| const std::string & | Name = "", |
|||
| Instruction * | InsertBefore = 0 | |||
| ) |
Definition at line 876 of file Instructions.cpp.
References llvm::Use::init(), and isValidOperands().
| InsertElementInst::InsertElementInst | ( | Value * | Vec, | |
| Value * | NewElt, | |||
| Value * | Idx, | |||
| const std::string & | Name, | |||
| BasicBlock * | InsertAtEnd | |||
| ) |
Definition at line 887 of file Instructions.cpp.
References llvm::Use::init(), and isValidOperands().
| 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 899 of file Instructions.cpp.
References llvm::Value::getType(), and llvm::Type::UIntTy.
Referenced by InsertElementInst(), llvm::BytecodeReader::ParseConstantPoolValue(), and llvm::BytecodeReader::ParseInstruction().
| 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 1330 of file Instructions.cpp.
| virtual bool llvm::InsertElementInst::mayWriteToMemory | ( | ) | const [inline, virtual] |
mayWriteToMemory - Return true if this instruction may modify memory.
Reimplemented from llvm::Instruction.
Definition at line 808 of file Instructions.h.
| const PackedType* llvm::InsertElementInst::getType | ( | ) | const [inline] |
getType - Overload to return most specific packed type.
Reimplemented from llvm::Value.
Definition at line 812 of file Instructions.h.
References llvm::Value::getType().
| Value* llvm::InsertElementInst::getOperand | ( | unsigned | i | ) | const [inline] |
Transparently provide more efficient getOperand methods.
Reimplemented from llvm::User.
Definition at line 817 of file Instructions.h.
References Ops.
| void llvm::InsertElementInst::setOperand | ( | unsigned | i, | |
| Value * | Val | |||
| ) | [inline] |
| unsigned llvm::InsertElementInst::getNumOperands | ( | ) | const [inline] |
| static bool llvm::InsertElementInst::classof | ( | const InsertElementInst * | ) | [inline, static] |
Definition at line 828 of file Instructions.h.
| static bool llvm::InsertElementInst::classof | ( | const Instruction * | I | ) | [inline, static] |
Methods for support type inquiry through isa, cast, and dyn_cast:.
Reimplemented from llvm::Instruction.
Definition at line 829 of file Instructions.h.
References llvm::Instruction::getOpcode(), and llvm::Instruction::InsertElement.
| static bool llvm::InsertElementInst::classof | ( | const Value * | V | ) | [inline, static] |
Reimplemented from llvm::Instruction.
Definition at line 832 of file Instructions.h.
References llvm::CastInst::classof(), and V.