InstructionValue

Functions in this group relate to the inspection and manipulation of individual instructions.

In the C++ API, an instruction is modeled by llvm::Instruction. This class has a large number of descendents. llvm::Instruction is a llvm::Value and in the C API, instructions are modeled by LLVMValueRef.

This group also contains sub-groups which operate on specific llvm::Instruction types, e.g. llvm::CallInst.

Alias This

value

Members

Functions

clone
InstructionValue 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

eraseFromParent
void eraseFromParent()

Remove and delete an instruction.

hasMetadata
bool hasMetadata()

Determine whether an instruction has any metadata attached.

intPredicate
LxIntPredicate intPredicate()

Obtain the predicate of an instruction.

metadata
MetadataNodeValue metadata(uint kind)

Return metadata associated with an instruction value.

nextInstr
Nullable!InstructionValue nextInstr()

Obtain the instruction that occurs after the one specified.

opcode
LxOpcode opcode()

Obtain the code opcode for an individual instruction.

parent
BasicBlock parent()

Obtain the basic block to which an instruction belongs.

prevInstr
Nullable!InstructionValue prevInstr()

Obtain the instruction that occurred before this one.

realPredicate
LxRealPredicate realPredicate()

Obtain the float predicate of an instruction.

removeFromParent
void removeFromParent()

Remove and delete an instruction.

setMetadata
void setMetadata(uint kind, Value v)

Set metadata associated with an instruction value.

Meta