[PATCH] D80283: [MLIR] Fix operand type in `from_extent_tensor` in the shape dialect

Frederik Gossen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 20 02:40:08 PDT 2020


frgossen created this revision.
Herald added subscribers: llvm-commits, jurahul, Kayjukh, grosul1, Joonsoo, stephenneuendorffer, liufengdb, lucyrfox, mgester, arpith-jacob, nicolasvasilache, antiagainst, shauheen, jpienaar, rriddle, mehdi_amini.
Herald added a reviewer: jpienaar.
Herald added a reviewer: silvas.
Herald added a project: LLVM.
frgossen added reviewers: pifon2a, herhut.

The operand of `from_extent_tensor` is now of the same index type as the result
type of the inverse operation `to_extent_tensor`.

Depends On D80281 <https://reviews.llvm.org/D80281>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D80283

Files:
  mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td


Index: mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td
===================================================================
--- mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td
+++ mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td
@@ -142,7 +142,7 @@
     extents match the values of the elements.
   }];
 
-  let arguments = (ins I32Tensor:$input);
+  let arguments = (ins IndexTensor:$input);
   let results = (outs Shape_ShapeType:$result);
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80283.265175.patch
Type: text/x-patch
Size: 442 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200520/4dcc3f3a/attachment.bin>


More information about the llvm-commits mailing list