MLIR
21.0.0git
|
This class represents a PDLL type that corresponds to an mlir::Operation. More...
#include "mlir/Tools/PDLL/AST/Types.h"
Public Member Functions | |
std::optional< StringRef > | getName () const |
Return the name of this operation type, or std::nullopt if it doesn't have on. More... | |
const ods::Operation * | getODSOperation () const |
Return the ODS operation that this type refers to, or nullptr if the ODS operation is unknown. More... | |
![]() | |
Type (Storage *impl=nullptr) | |
bool | operator== (const Type &other) const |
bool | operator!= (const Type &other) const |
operator bool () const | |
Storage * | getImpl () const |
Return the internal storage instance of this type. More... | |
TypeID | getTypeID () const |
Return the TypeID instance of this type. More... | |
void | print (raw_ostream &os) const |
Print this type to the given stream. More... | |
Type | refineWith (Type other) const |
Try to refine this type with the one provided. More... | |
Static Public Member Functions | |
static OperationType | get (Context &context, std::optional< StringRef > name=std::nullopt, const ods::Operation *odsOp=nullptr) |
Return an instance of the Operation type with an optional operation name. More... | |
![]() | |
static bool | classof (Type type) |
Provide type casting support. More... | |
Additional Inherited Members | |
![]() | |
using | Base = TypeBase< detail::OperationTypeStorage, Type > |
using | ImplTy = detail::OperationTypeStorage |
![]() | |
template<typename T > | |
const T * | getImplAs () const |
Return the internal storage instance of this type reinterpreted as the given derived storage type. More... | |
This class represents a PDLL type that corresponds to an mlir::Operation.
|
static |
Return an instance of the Operation type with an optional operation name.
If no name is provided, this type may refer to any operation.
Definition at line 73 of file Types.cpp.
References mlir::StorageUniquer::get(), and mlir::pdll::ast::Context::getTypeUniquer().
Referenced by mlir::pdll::ast::OperationExpr::create().
std::optional< StringRef > OperationType::getName | ( | ) | const |
const ods::Operation * OperationType::getODSOperation | ( | ) | const |