Project Alice
|
Functions | |
unsigned | LLVMCountParams (LLVMValueRef Fn) |
void | LLVMGetParams (LLVMValueRef Fn, LLVMValueRef *Params) |
LLVMValueRef | LLVMGetParam (LLVMValueRef Fn, unsigned Index) |
LLVMValueRef | LLVMGetParamParent (LLVMValueRef Inst) |
LLVMValueRef | LLVMGetFirstParam (LLVMValueRef Fn) |
LLVMValueRef | LLVMGetLastParam (LLVMValueRef Fn) |
LLVMValueRef | LLVMGetNextParam (LLVMValueRef Arg) |
LLVMValueRef | LLVMGetPreviousParam (LLVMValueRef Arg) |
void | LLVMSetParamAlignment (LLVMValueRef Arg, unsigned Align) |
Functions in this group relate to arguments/parameters on functions.
Functions in this group expect LLVMValueRef instances that correspond to llvm::Function instances.
unsigned LLVMCountParams | ( | LLVMValueRef | Fn | ) |
Obtain the number of parameters in a function.
LLVMValueRef LLVMGetFirstParam | ( | LLVMValueRef | Fn | ) |
Obtain the first parameter to a function.
LLVMValueRef LLVMGetLastParam | ( | LLVMValueRef | Fn | ) |
Obtain the last parameter to a function.
LLVMValueRef LLVMGetNextParam | ( | LLVMValueRef | Arg | ) |
Obtain the next parameter to a function.
This takes an LLVMValueRef obtained from LLVMGetFirstParam() (which is actually a wrapped iterator) and obtains the next parameter from the underlying iterator.
LLVMValueRef LLVMGetParam | ( | LLVMValueRef | Fn, |
unsigned | Index | ||
) |
Obtain the parameter at the specified index.
Parameters are indexed from 0.
LLVMValueRef LLVMGetParamParent | ( | LLVMValueRef | Inst | ) |
Obtain the function to which this argument belongs.
Unlike other functions in this group, this one takes an LLVMValueRef that corresponds to a llvm::Attribute.
The returned LLVMValueRef is the llvm::Function to which this argument belongs.
void LLVMGetParams | ( | LLVMValueRef | Fn, |
LLVMValueRef * | Params | ||
) |
Obtain the parameters in a function.
The takes a pointer to a pre-allocated array of LLVMValueRef that is at least LLVMCountParams() long. This array will be filled with LLVMValueRef instances which correspond to the parameters the function receives. Each LLVMValueRef corresponds to a llvm::Argument instance.
LLVMValueRef LLVMGetPreviousParam | ( | LLVMValueRef | Arg | ) |
Obtain the previous parameter to a function.
This is the opposite of LLVMGetNextParam().
void LLVMSetParamAlignment | ( | LLVMValueRef | Arg, |
unsigned | Align | ||
) |
Set the alignment for a function parameter.