17 #ifndef LLVM_PASSREGISTRY_H 18 #define LLVM_PASSREGISTRY_H 31 struct PassRegistrationListener;
49 std::vector<std::unique_ptr<const PassInfo>> ToFree;
50 std::vector<PassRegistrationListener *> Listeners;
77 PassInfo &Registeree,
bool isDefault,
78 bool ShouldFree =
false);
98 #endif // LLVM_PASSREGISTRY_H const PassInfo * getPassInfo(const void *TI) const
getPassInfo - Look up a pass' corresponding PassInfo, indexed by the pass' type identifier (&MyPass::...
void registerAnalysisGroup(const void *InterfaceID, const void *PassID, PassInfo &Registeree, bool isDefault, bool ShouldFree=false)
registerAnalysisGroup - Register an analysis group (or a pass implementing
static PassRegistry * getPassRegistry()
getPassRegistry - Access the global registry object, which is automatically initialized at applicatio...
void enumerateWith(PassRegistrationListener *L)
enumerateWith - Enumerate the registered passes, calling the provided PassRegistrationListener's pass...
This class represents lattice values for constants.
#define DEFINE_STDCXX_CONVERSION_FUNCTIONS(ty, ref)
struct LLVMOpaquePassRegistry * LLVMPassRegistryRef
void removeRegistrationListener(PassRegistrationListener *L)
removeRegistrationListener - Unregister a PassRegistrationListener so that it no longer receives pass...
void addRegistrationListener(PassRegistrationListener *L)
addRegistrationListener - Register the given PassRegistrationListener to receive passRegistered() cal...
PassInfo class - An instance of this class exists for every pass known by the system, and can be obtained from a live Pass by calling its getPassInfo() method.
StringMap - This is an unconventional map that is specialized for handling keys that are "strings"...
amdgpu Simplify well known AMD library false Value Value * Arg
PassRegistrationListener class - This class is meant to be derived from by clients that are intereste...
StringRef - Represent a constant reference to a string, i.e.
PassRegistry - This class manages the registration and intitialization of the pass subsystem as appli...
void registerPass(const PassInfo &PI, bool ShouldFree=false)
registerPass - Register a pass (by means of its PassInfo) with the registry.