[PATCH] D80004: [MLIR] Add `from_index`, `to_index`, and `num_elements` to the shape dialect
Sean Silva via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 15 11:57:49 PDT 2020
silvas added inline comments.
================
Comment at: mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td:109
+def Shape_FromIndexOp : Shape_Op<"from_index", []> {
+ let summary = "Creates a shape size from a standard index";
----------------
These should be marked NoSideEffect and have folders and InferTypeOpInterface. See https://reviews.llvm.org/D79833 for an example of another op.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80004/new/
https://reviews.llvm.org/D80004
More information about the llvm-commits
mailing list