This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Use macros to reduce repetive switch cases. NFC
ClosedPublic

Authored by craig.topper on Jan 4 2022, 3:40 PM.

Details

Summary

These 3 switches map LMUL enum to instruction names. These follow
a regular pattern. Use a macro to reduce the number of source code
lines.

Diff Detail

Event Timeline

craig.topper created this revision.Jan 4 2022, 3:40 PM
craig.topper requested review of this revision.Jan 4 2022, 3:40 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 4 2022, 3:40 PM
Herald added a subscriber: MaskRay. · View Herald Transcript
arcbbb accepted this revision.Jan 5 2022, 1:21 AM

LGTM.

This revision is now accepted and ready to land.Jan 5 2022, 1:21 AM
This revision was landed with ongoing or failed builds.Jan 5 2022, 9:01 AM
This revision was automatically updated to reflect the committed changes.