[all-commits] [llvm/llvm-project] 836411: [mlir][sparse] add lvlToDim field to sparse tensor...

Aart Bik via All-commits all-commits at lists.llvm.org
Fri Sep 22 15:51:39 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 836411b99fa3823375e8de8a866faf89da9234c0
      https://github.com/llvm/llvm-project/commit/836411b99fa3823375e8de8a866faf89da9234c0
  Author: Aart Bik <39774503+aartbik at users.noreply.github.com>
  Date:   2023-09-22 (Fri, 22 Sep 2023)

  Changed paths:
    M mlir/include/mlir-c/Dialect/SparseTensor.h
    M mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorAttrDefs.td
    M mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorType.h
    M mlir/lib/Bindings/Python/DialectSparseTensor.cpp
    M mlir/lib/CAPI/Dialect/SparseTensor.cpp
    M mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp
    M mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorConversion.cpp
    M mlir/test/CAPI/sparse_tensor.c

  Log Message:
  -----------
  [mlir][sparse] add lvlToDim field to sparse tensor encoding (#67194)

Note the new surface syntax allows for defining a dimToLvl and lvlToDim
map at once (where usually the latter can be inferred from the former,
but not always). This revision adds storage for the latter, together
with some intial boilerplate. The actual support (inference, validation,
printing, etc.) is still TBD of course.




More information about the All-commits mailing list