LLVM: llvm::Registry< T > Class Template Reference (original) (raw)
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](Registry%5F8h%5Fsource.html)"
| Classes | |
|---|---|
| class | Add |
| A static registration template. More... | |
| class | iterator |
| Iterators for registry entries. More... | |
| class | node |
| Node in linked list of entries. More... |
| 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 () |
template<typename T>
class llvm::Registry< T >
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.
◆ entry
◆ type
◆ add_node()
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).
Definition at line 85 of file Registry.h.
Referenced by llvm::Registry< T >::Add< V >::Add().
◆ begin()
◆ end()
◆ entries()
◆ node
The documentation for this class was generated from the following file:
- include/llvm/Support/Registry.h