[MLIR][Shape] Expose extent tensor type builder
authorFrederik Gossen <frgossen@google.com>
Wed, 5 Aug 2020 09:41:42 +0000 (09:41 +0000)
committerFrederik Gossen <frgossen@google.com>
Wed, 5 Aug 2020 09:42:57 +0000 (09:42 +0000)
commit4cd923784e9079384792e0aed38d56809d6a4f9a
treede9684b72c7095c51f6313b98bbb141fb9af6cf7
parent14948a08f31b6e3b555f73339504efd867835d27
[MLIR][Shape] Expose extent tensor type builder

The extent tensor type is a `tensor<?xindex>` that is used in the shape dialect.
To facilitate the use of this type when working with the shape dialect, we
expose the helper function for its construction.

Differential Revision: https://reviews.llvm.org/D85121
mlir/include/mlir/Dialect/Shape/IR/Shape.h
mlir/lib/Dialect/Shape/IR/Shape.cpp