This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Use structured bindings in common RVV lowering code
ClosedPublic

Authored by frasercrmck on Sep 22 2022, 8:29 AM.

Details

Summary

This patch uses structured bindings to simplify a couple of specific
cases when lowering RVV operations where we commonly declare two
SDValues and immediately 'tie' them to the mask and vector length.

There's also a couple places where we split vectors that structured
bindings make sense to use.

This patch tries to keep these sorts of changes minimal and to cases
where the returned types are commonly understood, rather than applying
this wholesale to the RISCV backend.

Diff Detail

Event Timeline

frasercrmck created this revision.Sep 22 2022, 8:29 AM
frasercrmck requested review of this revision.Sep 22 2022, 8:29 AM
reames accepted this revision.Sep 22 2022, 8:32 AM

LGTM

This revision is now accepted and ready to land.Sep 22 2022, 8:32 AM