LLVM 20.0.0git
Public Member Functions | List of all members
llvm::TableGen::Emitter::Opt Struct Reference

Creating an Opt object registers the command line option Name with TableGen backend and associates the callback CB with that option. More...

#include "llvm/TableGen/TableGenBackend.h"

Inheritance diagram for llvm::TableGen::Emitter::Opt:
Inheritance graph
[legend]

Public Member Functions

 Opt (StringRef Name, FnT CB, StringRef Desc, bool ByDefault=false)
 

Detailed Description

Creating an Opt object registers the command line option Name with TableGen backend and associates the callback CB with that option.

If ByDefault is true, then that callback is applied by default if no command line option was specified.

Definition at line 32 of file TableGenBackend.h.

Constructor & Destructor Documentation

◆ Opt()

Opt::Opt ( StringRef  Name,
FnT  CB,
StringRef  Desc,
bool  ByDefault = false 
)

Definition at line 55 of file TableGenBackend.cpp.

References CallbackFunction, and Name.


The documentation for this struct was generated from the following files: