LLVM
8.0.1
|
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. More... | |
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 45 of file Registry.h.
typedef SimpleRegistryEntry<T> llvm::Registry< T >::entry |
Definition at line 48 of file Registry.h.
typedef T llvm::Registry< T >::type |
Definition at line 47 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).
|
static |
|
inlinestatic |
Definition at line 100 of file Registry.h.
Referenced by llvm::GCModuleInfo::getGCStrategy(), and llvm::AsmPrinter::isBlockOnlyReachableByFallthrough().
|
inlinestatic |
Definition at line 102 of file Registry.h.
References llvm::sys::path::begin(), llvm::sys::path::end(), and llvm::make_range().
Referenced by llvm::GCModuleInfo::getGCStrategy().
|
friend |
Definition at line 56 of file Registry.h.