LLVM 20.0.0git
|
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. | |
using llvm::TableGen::Emitter::FnT = typedef function_ref<void(const RecordKeeper &Records, raw_ostream &OS)> |
Definition at line 26 of file TableGenBackend.h.
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().