Functions in this group operate on LLVMOperandBundleRef instances that correspond to llvm::OperandBundleDef instances.
- See also
- llvm::OperandBundleDef
◆ LLVMCreateOperandBundle()
Create a new operand bundle.
Every invocation should be paired with LLVMDisposeOperandBundle() or memory will be leaked.
- Parameters
-
Tag | Tag name of the operand bundle |
TagLen | Length of Tag |
Args | Memory address of an array of bundle operands |
NumArgs | Length of Args |
◆ LLVMDisposeOperandBundle()
Destroy an operand bundle.
This must be called for every created operand bundle or memory will be leaked.
◆ LLVMGetNumOperandBundleArgs()
Obtain the number of operands for an operand bundle.
- Parameters
-
Bundle | Operand bundle to obtain operand count of. |
- Returns
- The number of operands.
- See also
- OperandBundleDef::input_size()
◆ LLVMGetOperandBundleArgAtIndex()
Obtain the operand for an operand bundle at the given index.
- Parameters
-
- Returns
- The operand.
◆ LLVMGetOperandBundleTag()
Obtain the tag of an operand bundle as a string.
- Parameters
-
Bundle | Operand bundle to obtain tag of. |
Len | Out parameter which holds the length of the returned string. |
- Returns
- The tag name of Bundle.
- See also
- OperandBundleDef::getTag()