LLVM: Function Parameters (original) (raw)

Functions in this group relate to arguments/parameters on functions. More...

Functions
LLVM_C_ABI unsigned LLVMCountParams (LLVMValueRef Fn)
Obtain the number of parameters in a function.
LLVM_C_ABI void LLVMGetParams (LLVMValueRef Fn, LLVMValueRef *Params)
Obtain the parameters in a function.
LLVM_C_ABI LLVMValueRef LLVMGetParam (LLVMValueRef Fn, unsigned Index)
Obtain the parameter at the specified index.
LLVM_C_ABI LLVMValueRef LLVMGetParamParent (LLVMValueRef Inst)
Obtain the function to which this argument belongs.
LLVM_C_ABI LLVMValueRef LLVMGetFirstParam (LLVMValueRef Fn)
Obtain the first parameter to a function.
LLVM_C_ABI LLVMValueRef LLVMGetLastParam (LLVMValueRef Fn)
Obtain the last parameter to a function.
LLVM_C_ABI LLVMValueRef LLVMGetNextParam (LLVMValueRef Arg)
Obtain the next parameter to a function.
LLVM_C_ABI LLVMValueRef LLVMGetPreviousParam (LLVMValueRef Arg)
Obtain the previous parameter to a function.
LLVM_C_ABI void LLVMSetParamAlignment (LLVMValueRef Arg, unsigned Align)
Set the alignment for a function parameter.

Functions in this group relate to arguments/parameters on functions.

Functions in this group expect LLVMValueRef instances that correspond to llvm::Function instances.

LLVMCountParams()

LLVMGetFirstParam()

LLVMGetLastParam()

LLVMGetNextParam()

LLVMGetParam()

LLVMGetParamParent()

LLVMGetParams()

LLVMGetPreviousParam()

LLVMSetParamAlignment()