Project Alice
Loading...
Searching...
No Matches
Collaboration diagram for Operand Bundles:

Functions

LLVMOperandBundleRef LLVMCreateOperandBundle (const char *Tag, size_t TagLen, LLVMValueRef *Args, unsigned NumArgs)
 
void LLVMDisposeOperandBundle (LLVMOperandBundleRef Bundle)
 
const char * LLVMGetOperandBundleTag (LLVMOperandBundleRef Bundle, size_t *Len)
 
unsigned LLVMGetNumOperandBundleArgs (LLVMOperandBundleRef Bundle)
 
LLVMValueRef LLVMGetOperandBundleArgAtIndex (LLVMOperandBundleRef Bundle, unsigned Index)
 

Detailed Description

Functions in this group operate on LLVMOperandBundleRef instances that correspond to llvm::OperandBundleDef instances.

See also
llvm::OperandBundleDef

Function Documentation

◆ LLVMCreateOperandBundle()

LLVMOperandBundleRef LLVMCreateOperandBundle ( const char *  Tag,
size_t  TagLen,
LLVMValueRef Args,
unsigned  NumArgs 
)

Create a new operand bundle.

Every invocation should be paired with LLVMDisposeOperandBundle() or memory will be leaked.

Parameters
TagTag name of the operand bundle
TagLenLength of Tag
ArgsMemory address of an array of bundle operands
NumArgsLength of Args

◆ LLVMDisposeOperandBundle()

void LLVMDisposeOperandBundle ( LLVMOperandBundleRef  Bundle)

Destroy an operand bundle.

This must be called for every created operand bundle or memory will be leaked.

◆ LLVMGetNumOperandBundleArgs()

unsigned LLVMGetNumOperandBundleArgs ( LLVMOperandBundleRef  Bundle)

Obtain the number of operands for an operand bundle.

Parameters
BundleOperand bundle to obtain operand count of.
Returns
The number of operands.
See also
OperandBundleDef::input_size()

◆ LLVMGetOperandBundleArgAtIndex()

LLVMValueRef LLVMGetOperandBundleArgAtIndex ( LLVMOperandBundleRef  Bundle,
unsigned  Index 
)

Obtain the operand for an operand bundle at the given index.

Parameters
BundleOperand bundle to obtain operand of.
IndexAn operand index, must be less than LLVMGetNumOperandBundleArgs().
Returns
The operand.

◆ LLVMGetOperandBundleTag()

const char * LLVMGetOperandBundleTag ( LLVMOperandBundleRef  Bundle,
size_t *  Len 
)

Obtain the tag of an operand bundle as a string.

Parameters
BundleOperand bundle to obtain tag of.
LenOut parameter which holds the length of the returned string.
Returns
The tag name of Bundle.
See also
OperandBundleDef::getTag()