[all-commits] [llvm/llvm-project] 3dceb6: Allow IndexType inside tensors.
Sean Silva via All-commits
all-commits at lists.llvm.org
Thu Mar 26 10:53:05 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 3dceb6d2460550ef8c2e53df2181c8a11a7e6730
https://github.com/llvm/llvm-project/commit/3dceb6d2460550ef8c2e53df2181c8a11a7e6730
Author: Sean Silva <silvasean at google.com>
Date: 2020-03-26 (Thu, 26 Mar 2020)
Changed paths:
M mlir/docs/Rationale.md
M mlir/include/mlir/IR/StandardTypes.h
M mlir/test/IR/invalid.mlir
Log Message:
-----------
Allow IndexType inside tensors.
It's common in many dialects to use tensors to themselves hold tensor shapes (for example, the shape is itself the result of some non-trivial calculation). Currently, such dialects have to use `tensor<?xi64>` or worse (like allowing either i32 or i64 tensors to represent shapes). `tensor<?xindex>` is the natural type to represent this, but is currently disallowed. This patch allows it.
Differential Revision: https://reviews.llvm.org/D76726
More information about the All-commits
mailing list