This is an archive of the discontinued LLVM Phabricator instance.

[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 Timeline

wrengr created this revision.Dec 12 2022, 3:09 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 12 2022, 3:09 PM
wrengr requested review of this revision.Dec 12 2022, 3:09 PM
wrengr updated this revision to Diff 482289.Dec 12 2022, 3:17 PM

removed a few more &

aartbik accepted this revision.Dec 12 2022, 3:18 PM
This revision is now accepted and ready to land.Dec 12 2022, 3:18 PM
wrengr updated this revision to Diff 482302.Dec 12 2022, 4:02 PM

git-clang-format