This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] Cleaning up code style for genCast
ClosedPublic

Authored by wrengr on Mar 6 2023, 2:39 PM.

Diff Detail

Event Timeline

wrengr created this revision.Mar 6 2023, 2:39 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 6 2023, 2:39 PM
wrengr requested review of this revision.Mar 6 2023, 2:39 PM
aartbik accepted this revision.Mar 7 2023, 9:51 AM
aartbik added inline comments.
mlir/lib/Dialect/SparseTensor/Transforms/CodegenUtils.cpp
216

Minor nit, but here and below, I would omit the "can't use ?: here" part, since that really reads more like a note to self then adding more doc to what is actually done

This revision is now accepted and ready to land.Mar 7 2023, 9:51 AM
wrengr added inline comments.Mar 7 2023, 11:41 AM
mlir/lib/Dialect/SparseTensor/Transforms/CodegenUtils.cpp
216

Can do. Though it is the sort of developer's comment we have elsewhere, since it explains the otherwise very peculiar looking repetition of conditionals checking ext and !ext

wrengr updated this revision to Diff 503130.Mar 7 2023, 12:27 PM

addressing comments

wrengr marked an inline comment as done.Mar 7 2023, 12:28 PM
This revision was automatically updated to reflect the committed changes.