[all-commits] [llvm/llvm-project] 236a90: [mlir][sparse] replace support lib conversion with...

Aart Bik via All-commits all-commits at lists.llvm.org
Mon Aug 23 14:26:22 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 236a90802d5a7f6823685990fe76fd9beec9b4a5
      https://github.com/llvm/llvm-project/commit/236a90802d5a7f6823685990fe76fd9beec9b4a5
  Author: Aart Bik <ajcbik at google.com>
  Date:   2021-08-23 (Mon, 23 Aug 2021)

  Changed paths:
    M mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp
    M mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorConversion.cpp
    M mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorPasses.cpp
    M mlir/lib/ExecutionEngine/SparseUtils.cpp
    M mlir/test/Dialect/SparseTensor/conversion.mlir

  Log Message:
  -----------
  [mlir][sparse] replace support lib conversion with actual MLIR codegen

Rationale:
Passing in a pointer to the memref data in order to implement the
dense to sparse conversion was a bit too low-level. This revision
improves upon that approach with a cleaner solution of generating
a loop nest in MLIR code itself that prepares the COO object before
passing it to our "swiss army knife" setup.  This is much more
intuitive *and* now also allows for dynamic shapes.

Reviewed By: bixia

Differential Revision: https://reviews.llvm.org/D108491




More information about the All-commits mailing list