[all-commits] [llvm/llvm-project] fbe611: [mlir][sparse] refactored codegen environment into...

Aart Bik via All-commits all-commits at lists.llvm.org
Tue Dec 20 16:59:15 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fbe611309edf9ab8d9c26dcc82bc1ef38e99e637
      https://github.com/llvm/llvm-project/commit/fbe611309edf9ab8d9c26dcc82bc1ef38e99e637
  Author: Aart Bik <ajcbik at google.com>
  Date:   2022-12-20 (Tue, 20 Dec 2022)

  Changed paths:
    M mlir/lib/Dialect/SparseTensor/Transforms/CMakeLists.txt
    A mlir/lib/Dialect/SparseTensor/Transforms/CodegenEnv.cpp
    A mlir/lib/Dialect/SparseTensor/Transforms/CodegenEnv.h
    M mlir/lib/Dialect/SparseTensor/Transforms/Sparsification.cpp

  Log Message:
  -----------
  [mlir][sparse] refactored codegen environment into its own file

Also, as a proof of concept, all functionality related to reductions
has been refactored into private fields and a clean public API. As a
result, some dead code was found as well. This approach also simplifies
asserting on a proper environment state for each call.

NOTE: making all other fields private and migrating more methods into
      this new class is still TBD in yes another next revision!

Reviewed By: Peiming

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




More information about the All-commits mailing list