This trivially folds into a constant when all operands are constant.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Paths
| Differential D102199
[mlir][Tensor] Add folding for tensor.from_elements ClosedPublic Authored by bkramer on May 10 2021, 2:23 PM.
Details Summary This trivially folds into a constant when all operands are constant.
Diff Detail
Unit TestsFailed Event TimelineHerald added subscribers: dcaballe, cota, mravishankar and 17 others. · View Herald TranscriptMay 10 2021, 2:23 PM This revision is now accepted and ready to land.May 10 2021, 3:29 PM This revision was landed with ongoing or failed builds.May 10 2021, 3:43 PM Closed by commit rG7b52aeadfa38: [mlir][Tensor] Add folding for tensor.from_elements (authored by bkramer). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 344209 mlir/include/mlir/Dialect/Tensor/IR/TensorOps.td
mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
mlir/test/Dialect/Linalg/detensorize_trivial.mlir
mlir/test/Dialect/Tensor/canonicalize.mlir
|