[#LLVM_DEFINE_REGISTRY]
= LLVM&lowbar;DEFINE&lowbar;REGISTRY
:mrdocs:

Helper macro to define registry class&period;

== Synopsis

Declared in `&lt;llvm&sol;Support&sol;Registry&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
#define LLVM&lowbar;DEFINE&lowbar;REGISTRY(REGISTRY&lowbar;CLASS)

----

== Description

Technically, these macros don&apos;t instantiate `Registry` despite the name&period; They handle underlying storage that used by `Registry` indirectly, enforcing proper declarations&sol;definitions by compilers or linkers&period; If you forget to place `LLVM&lowbar;DEFINE&lowbar;REGISTRY`, your linker will complain about a missing `getRegistryLinkListInstance` definiton&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *REGISTRY&lowbar;CLASS*
| Registry type alias or specialization to define&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
