[mlir][sparse] Simplifying SparseTensorEncodingAttr function arguments
authorwren romano <2998727+wrengr@users.noreply.github.com>
Mon, 12 Dec 2022 23:17:01 +0000 (15:17 -0800)
committerwren romano <2998727+wrengr@users.noreply.github.com>
Tue, 13 Dec 2022 01:05:56 +0000 (17:05 -0800)
commit387755a35d1260e65b4ed6811b492e021a05fe52
tree548afcb788ffe87a6acea265278df9e54cb41aec
parentefaa78cae08024a6d0d329234695e0e22c7458bc
[mlir][sparse] Simplifying SparseTensorEncodingAttr function arguments

Since STEA isa Attribute, and that's just (a wrapper around) a pointer, the extra `const` and `&` aren't necessary for function arguments.

Reviewed By: aartbik

Differential Revision: https://reviews.llvm.org/D139886
mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensor.h
mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp
mlir/lib/Dialect/SparseTensor/Transforms/CodegenUtils.cpp
mlir/lib/Dialect/SparseTensor/Transforms/CodegenUtils.h
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorConversion.cpp