MLIR  16.0.0git
Public Member Functions | Public Attributes | List of all members
mlir::OperationName::Impl Struct Reference

This class represents a type erased version of an operation. More...

#include "mlir/IR/OperationSupport.h"

+ Collaboration diagram for mlir::OperationName::Impl:

Public Member Functions

 Impl (StringAttr name)
 
bool isRegistered () const
 The following fields are only populated when the operation is registered. More...
 

Public Attributes

StringAttr name
 The name of the operation. More...
 
Dialectdialect
 This is the dialect that this operation belongs to. More...
 
TypeID typeID
 The unique identifier of the derived Op class. More...
 
detail::InterfaceMap interfaceMap
 A map of interfaces that were registered to this operation. More...
 
FoldHookFn foldHookFn
 Internal callback hooks provided by the op implementation. More...
 
GetCanonicalizationPatternsFn getCanonicalizationPatternsFn
 
HasTraitFn hasTraitFn
 
ParseAssemblyFn parseAssemblyFn
 
PopulateDefaultAttrsFn populateDefaultAttrsFn
 
PrintAssemblyFn printAssemblyFn
 
VerifyInvariantsFn verifyInvariantsFn
 
VerifyRegionInvariantsFn verifyRegionInvariantsFn
 
ArrayRef< StringAttr > attributeNames
 A list of attribute names registered to this operation in StringAttr form. More...
 

Detailed Description

This class represents a type erased version of an operation.

It contains all of the components necessary for opaquely interacting with an operation. If the operation is not registered, some of these components may not be populated.

Definition at line 89 of file OperationSupport.h.

Constructor & Destructor Documentation

◆ Impl()

mlir::OperationName::Impl::Impl ( StringAttr  name)
inline

Definition at line 90 of file OperationSupport.h.

References None.

Member Function Documentation

◆ isRegistered()

bool mlir::OperationName::Impl::isRegistered ( ) const
inline

The following fields are only populated when the operation is registered.

Returns true if the operation has been registered, i.e. if the registration info has been populated.

Definition at line 104 of file OperationSupport.h.

Referenced by mlir::RegisteredOperationName::insert().

Member Data Documentation

◆ attributeNames

ArrayRef<StringAttr> mlir::OperationName::Impl::attributeNames

A list of attribute names registered to this operation in StringAttr form.

This allows for operation classes to use StringAttr for attribute lookup/creation/etc., as opposed to raw strings.

Definition at line 128 of file OperationSupport.h.

◆ dialect

Dialect* mlir::OperationName::Impl::dialect

This is the dialect that this operation belongs to.

Definition at line 107 of file OperationSupport.h.

◆ foldHookFn

FoldHookFn mlir::OperationName::Impl::foldHookFn

Internal callback hooks provided by the op implementation.

Definition at line 116 of file OperationSupport.h.

◆ getCanonicalizationPatternsFn

GetCanonicalizationPatternsFn mlir::OperationName::Impl::getCanonicalizationPatternsFn

Definition at line 117 of file OperationSupport.h.

◆ hasTraitFn

HasTraitFn mlir::OperationName::Impl::hasTraitFn

Definition at line 118 of file OperationSupport.h.

◆ interfaceMap

detail::InterfaceMap mlir::OperationName::Impl::interfaceMap

A map of interfaces that were registered to this operation.

Definition at line 113 of file OperationSupport.h.

◆ name

StringAttr mlir::OperationName::Impl::name

The name of the operation.

Definition at line 94 of file OperationSupport.h.

◆ parseAssemblyFn

ParseAssemblyFn mlir::OperationName::Impl::parseAssemblyFn

Definition at line 119 of file OperationSupport.h.

◆ populateDefaultAttrsFn

PopulateDefaultAttrsFn mlir::OperationName::Impl::populateDefaultAttrsFn

Definition at line 120 of file OperationSupport.h.

◆ printAssemblyFn

PrintAssemblyFn mlir::OperationName::Impl::printAssemblyFn

Definition at line 121 of file OperationSupport.h.

◆ typeID

TypeID mlir::OperationName::Impl::typeID

The unique identifier of the derived Op class.

Definition at line 110 of file OperationSupport.h.

◆ verifyInvariantsFn

VerifyInvariantsFn mlir::OperationName::Impl::verifyInvariantsFn

Definition at line 122 of file OperationSupport.h.

◆ verifyRegionInvariantsFn

VerifyRegionInvariantsFn mlir::OperationName::Impl::verifyRegionInvariantsFn

Definition at line 123 of file OperationSupport.h.


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