MLIR  19.0.0git
Public Member Functions | List of all members
mlir::transform::PDLMatchHooks Class Reference

PDL constraint callbacks that can be used by the PDL extension of the Transform dialect. More...

#include "mlir/Dialect/Transform/PDLExtension/PDLExtensionOps.h"

+ Inheritance diagram for mlir::transform::PDLMatchHooks:

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...
 
MLIRContextgetContext () const
 Return the MLIR context. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ PDLMatchHooks()

mlir::transform::PDLMatchHooks::PDLMatchHooks ( MLIRContext ctx)
inline

Definition at line 30 of file PDLExtensionOps.h.

Member Function Documentation

◆ getPDLConstraintHooks()

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.

◆ mergeInPDLMatchHooks()

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.


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