|
LLVM
3.7.0
|
Functions in this group relate to arguments/parameters on functions. More...
Functions | |
| unsigned | LLVMCountParams (LLVMValueRef Fn) |
| Obtain the number of parameters in a function. More... | |
| void | LLVMGetParams (LLVMValueRef Fn, LLVMValueRef *Params) |
| Obtain the parameters in a function. More... | |
| LLVMValueRef | LLVMGetParam (LLVMValueRef Fn, unsigned Index) |
| Obtain the parameter at the specified index. More... | |
| LLVMValueRef | LLVMGetParamParent (LLVMValueRef Inst) |
| Obtain the function to which this argument belongs. More... | |
| LLVMValueRef | LLVMGetFirstParam (LLVMValueRef Fn) |
| Obtain the first parameter to a function. More... | |
| LLVMValueRef | LLVMGetLastParam (LLVMValueRef Fn) |
| Obtain the last parameter to a function. More... | |
| LLVMValueRef | LLVMGetNextParam (LLVMValueRef Arg) |
| Obtain the next parameter to a function. More... | |
| LLVMValueRef | LLVMGetPreviousParam (LLVMValueRef Arg) |
| Obtain the previous parameter to a function. More... | |
| void | LLVMAddAttribute (LLVMValueRef Arg, LLVMAttribute PA) |
| Add an attribute to a function argument. More... | |
| void | LLVMRemoveAttribute (LLVMValueRef Arg, LLVMAttribute PA) |
| Remove an attribute from a function argument. More... | |
| LLVMAttribute | LLVMGetAttribute (LLVMValueRef Arg) |
| Get an attribute from a function argument. More... | |
| void | LLVMSetParamAlignment (LLVMValueRef Arg, unsigned align) |
| Set the alignment for a function parameter. More... | |
Functions in this group relate to arguments/parameters on functions.
Functions in this group expect LLVMValueRef instances that correspond to llvm::Function instances.
| void LLVMAddAttribute | ( | LLVMValueRef | Arg, |
| LLVMAttribute | PA | ||
| ) |
Add an attribute to a function argument.
Definition at line 1828 of file Core.cpp.
References llvm::ARM_PROC::A, llvm::Argument::addAttr(), llvm::Argument::getArgNo(), and llvm::Value::getContext().
| unsigned LLVMCountParams | ( | LLVMValueRef | Fn | ) |
Obtain the number of parameters in a function.
| LLVMAttribute LLVMGetAttribute | ( | LLVMValueRef | Arg | ) |
Get an attribute from a function argument.
Definition at line 1840 of file Core.cpp.
References llvm::ARM_PROC::A, llvm::Argument::getArgNo(), llvm::Function::getAttributes(), and llvm::Argument::getParent().
| LLVMValueRef LLVMGetFirstParam | ( | LLVMValueRef | Fn | ) |
Obtain the first parameter to a function.
Definition at line 1796 of file Core.cpp.
References llvm::Function::arg_begin(), llvm::Function::arg_end(), I, and llvm::wrap().
| LLVMValueRef LLVMGetLastParam | ( | LLVMValueRef | Fn | ) |
Obtain the last parameter to a function.
Definition at line 1804 of file Core.cpp.
References llvm::Function::arg_begin(), llvm::Function::arg_end(), I, and llvm::wrap().
| 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.
Definition at line 1812 of file Core.cpp.
References llvm::ARM_PROC::A, llvm::Function::arg_end(), llvm::Argument::getParent(), I, and llvm::wrap().
| LLVMValueRef LLVMGetParam | ( | LLVMValueRef | Fn, |
| unsigned | Index | ||
| ) |
Obtain the parameter at the specified index.
Parameters are indexed from 0.
Definition at line 1785 of file Core.cpp.
References llvm::wrap().
| 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.
Definition at line 1792 of file Core.cpp.
References getParent(), and llvm::wrap().
| 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.
Definition at line 1778 of file Core.cpp.
References llvm::Function::arg_begin(), llvm::Function::arg_end(), I, and llvm::wrap().
| LLVMValueRef LLVMGetPreviousParam | ( | LLVMValueRef | Arg | ) |
Obtain the previous parameter to a function.
This is the opposite of LLVMGetNextParam().
Definition at line 1820 of file Core.cpp.
References llvm::ARM_PROC::A, llvm::Function::arg_begin(), llvm::Argument::getParent(), I, and llvm::wrap().
| void LLVMRemoveAttribute | ( | LLVMValueRef | Arg, |
| LLVMAttribute | PA | ||
| ) |
Remove an attribute from a function argument.
Definition at line 1834 of file Core.cpp.
References llvm::ARM_PROC::A, llvm::Argument::getArgNo(), llvm::Value::getContext(), and llvm::Argument::removeAttr().
| void LLVMSetParamAlignment | ( | LLVMValueRef | Arg, |
| unsigned | align | ||
| ) |
Set the alignment for a function parameter.
Definition at line 1847 of file Core.cpp.
References llvm::ARM_PROC::A, llvm::AttrBuilder::addAlignmentAttr(), llvm::Argument::addAttr(), llvm::Argument::getArgNo(), and llvm::Value::getContext().
1.8.6