LLVM 20.0.0git
|
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. | |
using | ACSRepairCBTy = std::function< void(const ArgumentReplacementInfo &, AbstractCallSite, SmallVectorImpl< Value * > &)> |
Abstract call site (ACS) repair callback type. | |
Public Member Functions | |
Attributor & | getAttributor () const |
Simple getters, see the corresponding members for details. | |
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. | |
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 2204 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 2225 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 2212 of file Attributor.h.
|
inline |
Simple getters, see the corresponding members for details.
{
Definition at line 2232 of file Attributor.h.
|
inline |
Definition at line 2235 of file Attributor.h.
Definition at line 2234 of file Attributor.h.
Definition at line 2233 of file Attributor.h.
|
inline |
Definition at line 2236 of file Attributor.h.
|
friend |
Allow access to the private members from the Attributor.
Definition at line 2274 of file Attributor.h.