LLVM 19.0.0git
Public Member Functions | List of all members
llvm::Registry< T >::Add< V > Class Template Reference

A static registration template. More...

#include "llvm/Support/Registry.h"

Public Member Functions

 Add (StringRef Name, StringRef Desc)
 

Detailed Description

template<typename T>
template<typename V>
class llvm::Registry< T >::Add< V >

A static registration template.

Use like such:

Registry<Collector>::Add<FancyGC> X("fancy-gc", "Newfangled garbage collector.");

Use of this template requires that:

  1. The registered subclass has a default constructor.

Definition at line 114 of file Registry.h.

Constructor & Destructor Documentation

◆ Add()

template<typename T >
template<typename V >
llvm::Registry< T >::Add< V >::Add ( StringRef  Name,
StringRef  Desc 
)
inline

Definition at line 121 of file Registry.h.

References llvm::Registry< T >::add_node().


The documentation for this class was generated from the following file: