|
LLVM
10.0.0
|
Helper struct used in the communication between an abstract attribute (AA) that wants to change the signature of a function and the Attributor which applies the changes. More...
#include "llvm/Transforms/IPO/Attributor.h"
Public Types | |
| using | CalleeRepairCBTy = std::function< void(const ArgumentReplacementInfo &, Function &, Function::arg_iterator)> |
| Callee repair callback type. More... | |
| using | ACSRepairCBTy = std::function< void(const ArgumentReplacementInfo &, AbstractCallSite, SmallVectorImpl< Value * > &)> |
| Abstract call site (ACS) repair callback type. More... | |
Public Member Functions | |
| Attributor & | getAttributor () const |
| Simple getters, see the corresponding members for details. More... | |
| const Function & | getReplacedFn () const |
| const Argument & | getReplacedArg () const |
| unsigned | getNumReplacementArgs () const |
| const SmallVectorImpl< Type * > & | getReplacementTypes () const |
Friends | |
| struct | Attributor |
| Allow access to the private members from the Attributor. More... | |
Helper struct used in the communication between an abstract attribute (AA) that wants to change the signature of a function and the Attributor which applies the changes.
The struct is partially initialized with the information from the AA (see the constructor). All other members are provided by the Attributor prior to invoking any callbacks.
Definition at line 904 of file Attributor.h.
| using llvm::Attributor::ArgumentReplacementInfo::ACSRepairCBTy = std::function<void(const ArgumentReplacementInfo &, AbstractCallSite, SmallVectorImpl<Value *> &)> |
Abstract call site (ACS) repair callback type.
The abstract call site repair callback is invoked once on every abstract call site of the replaced function (
Definition at line 927 of file Attributor.h.
| using llvm::Attributor::ArgumentReplacementInfo::CalleeRepairCBTy = std::function<void( const ArgumentReplacementInfo &, Function &, Function::arg_iterator)> |
Callee repair callback type.
The function repair callback is invoked once to rewire the replacement arguments in the body of the new function. The argument replacement info is passed, as build from the registerFunctionSignatureRewrite call, as well as the replacement function and an iteratore to the first replacement argument.
Definition at line 913 of file Attributor.h.
|
inline |
Simple getters, see the corresponding members for details.
{
Definition at line 932 of file Attributor.h.
|
inline |
Definition at line 935 of file Attributor.h.
Referenced by llvm::Attributor::registerFunctionSignatureRewrite().
Definition at line 934 of file Attributor.h.
Definition at line 933 of file Attributor.h.
|
inline |
Definition at line 936 of file Attributor.h.
References Arg, llvm::ArrayRef< T >::begin(), llvm::ArrayRef< T >::end(), and llvm::Argument::getParent().
|
friend |
Allow access to the private members from the Attributor.
Definition at line 974 of file Attributor.h.
1.8.13