[all-commits] [llvm/llvm-project] 23c9e8: [mlir][tensors] Introduce attribute interface/attr...
Aart Bik via All-commits
all-commits at lists.llvm.org
Mon Apr 26 18:32:21 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 23c9e8bc25795b69e16d39b674c19c79a2bb107b
https://github.com/llvm/llvm-project/commit/23c9e8bc25795b69e16d39b674c19c79a2bb107b
Author: Aart Bik <ajcbik at google.com>
Date: 2021-04-26 (Mon, 26 Apr 2021)
Changed paths:
M mlir/include/mlir/Dialect/Tensor/IR/CMakeLists.txt
M mlir/include/mlir/Dialect/Tensor/IR/Tensor.h
A mlir/include/mlir/Dialect/Tensor/IR/TensorAttrDefs.td
M mlir/include/mlir/Dialect/Tensor/IR/TensorOps.td
M mlir/include/mlir/IR/CMakeLists.txt
A mlir/include/mlir/IR/TensorEncoding.h
A mlir/include/mlir/IR/TensorEncoding.td
M mlir/lib/Dialect/Tensor/IR/CMakeLists.txt
M mlir/lib/Dialect/Tensor/IR/TensorDialect.cpp
M mlir/lib/IR/BuiltinTypes.cpp
M mlir/lib/IR/CMakeLists.txt
A mlir/lib/IR/TensorEncoding.cpp
M mlir/lib/Parser/TypeParser.cpp
A mlir/test/Dialect/Tensor/invalid_sparse_tensor.mlir
A mlir/test/Dialect/Tensor/valid_sparse.mlir
Log Message:
-----------
[mlir][tensors] Introduce attribute interface/attribute for tensor encoding
The new "encoding" field in tensor types so far had no meaning. This revision introduces:
1. an encoding attribute interface in IR: for verification between tensors and encodings in general
2. an attribute in Tensor dialect; #tensor.sparse<dict> + concrete sparse tensors API
Active discussion:
https://llvm.discourse.group/t/rfc-introduce-a-sparse-tensor-type-to-core-mlir/2944/
Reviewed By: silvas, penpornk, bixia
Differential Revision: https://reviews.llvm.org/D101008
More information about the All-commits
mailing list