LLVM API Documentation
|Call Sites and Invocations|
|int||LLVMHasMetadata (LLVMValueRef Val)|
|LLVMValueRef||LLVMGetMetadata (LLVMValueRef Val, unsigned KindID)|
|void||LLVMSetMetadata (LLVMValueRef Val, unsigned KindID, LLVMValueRef Node)|
|LLVMBasicBlockRef||LLVMGetInstructionParent (LLVMValueRef Inst)|
|LLVMValueRef||LLVMGetNextInstruction (LLVMValueRef Inst)|
|LLVMValueRef||LLVMGetPreviousInstruction (LLVMValueRef Inst)|
|void||LLVMInstructionEraseFromParent (LLVMValueRef Inst)|
|LLVMOpcode||LLVMGetInstructionOpcode (LLVMValueRef Inst)|
|LLVMIntPredicate||LLVMGetICmpPredicate (LLVMValueRef Inst)|
|LLVMBasicBlockRef||LLVMGetSwitchDefaultDest (LLVMValueRef SwitchInstr)|
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.
Obtain the instruction that occurs after the one specified.
The next instruction will be from the same basic block.
If this is the last instruction in a basic block, NULL will be returned.