Index is the proper type for storing shapes when constant folding, so
this fixes the previous code (which was using i64).
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D80600
[mlir][shape] Use IndexElementsAttr in Shape dialect. ClosedPublic Authored by silvas on May 26 2020, 4:59 PM.
Details Summary Index is the proper type for storing shapes when constant folding, so
Diff Detail
Event TimelineThis revision is now accepted and ready to land.May 27 2020, 7:16 AM Closed by commit rG25132b36a8b3: [mlir][shape] Use IndexElementsAttr in Shape dialect. (authored by silvas). · Explain WhyMay 27 2020, 2:12 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 266381 mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td
mlir/lib/Dialect/Shape/IR/Shape.cpp
mlir/test/Dialect/Shape/canonicalize.mlir
|