MLIR  19.0.0git
Public Member Functions | List of all members
mlir::GenInfo Class Reference

Structure to group information about a generator (argument to invoke via mlir-tblgen, description, and generator function). More...

#include "mlir/TableGen/GenInfo.h"

Public Member Functions

 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 &recordKeeper, 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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ GenInfo()

mlir::GenInfo::GenInfo ( StringRef  arg,
StringRef  description,
GenFunction  generator 
)
inline

GenInfo constructor should not be invoked directly, instead use GenRegistration or registerGen.

Definition at line 33 of file GenInfo.h.

Member Function Documentation

◆ 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 &  recordKeeper,
raw_ostream &  os 
) const
inline

Invokes the generator and returns whether the generator failed.

Definition at line 37 of file GenInfo.h.

Referenced by mlirTableGenMain().


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