[mlir][sparse] refactoring isAdmissibleTensorExp into codegen
authorPeiming Liu <peiming@google.com>
Wed, 18 Jan 2023 18:19:32 +0000 (18:19 +0000)
committerPeiming Liu <peiming@google.com>
Fri, 27 Jan 2023 19:37:23 +0000 (19:37 +0000)
commita7bf2e558feb954396c93fd3fa740775944a179b
tree73fcd968556d11e21a1d9fe761d9a2158c96c3e3
parentc549da959b81902789a17918c5b95d4449e6fdfa
[mlir][sparse] refactoring isAdmissibleTensorExp into codegen

This patch moves some utils into CodegenEnv class, it should make the code easier to follow and it eliminates several indirect value assignment that use `ptr**`.

Reviewed By: aartbik

Differential Revision: https://reviews.llvm.org/D142040
mlir/lib/Dialect/SparseTensor/Transforms/CodegenEnv.cpp
mlir/lib/Dialect/SparseTensor/Transforms/CodegenEnv.h
mlir/lib/Dialect/SparseTensor/Transforms/Sparsification.cpp