Changes

Summary

  1. [mlir][sparse] Expose SparseTensor passes as enums instead of opaque (details)
  2. Revert "[mlir][sparse] Expose SparseTensor passes as enums instead of opaque" (details)
  3. [test][mlir] Restore used attributes deleted by D132726 (details)
  4. [SanitizerCoverage] Simplify pc-table and improve test. NFC (details)
Commit ef25b5d93d0b5621eb5d0482abd30a4e127e9223 by nick.kreeger
[mlir][sparse] Expose SparseTensor passes as enums instead of opaque
numbers for vectorization and parallelization options.

The SparseTensor passes currently use opaque numbers for the CLI,
despite using an enum internally. This patch exposes the enums instead
of numbered items that are matched back to the enum.

Fixes https://github.com/llvm/llvm-project/issues/53389

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

Please also see:
https://reviews.llvm.org/D118379
https://reviews.llvm.org/D117919
The file was modifiedmlir/test/Dialect/SparseTensor/sparse_vector_peeled.mlir (diff)
The file was modifiedmlir/include/mlir/Dialect/SparseTensor/Transforms/Passes.h (diff)
The file was modifiedmlir/test/Dialect/SparseTensor/sparse_vector_chain.mlir (diff)
The file was modifiedmlir/test/Integration/Dialect/SparseTensor/CPU/sparse_flatten.mlir (diff)
The file was modifiedmlir/test/Integration/Dialect/SparseTensor/CPU/sparse_mttkrp.mlir (diff)
The file was modifiedmlir/test/Integration/Dialect/SparseTensor/CPU/sparse_index_dense.mlir (diff)
The file was modifiedmlir/test/Integration/Dialect/SparseTensor/python/test_SpMM.py (diff)
The file was modifiedmlir/test/Integration/Dialect/SparseTensor/CPU/sparse_spmm.mlir (diff)
The file was modifiedmlir/test/Integration/Dialect/SparseTensor/CPU/sparse_matvec.mlir (diff)
The file was modifiedmlir/test/Dialect/SparseTensor/sparse_vector_index.mlir (diff)
The file was modifiedmlir/test/Integration/Dialect/SparseTensor/CPU/sparse_filter_conv2d.mlir (diff)
The file was modifiedmlir/test/Dialect/SparseTensor/sparse_parallel.mlir (diff)
The file was modifiedmlir/test/Integration/Dialect/SparseTensor/python/test_stress.py (diff)
The file was modifiedmlir/lib/Dialect/SparseTensor/Transforms/SparseTensorPasses.cpp (diff)
The file was modifiedmlir/test/Integration/Dialect/SparseTensor/CPU/sparse_cast.mlir (diff)
The file was modifiedmlir/test/Integration/Dialect/SparseTensor/python/test_SDDMM.py (diff)
The file was modifiedmlir/test/Integration/Dialect/SparseTensor/CPU/sparse_out_simple.mlir (diff)
The file was modifiedmlir/test/Integration/Dialect/SparseTensor/CPU/sparse_sampled_mm_fusion.mlir (diff)
The file was modifiedmlir/test/Integration/Dialect/SparseTensor/CPU/sparse_scale.mlir (diff)
The file was modifiedmlir/include/mlir/Dialect/SparseTensor/Pipelines/Passes.h (diff)
The file was modifiedmlir/test/Dialect/SparseTensor/sparse_vector.mlir (diff)
The file was modifiedmlir/include/mlir/Dialect/SparseTensor/Transforms/Passes.td (diff)
The file was modifiedmlir/test/Integration/Dialect/SparseTensor/CPU/sparse_reductions.mlir (diff)
The file was modifiedmlir/test/Integration/Dialect/SparseTensor/CPU/sparse_sampled_matmul.mlir (diff)
The file was modifiedmlir/test/Integration/Dialect/SparseTensor/CPU/sparse_sum.mlir (diff)
The file was modifiedmlir/test/Integration/Dialect/SparseTensor/CPU/sparse_quantized_matmul.mlir (diff)
The file was modifiedmlir/benchmark/python/common.py (diff)
Commit 91470d635290928e2bdaab82d52ebfd263eae267 by nick.kreeger
Revert "[mlir][sparse] Expose SparseTensor passes as enums instead of opaque"

