A wrapper pass around a callback which can be used to populate the AAResults in the AAResultsWrapperPass from an external AA.
Synopsis
Declared in <llvm/Analysis/AliasAnalysis.h>
ImmutablePass*
createExternalAAWrapperPass(
std::function<void(Pass&, Function&, AAResults&)> Callback,
bool RunEarly = false);
Description
The callback provided here will be used each time we prepare an AAResults object, and will receive a reference to the function wrapper pass, the function, and the AAResults object to populate. This should be used when setting up a custom pass pipeline to inject a hook into the AA results.
Return Value
A new ImmutablePass that registers Callback.
Parameters
Name |
Description |
Callback |
Callback used to populate AAResults for each function. |
RunEarly |
When true, run this external AA before BasicAA. |
Created with MrDocs