Refactor the definition of the enums that are used in the lower_vectors operation of the transformation dialect.
This avoid duplicating the definition of all the configurations that this operation can trigger.
NFC
Paths
| Differential D141867
[mlir][vector] Share enums with the transform dialect ClosedPublic Authored by qcolombet on Jan 16 2023, 11:09 AM.
Details Summary Refactor the definition of the enums that are used in the lower_vectors operation of the transformation dialect. NFC
Diff Detail
Event Timeline
Comment Actions
This revision is now accepted and ready to land.Jan 17 2023, 12:57 AM Closed by commit rGedec423981e8: [mlir][vector] Share enums with the transform dialect (authored by qcolombet). · Explain WhyJan 17 2023, 3:15 AM This revision was automatically updated to reflect the committed changes. qcolombet marked an inline comment as done.
Revision Contents
Diff 489750 mlir/include/mlir/Dialect/Vector/TransformOps/VectorTransformOps.h
mlir/include/mlir/Dialect/Vector/TransformOps/VectorTransformOps.td
mlir/include/mlir/Dialect/Vector/Transforms/CMakeLists.txt
mlir/include/mlir/Dialect/Vector/Transforms/VectorRewritePatterns.h
mlir/include/mlir/Dialect/Vector/Transforms/VectorTransformsBase.td
mlir/lib/Dialect/Vector/TransformOps/VectorTransformOps.cpp
mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp
mlir/test/Dialect/LLVM/transform-e2e.mlir
mlir/test/Dialect/Vector/transform-vector.mlir
|
We have to explicitly list all the fields here to have the proper parsing of the enums.
This may have an impact on the supported syntax. I.e., I don't know if attr-dict allows to put the attributes in whatever order, but if it does, then we lose this ability here.