MLIR
20.0.0git
|
This class represents an ODS dialect, and contains information on the constructs held within the dialect. More...
#include "mlir/Tools/PDLL/ODS/Dialect.h"
Public Member Functions | |
~Dialect () | |
StringRef | getName () const |
Return the name of this dialect. More... | |
std::pair< Operation *, bool > | insertOperation (StringRef name, StringRef summary, StringRef desc, StringRef nativeClassName, bool supportsResultTypeInferrence, SMLoc loc) |
Insert a new operation with the dialect. More... | |
Operation * | lookupOperation (StringRef name) const |
Lookup an operation registered with the given name, or null if no operation with that name is registered. More... | |
const llvm::StringMap< std::unique_ptr< Operation > > & | getOperations () const |
Return a map of all of the operations registered to this dialect. More... | |
Friends | |
class | Context |
Allow access to the constructor. More... | |
This class represents an ODS dialect, and contains information on the constructs held within the dialect.
mlir::pdll::ods::Dialect::~Dialect | ( | ) |
|
inline |
|
inline |
std::pair< Operation *, bool > Dialect::insertOperation | ( | StringRef | name, |
StringRef | summary, | ||
StringRef | desc, | ||
StringRef | nativeClassName, | ||
bool | supportsResultTypeInferrence, | ||
SMLoc | loc | ||
) |
Insert a new operation with the dialect.
Returns the inserted operation, and a boolean indicating if the operation newly inserted (false if the operation already existed).
Definition at line 25 of file Dialect.cpp.
Referenced by mlir::pdll::ods::Context::insertOperation().
Operation * Dialect::lookupOperation | ( | StringRef | name | ) | const |
Lookup an operation registered with the given name, or null if no operation with that name is registered.
Definition at line 37 of file Dialect.cpp.