LLVM 20.0.0git
Classes | Typedefs | Functions
llvm::TableGen::Emitter Namespace Reference

Classes

struct  Opt
 Creating an Opt object registers the command line option Name with TableGen backend and associates the callback CB with that option. More...
 
class  OptClass
 Convienence wrapper around Opt that registers EmitterClass::run as the callback. More...
 

Typedefs

using FnT = function_ref< void(const RecordKeeper &Records, raw_ostream &OS)>
 

Functions

bool ApplyCallback (const RecordKeeper &Records, raw_ostream &OS)
 Apply callback for any command line option registered above.
 

Typedef Documentation

◆ FnT

Definition at line 26 of file TableGenBackend.h.

Function Documentation

◆ ApplyCallback()

bool llvm::TableGen::Emitter::ApplyCallback ( const RecordKeeper Records,
raw_ostream OS 
)

Apply callback for any command line option registered above.

Apply callback specified on the command line.

Returns false is no callback was applied.

Returns true if no callback was applied.

Definition at line 63 of file TableGenBackend.cpp.

References CallbackFunction, and OS.

Referenced by llvm::TableGenMain().