My Project
Public Member Functions | List of all members
mlir::GenInfo Class Reference

#include <GenInfo.h>

Public Member Functions

 GenInfo (StringRef arg, StringRef description, GenFunction generator)
 
bool invoke (const llvm::RecordKeeper &recordKeeper, raw_ostream &os) const
 Invokes the generator and returns whether the generator failed. More...
 
StringRef getGenArgument () const
 
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).

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.

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.

◆ getGenDescription()

StringRef mlir::GenInfo::getGenDescription ( ) const
inline

Returns a description for the generator.

◆ invoke()

bool mlir::GenInfo::invoke ( const llvm::RecordKeeper &  recordKeeper,
raw_ostream &  os 
) const
inline

Invokes the generator and returns whether the generator failed.


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