Structure to group information about a generator (argument to invoke via mlir-tblgen, description, and generator function).
More...
#include "mlir/TableGen/GenInfo.h"
|
| GenInfo (StringRef arg, StringRef description, GenFunction generator) |
| GenInfo constructor should not be invoked directly, instead use GenRegistration or registerGen. More...
|
|
bool | invoke (const llvm::RecordKeeper &records, raw_ostream &os) const |
| Invokes the generator and returns whether the generator failed. More...
|
|
StringRef | getGenArgument () const |
| Returns the command line option that may be passed to 'mlir-tblgen' to invoke this generator. More...
|
|
StringRef | getGenDescription () const |
| Returns a description for the generator. More...
|
|
Structure to group information about a generator (argument to invoke via mlir-tblgen, description, and generator function).
Definition at line 29 of file GenInfo.h.
◆ GenInfo()
mlir::GenInfo::GenInfo |
( |
StringRef |
arg, |
|
|
StringRef |
description, |
|
|
GenFunction |
generator |
|
) |
| |
|
inline |
◆ getGenArgument()
StringRef mlir::GenInfo::getGenArgument |
( |
| ) |
const |
|
inline |
Returns the command line option that may be passed to 'mlir-tblgen' to invoke this generator.
Definition at line 44 of file GenInfo.h.
◆ getGenDescription()
StringRef mlir::GenInfo::getGenDescription |
( |
| ) |
const |
|
inline |
Returns a description for the generator.
Definition at line 47 of file GenInfo.h.
◆ invoke()
bool mlir::GenInfo::invoke |
( |
const llvm::RecordKeeper & |
records, |
|
|
raw_ostream & |
os |
|
) |
| const |
|
inline |
The documentation for this class was generated from the following file: