This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Remove ExtName from RISCVExtensionInfo.
ClosedPublic

Authored by craig.topper on Mar 15 2023, 11:59 PM.

Details

Summary

This field is never used in the compiler and was only used in
unit tests added recently.

It's only used as the value in a map where the extension name
is the key. If we need the string we can get it from the key.

Diff Detail

Event Timeline

craig.topper created this revision.Mar 15 2023, 11:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 15 2023, 11:59 PM
craig.topper requested review of this revision.Mar 15 2023, 11:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 15 2023, 11:59 PM

LGTM, but I would like to wait @asb ack about the unittest part.

asb accepted this revision.Mar 16 2023, 2:00 AM

LGTM. I think I can see the potential reasoning for the extension name being in RISCVExtensionInfo in the first place - it makes it more plausible to use it separated from the OrderedExtensionMap. But as you note, in reality we don't have any such uses and I can't really foresee any either.

This revision is now accepted and ready to land.Mar 16 2023, 2:00 AM
This revision was automatically updated to reflect the committed changes.