16#ifndef LLVM_PASSREGISTRY_H
17#define LLVM_PASSREGISTRY_H
29struct PassRegistrationListener;
47 std::vector<std::unique_ptr<const PassInfo>> ToFree;
48 std::vector<PassRegistrationListener *> Listeners;
This file defines the StringMap class.
This file defines the DenseMap class.
PassInfo class - An instance of this class exists for every pass known by the system,...
PassRegistry - This class manages the registration and intitialization of the pass subsystem as appli...
static PassRegistry * getPassRegistry()
getPassRegistry - Access the global registry object, which is automatically initialized at applicatio...
void addRegistrationListener(PassRegistrationListener *L)
addRegistrationListener - Register the given PassRegistrationListener to receive passRegistered() cal...
void removeRegistrationListener(PassRegistrationListener *L)
removeRegistrationListener - Unregister a PassRegistrationListener so that it no longer receives pass...
void registerPass(const PassInfo &PI, bool ShouldFree=false)
registerPass - Register a pass (by means of its PassInfo) with the registry.
void enumerateWith(PassRegistrationListener *L)
enumerateWith - Enumerate the registered passes, calling the provided PassRegistrationListener's pass...
const PassInfo * getPassInfo(const void *TI) const
getPassInfo - Look up a pass' corresponding PassInfo, indexed by the pass' type identifier (&MyPass::...
StringRef - Represent a constant reference to a string, i.e.
SmartMutex - An R/W mutex with a compile time constant parameter that indicates whether this mutex sh...
This is an optimization pass for GlobalISel generic memory operations.
PassRegistrationListener class - This class is meant to be derived from by clients that are intereste...