LLVM 20.0.0git |
Functions in this group operate on LLVMOperandBundleRef instances that correspond tollvm::OperandBundleDef instances.More...
Functions | |
LLVMOperandBundleRef | LLVMCreateOperandBundle (constchar *Tag, size_t TagLen,LLVMValueRef *Args,unsigned NumArgs) |
Create a new operand bundle. | |
void | LLVMDisposeOperandBundle (LLVMOperandBundleRef Bundle) |
Destroy an operand bundle. | |
constchar * | LLVMGetOperandBundleTag (LLVMOperandBundleRef Bundle, size_t *Len) |
Obtain the tag of an operand bundle as a string. | |
unsigned | LLVMGetNumOperandBundleArgs (LLVMOperandBundleRef Bundle) |
Obtain the number of operands for an operand bundle. | |
LLVMValueRef | LLVMGetOperandBundleArgAtIndex (LLVMOperandBundleRef Bundle,unsignedIndex) |
Obtain the operand for an operand bundle at the given index. | |
Functions in this group operate on LLVMOperandBundleRef instances that correspond tollvm::OperandBundleDef instances.
LLVMOperandBundleRef LLVMCreateOperandBundle | ( | constchar * | Tag, |
size_t | TagLen, | ||
LLVMValueRef * | Args, | ||
unsigned | NumArgs | ||
) |
Create a new operand bundle.
Every invocation should be paired withLLVMDisposeOperandBundle() or memory will be leaked.
Tag | Tag name of the operand bundle |
TagLen | Length of Tag |
Args | Memory address of an array of bundle operands |
NumArgs | Length of Args |
Definition at line2745 of fileCore.cpp.
Referencesunwrap(), andllvm::wrap().
void LLVMDisposeOperandBundle | ( | LLVMOperandBundleRef | Bundle | ) |
unsigned LLVMGetNumOperandBundleArgs | ( | LLVMOperandBundleRef | Bundle | ) |
Obtain the number of operands for an operand bundle.
Bundle | Operand bundle to obtain operand count of. |
Definition at line2762 of fileCore.cpp.
Referencesllvm::BasicBlock::size(), andunwrap().
LLVMValueRef LLVMGetOperandBundleArgAtIndex | ( | LLVMOperandBundleRef | Bundle, |
unsigned | Index | ||
) |
Obtain the operand for an operand bundle at the given index.
Bundle | Operand bundle to obtain operand of. |
Index | An operand index, must be less thanLLVMGetNumOperandBundleArgs(). |
Definition at line2766 of fileCore.cpp.
Referencesunwrap(), andllvm::wrap().
constchar * LLVMGetOperandBundleTag | ( | LLVMOperandBundleRef | Bundle, |
size_t * | Len | ||
) |