Since STEA isa Attribute, and that's just (a wrapper around) a pointer, the extra const and & aren't necessary for function arguments.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D139886
[mlir][sparse] Simplifying SparseTensorEncodingAttr function arguments ClosedPublic Authored by wrengr on Dec 12 2022, 3:09 PM.
Details Summary Since STEA isa Attribute, and that's just (a wrapper around) a pointer, the extra const and & aren't necessary for function arguments.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Dec 12 2022, 3:18 PM Closed by commit rG387755a35d12: [mlir][sparse] Simplifying SparseTensorEncodingAttr function arguments (authored by wrengr). · Explain WhyDec 12 2022, 5:06 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 482302 mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensor.h
mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp
mlir/lib/Dialect/SparseTensor/Transforms/CodegenUtils.h
mlir/lib/Dialect/SparseTensor/Transforms/CodegenUtils.cpp
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorConversion.cpp
|