LLVM 20.0.0git
|
A global registry used in conjunction with static constructors to make pluggable components (like targets or garbage collectors) "just work" when linked with an executable. More...
#include "llvm/Support/Registry.h"
Classes | |
class | Add |
A static registration template. More... | |
class | iterator |
Iterators for registry entries. More... | |
class | node |
Node in linked list of entries. More... | |
Public Types | |
typedef T | type |
typedef SimpleRegistryEntry< T > | entry |
Static Public Member Functions | |
static void | add_node (node *N) |
Add a node to the Registry: this is the interface between the plugin and the executable. | |
static iterator | begin () |
static iterator | end () |
static iterator_range< iterator > | entries () |
Friends | |
class | node |
A global registry used in conjunction with static constructors to make pluggable components (like targets or garbage collectors) "just work" when linked with an executable.
Definition at line 44 of file Registry.h.
typedef SimpleRegistryEntry<T> llvm::Registry< T >::entry |
Definition at line 47 of file Registry.h.
typedef T llvm::Registry< T >::type |
Definition at line 46 of file Registry.h.
|
static |
Add a node to the Registry: this is the interface between the plugin and the executable.
This function is exported by the executable and called by the plugin to add a node to the executable's registry. Therefore it's not defined here to avoid it being instantiated in the plugin and is instead defined in the executable (see LLVM_INSTANTIATE_REGISTRY below).
Referenced by llvm::Registry< T >::Add< V >::Add().
|
static |
Referenced by llvm::Registry< T >::entries(), and llvm::getGCStrategy().
|
inlinestatic |
Definition at line 99 of file Registry.h.
Referenced by llvm::Registry< T >::entries(), and llvm::getGCStrategy().
|
inlinestatic |
Definition at line 101 of file Registry.h.
References llvm::Registry< T >::begin(), llvm::Registry< T >::end(), and llvm::make_range().
Referenced by llvm::getGCStrategy().
Definition at line 55 of file Registry.h.