LLVM 17.0.0git
|
Configuration for the Attributor. More...
#include "llvm/Transforms/IPO/Attributor.h"
Public Types | |
using | OptimizationRemarkGetter = function_ref< OptimizationRemarkEmitter &(Function *)> |
A callback function that returns an ORE object from a Function pointer. | |
Public Member Functions | |
AttributorConfig (CallGraphUpdater &CGUpdater) | |
Public Attributes | |
bool | IsModulePass = true |
Is the user of the Attributor a module pass or not. | |
bool | DeleteFns = true |
Flag to determine if we can delete functions or keep dead ones around. | |
bool | RewriteSignatures = true |
Flag to determine if we rewrite function signatures. | |
bool | DefaultInitializeLiveInternals = true |
Flag to determine if we want to initialize all default AAs for an internal function marked live. | |
std::function< void(Attributor &A, const Function &F)> | InitializationCallback |
Callback function to be invoked on internal functions marked live. | |
CallGraphUpdater & | CGUpdater |
Helper to update an underlying call graph and to delete functions. | |
DenseSet< const char * > * | Allowed = nullptr |
If not null, a set limiting the attribute opportunities. | |
std::optional< unsigned > | MaxFixpointIterations |
Maximum number of iterations to run until fixpoint. | |
OptimizationRemarkGetter | OREGetter = nullptr |
const char * | PassName = nullptr |
} | |
Configuration for the Attributor.
Definition at line 1399 of file Attributor.h.
using llvm::AttributorConfig::OptimizationRemarkGetter = function_ref<OptimizationRemarkEmitter &(Function *)> |
A callback function that returns an ORE object from a Function pointer.
{
Definition at line 1437 of file Attributor.h.
|
inline |
Definition at line 1401 of file Attributor.h.
If not null, a set limiting the attribute opportunities.
Definition at line 1430 of file Attributor.h.
Referenced by llvm::Attributor::getOrCreateAAFor().
CallGraphUpdater& llvm::AttributorConfig::CGUpdater |
Helper to update an underlying call graph and to delete functions.
Definition at line 1427 of file Attributor.h.
Referenced by llvm::Attributor::removeCallSite().
Flag to determine if we want to initialize all default AAs for an internal function marked live.
See also: InitializationCallback>
Definition at line 1420 of file Attributor.h.
Referenced by llvm::Attributor::markLiveInternalFunction(), llvm::OpenMPOptCGSCCPass::run(), and llvm::OpenMPOptPass::run().
Flag to determine if we can delete functions or keep dead ones around.
Definition at line 1413 of file Attributor.h.
Referenced by llvm::Attributor::deleteAfterManifest().
std::function<void(Attributor &A, const Function &F)> llvm::AttributorConfig::InitializationCallback |
Callback function to be invoked on internal functions marked live.
Definition at line 1423 of file Attributor.h.
Referenced by llvm::Attributor::markLiveInternalFunction(), llvm::OpenMPOptCGSCCPass::run(), and llvm::OpenMPOptPass::run().
Is the user of the Attributor a module pass or not.
This determines what IR we can look at and modify. If it is a module pass we might deduce facts outside the initial function set and modify functions outside that set, but only as part of the optimization of the functions in the initial function set. For CGSCC passes we can look at the IR of the module slice but never run any deduction, or perform any modification, outside the initial function set (which we assume is the SCC).
Definition at line 1410 of file Attributor.h.
Referenced by llvm::Attributor::isModulePass(), llvm::OpenMPOptCGSCCPass::run(), and llvm::OpenMPOptPass::run().
std::optional<unsigned> llvm::AttributorConfig::MaxFixpointIterations |
Maximum number of iterations to run until fixpoint.
Definition at line 1433 of file Attributor.h.
Referenced by llvm::OpenMPOptCGSCCPass::run(), and llvm::OpenMPOptPass::run().
OptimizationRemarkGetter llvm::AttributorConfig::OREGetter = nullptr |
Definition at line 1439 of file Attributor.h.
Referenced by llvm::Attributor::emitRemark(), llvm::OpenMPOptCGSCCPass::run(), and llvm::OpenMPOptPass::run().
}
The name of the pass running the attributor, used to emit remarks.
Definition at line 1443 of file Attributor.h.
Referenced by llvm::Attributor::emitRemark(), llvm::OpenMPOptCGSCCPass::run(), and llvm::OpenMPOptPass::run().
Flag to determine if we rewrite function signatures.
Definition at line 1416 of file Attributor.h.
Referenced by llvm::Attributor::isValidFunctionSignatureRewrite(), llvm::OpenMPOptCGSCCPass::run(), and llvm::OpenMPOptPass::run().