This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Group the legal vector types into lists we can iterator over in the RISCVISelLowering constructor
ClosedPublic

Authored by craig.topper on Jan 26 2021, 4:16 PM.

Details

Summary

Remove the RISCVVMVTs namespace because I don't think it provides
a lot of value. If we change the mappings we'd likely have to add
or remove things from the list anyway.

Add a wrapper around addRegisterClass that can determine the
register class from the fixed size of the type.

Diff Detail

Event Timeline

craig.topper created this revision.Jan 26 2021, 4:16 PM
craig.topper requested review of this revision.Jan 26 2021, 4:16 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 26 2021, 4:16 PM
Herald added a subscriber: MaskRay. · View Herald Transcript
This revision is now accepted and ready to land.Jan 27 2021, 1:47 AM
This revision was landed with ongoing or failed builds.Jan 27 2021, 10:20 AM
This revision was automatically updated to reflect the committed changes.