MLIR
20.0.0git
|
Base class for TransformState extensions that allow TransformState to contain user-specified information in the state object. More...
#include "mlir/Dialect/Transform/Interfaces/TransformInterfaces.h"
Public Member Functions | |
virtual | ~Extension () |
Base virtual destructor. More... | |
Protected Member Functions | |
Extension (TransformState &state) | |
Constructs an extension of the given TransformState object. More... | |
const TransformState & | getTransformState () const |
Provides read-only access to the parent TransformState object. More... | |
LogicalResult | replacePayloadOp (Operation *op, Operation *replacement) |
Replaces the given payload op with another op. More... | |
LogicalResult | replacePayloadValue (Value value, Value replacement) |
Replaces the given payload value with another value. More... | |
Friends | |
class | TransformState |
Base class for TransformState extensions that allow TransformState to contain user-specified information in the state object.
Clients are expected to derive this class, add the desired fields, and make the derived class compatible with the MLIR TypeID mechanism:
Instances of this and derived classes are not expected to be created by the user, instead they are directly constructed within a TransformState. A TransformState can only contain one extension with the given TypeID. Extensions can be obtained from a TransformState instance, and can be removed when they are no longer required.
Definition at line 410 of file TransformInterfaces.h.
|
virtualdefault |
Base virtual destructor.
|
inlineprotected |
Constructs an extension of the given TransformState object.
Definition at line 422 of file TransformInterfaces.h.
|
inlineprotected |
Provides read-only access to the parent TransformState object.
Definition at line 425 of file TransformInterfaces.h.
|
protected |
Replaces the given payload op with another op.
If the replacement op is null, removes the association of the payload op with its handle. Returns failure if the op is not associated with any handle.
Note: This function does not update value handles. None of the original op's results are allowed to be mapped to any value handle.
Definition at line 1044 of file TransformInterfaces.cpp.
|
protected |
Replaces the given payload value with another value.
If the replacement value is null, removes the association of the payload value with its handle. Returns failure if the value is not associated with any handle.
Definition at line 1052 of file TransformInterfaces.cpp.
|
friend |
Definition at line 412 of file TransformInterfaces.h.