16#ifndef LLVM_PASSREGISTRY_H
17#define LLVM_PASSREGISTRY_H
46 StringMapType PassInfoStringMap;
48 std::vector<std::unique_ptr<const PassInfo>> ToFree;
49 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,...
static LLVM_ABI PassRegistry * getPassRegistry()
getPassRegistry - Access the global registry object, which is automatically initialized at applicatio...
LLVM_ABI void addRegistrationListener(PassRegistrationListener *L)
addRegistrationListener - Register the given PassRegistrationListener to receive passRegistered() cal...
LLVM_ABI void removeRegistrationListener(PassRegistrationListener *L)
removeRegistrationListener - Unregister a PassRegistrationListener so that it no longer receives pass...
LLVM_ABI void registerPass(const PassInfo &PI, bool ShouldFree=false)
registerPass - Register a pass (by means of its PassInfo) with the registry.
LLVM_ABI void enumerateWith(PassRegistrationListener *L)
enumerateWith - Enumerate the registered passes, calling the provided PassRegistrationListener's pass...
LLVM_ABI const PassInfo * getPassInfo(const void *TI) const
getPassInfo - Look up a pass' corresponding PassInfo, indexed by the pass' type identifier (&MyPass::...
StringMap - This is an unconventional map that is specialized for handling keys that are "strings",...
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...