My Project
Public Member Functions | List of all members
mlir::OpFolderDialectInterface Class Reference

#include <FoldUtils.h>

Inheritance diagram for mlir::OpFolderDialectInterface:
Inheritance graph
[legend]
Collaboration diagram for mlir::OpFolderDialectInterface:
Collaboration graph
[legend]

Public Member Functions

 OpFolderDialectInterface (Dialect *dialect)
 
virtual bool shouldMaterializeInto (Region *region) const
 

Additional Inherited Members

- Public Types inherited from mlir::detail::DialectInterfaceBase< ConcreteType, BaseT >
using Base = DialectInterfaceBase< ConcreteType, BaseT >
 
- Static Public Member Functions inherited from mlir::detail::DialectInterfaceBase< ConcreteType, BaseT >
static ClassIDgetInterfaceID ()
 Get a unique id for the derived interface type. More...
 
- Protected Member Functions inherited from mlir::detail::DialectInterfaceBase< ConcreteType, BaseT >
 DialectInterfaceBase (Dialect *dialect)
 

Detailed Description

This class defines a dialect interface used to assist the operation folder. It provides hooks for materializing and folding operations.

Constructor & Destructor Documentation

◆ OpFolderDialectInterface()

mlir::OpFolderDialectInterface::OpFolderDialectInterface ( Dialect dialect)
inline

Member Function Documentation

◆ shouldMaterializeInto()

virtual bool mlir::OpFolderDialectInterface::shouldMaterializeInto ( Region region) const
inlinevirtual

Registered hook to check if the given region, which is attached to an operation that is not isolated from above, should be used when materializing constants. The folder will generally materialize constants into the top-level isolated region, this allows for materializing into a lower level ancestor region if it is more profitable/correct.


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