Movatterモバイル変換


[0]ホーム

URL:


LLVM 20.0.0git
Functions
Operand Bundles
LLVM-C: C interface to LLVM »Core

Functions in this group operate on LLVMOperandBundleRef instances that correspond tollvm::OperandBundleDef instances.More...

Collaboration diagram for Operand Bundles:

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.
 
constcharLLVMGetOperandBundleTag (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.
 

Detailed Description

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

See also
llvm::OperandBundleDef

Function Documentation

◆ LLVMCreateOperandBundle()

LLVMOperandBundleRef LLVMCreateOperandBundle(constcharTag,
size_t TagLen,
LLVMValueRefArgs,
unsigned NumArgs 
)

Create a new operand bundle.

Every invocation should be paired withLLVMDisposeOperandBundle() 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

Definition at line2745 of fileCore.cpp.

Referencesunwrap(), andllvm::wrap().

◆ LLVMDisposeOperandBundle()

void LLVMDisposeOperandBundle(LLVMOperandBundleRef Bundle)

Destroy an operand bundle.

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

Definition at line2752 of fileCore.cpp.

Referencesunwrap().

◆ 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()

Definition at line2762 of fileCore.cpp.

Referencesllvm::BasicBlock::size(), andunwrap().

◆ 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 thanLLVMGetNumOperandBundleArgs().
Returns
The operand.

Definition at line2766 of fileCore.cpp.

Referencesunwrap(), andllvm::wrap().

◆ LLVMGetOperandBundleTag()

constchar * 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()

Definition at line2756 of fileCore.cpp.

Referencesunwrap().


Generated on Sun Jul 20 2025 15:03:45 for LLVM by doxygen 1.9.6
[8]ページ先頭

©2009-2025 Movatter.jp