MLIR  20.0.0git
Public Member Functions | Friends | List of all members
mlir::pdll::ods::Dialect Class Reference

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...
 
OperationlookupOperation (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...
 

Detailed Description

This class represents an ODS dialect, and contains information on the constructs held within the dialect.

Definition at line 26 of file Dialect.h.

Constructor & Destructor Documentation

◆ ~Dialect()

mlir::pdll::ods::Dialect::~Dialect ( )

Member Function Documentation

◆ getName()

StringRef Dialect::getName ( ) const
inline

Return the name of this dialect.

Definition at line 31 of file Dialect.h.

◆ getOperations()

const llvm::StringMap<std::unique_ptr<Operation> >& mlir::pdll::ods::Dialect::getOperations ( ) const
inline

Return a map of all of the operations registered to this dialect.

Definition at line 46 of file Dialect.h.

◆ insertOperation()

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().

◆ lookupOperation()

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.

Friends And Related Function Documentation

◆ Context

friend class Context
friend

Allow access to the constructor.

Definition at line 60 of file Dialect.h.


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