MLIR
20.0.0git
|
PDL constraint callbacks that can be used by the PDL extension of the Transform dialect. More...
#include "mlir/Dialect/Transform/PDLExtension/PDLExtensionOps.h"
Public Member Functions | |
PDLMatchHooks (MLIRContext *ctx) | |
void | mergeInPDLMatchHooks (llvm::StringMap< PDLConstraintFunction > &&constraintFns) |
Takes ownership of the named PDL constraint function from the given map and makes them available for use by the operations in the dialect. More... | |
const llvm::StringMap<::mlir::PDLConstraintFunction > & | getPDLConstraintHooks () const |
Returns the named PDL constraint functions available in the dialect as a map from their name to the function. More... | |
Public Member Functions inherited from mlir::transform::detail::TransformDialectDataBase | |
virtual | ~TransformDialectDataBase ()=default |
TypeID | getTypeID () const |
Returns the dynamic type ID of the subclass. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from mlir::transform::TransformDialectData< PDLMatchHooks > | |
TransformDialectData (MLIRContext *ctx) | |
Forward the TypeID of the derived class to the base. More... | |
Protected Member Functions inherited from mlir::transform::detail::TransformDialectDataBase | |
TransformDialectDataBase (TypeID typeID, MLIRContext *ctx) | |
Must be called by the subclass with the appropriate type ID. More... | |
MLIRContext * | getContext () const |
Return the MLIR context. More... | |
PDL constraint callbacks that can be used by the PDL extension of the Transform dialect.
These are owned by the Transform dialect and can be populated by extensions.
Definition at line 28 of file PDLExtensionOps.h.
|
inline |
Definition at line 30 of file PDLExtensionOps.h.
const llvm::StringMap< PDLConstraintFunction > & transform::PDLMatchHooks::getPDLConstraintHooks | ( | ) | const |
Returns the named PDL constraint functions available in the dialect as a map from their name to the function.
Definition at line 132 of file PDLExtensionOps.cpp.
void transform::PDLMatchHooks::mergeInPDLMatchHooks | ( | llvm::StringMap< PDLConstraintFunction > && | constraintFns | ) |
Takes ownership of the named PDL constraint function from the given map and makes them available for use by the operations in the dialect.
Definition at line 124 of file PDLExtensionOps.cpp.