My Project
|
#include <FoldUtils.h>
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 ClassID * | getInterfaceID () |
Get a unique id for the derived interface type. More... | |
Protected Member Functions inherited from mlir::detail::DialectInterfaceBase< ConcreteType, BaseT > | |
DialectInterfaceBase (Dialect *dialect) | |
This class defines a dialect interface used to assist the operation folder. It provides hooks for materializing and folding operations.
|
inline |
|
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.