LLVM API Documentation

Functions
User value
Values
Collaboration diagram for User value:

Functions

LLVMValueRef LLVMGetOperand (LLVMValueRef Val, unsigned Index)
LLVMUseRef LLVMGetOperandUse (LLVMValueRef Val, unsigned Index)
void LLVMSetOperand (LLVMValueRef User, unsigned Index, LLVMValueRef Val)
int LLVMGetNumOperands (LLVMValueRef Val)

Detailed Description

Function in this group pertain to LLVMValueRef instances that descent from llvm::User. This includes constants, instructions, and operators.


Function Documentation

Obtain the number of operands in a llvm::User value.

See also:
llvm::User::getNumOperands()

Definition at line 655 of file Core.cpp.

References LLVMGetMDNodeNumOperands(), and llvm::unwrap().

Obtain an operand at a specific index in a llvm::User value.

See also:
llvm::User::getOperand()

Definition at line 632 of file Core.cpp.

References llvm::Value::getContext(), getMDNodeOperandImpl(), llvm::unwrap(), and llvm::wrap().

Obtain the use of an operand at a specific index in a llvm::User value.

See also:
llvm::User::getOperandUse()

Definition at line 646 of file Core.cpp.

References llvm::unwrap(), and llvm::wrap().

void LLVMSetOperand ( LLVMValueRef  User,
unsigned  Index,
LLVMValueRef  Val 
)

Set an operand at a specific index in a llvm::User value.

See also:
llvm::User::setOperand()

Definition at line 651 of file Core.cpp.

References llvm::unwrap().