This reverts commit ef25b5d93d0b5621eb5d0482abd30a4e127e9223.
The file was modifiedmlir/test/Integration/Dialect/SparseTensor/CPU/sparse_out_simple.mlir (diff)
The file was modifiedmlir/benchmark/python/common.py (diff)
The file was modifiedmlir/test/Integration/Dialect/SparseTensor/CPU/sparse_spmm.mlir (diff)
The file was modifiedmlir/test/Integration/Dialect/SparseTensor/CPU/sparse_sum.mlir (diff)
The file was modifiedmlir/test/Dialect/SparseTensor/sparse_vector.mlir (diff)
The file was modifiedmlir/test/Integration/Dialect/SparseTensor/CPU/sparse_filter_conv2d.mlir (diff)
The file was modifiedmlir/include/mlir/Dialect/SparseTensor/Transforms/Passes.td (diff)
The file was modifiedmlir/test/Integration/Dialect/SparseTensor/python/test_SpMM.py (diff)
The file was modifiedmlir/test/Integration/Dialect/SparseTensor/CPU/sparse_quantized_matmul.mlir (diff)
The file was modifiedmlir/test/Integration/Dialect/SparseTensor/python/test_stress.py (diff)
The file was modifiedmlir/test/Dialect/SparseTensor/sparse_vector_peeled.mlir (diff)
The file was modifiedmlir/test/Dialect/SparseTensor/sparse_vector_index.mlir (diff)
The file was modifiedmlir/test/Integration/Dialect/SparseTensor/CPU/sparse_sampled_matmul.mlir (diff)
The file was modifiedmlir/test/Integration/Dialect/SparseTensor/CPU/sparse_scale.mlir (diff)
The file was modifiedmlir/test/Integration/Dialect/SparseTensor/CPU/sparse_index_dense.mlir (diff)
The file was modifiedmlir/test/Integration/Dialect/SparseTensor/CPU/sparse_sampled_mm_fusion.mlir (diff)
The file was modifiedmlir/test/Integration/Dialect/SparseTensor/CPU/sparse_matvec.mlir (diff)
The file was modifiedmlir/test/Integration/Dialect/SparseTensor/CPU/sparse_mttkrp.mlir (diff)
The file was modifiedmlir/test/Integration/Dialect/SparseTensor/python/test_SDDMM.py (diff)
The file was modifiedmlir/test/Dialect/SparseTensor/sparse_vector_chain.mlir (diff)
The file was modifiedmlir/include/mlir/Dialect/SparseTensor/Pipelines/Passes.h (diff)
The file was modifiedmlir/test/Dialect/SparseTensor/sparse_parallel.mlir (diff)
The file was modifiedmlir/test/Integration/Dialect/SparseTensor/CPU/sparse_cast.mlir (diff)
The file was modifiedmlir/test/Integration/Dialect/SparseTensor/CPU/sparse_reductions.mlir (diff)
The file was modifiedmlir/include/mlir/Dialect/SparseTensor/Transforms/Passes.h (diff)
The file was modifiedmlir/lib/Dialect/SparseTensor/Transforms/SparseTensorPasses.cpp (diff)
The file was modifiedmlir/test/Integration/Dialect/SparseTensor/CPU/sparse_flatten.mlir (diff)
Commit 4ff5bf28f074d48c421cc31581bbc303f0f83bcd by Vitaly Buka
[test][mlir] Restore used attributes deleted by D132726
The file was modifiedmlir/test/lit.site.cfg.py.in (diff)
Commit 9fc679b87c0475481326ef720d216b4956623bfa by i
[SanitizerCoverage] Simplify pc-table and improve test. NFC
The file was modifiedllvm/test/Instrumentation/SanitizerCoverage/pc-table.ll (diff)
The file was modifiedllvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp (diff)