[PATCH] D80394: Add `shape.get_extent`.

Theodore Popp via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 25 01:34:12 PDT 2020


tpopp added inline comments.


================
Comment at: mlir/lib/Dialect/Shape/IR/Shape.cpp:298
+  Builder builder(getContext());
+  return builder.getIntegerAttr(
+      builder.getIndexType(),
----------------
There is a `getIndexAtrr(int64_t)` method that you could use here.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80394/new/

https://reviews.llvm.org/D80394





More information about the llvm-commits mailing list