This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Make RISCVISAInfo::toFeatureVector ignore unsupported extensions
ClosedPublic

Authored by asb on Mar 14 2023, 11:00 PM.

Details

Summary

parseNormalizedArchString adds a code path that creates a RISCVISAInfo including extensions that may not be supported by LLVM (rather than erroring or just ignoring them). Therefore, toFeatureVector needs to check the extension is supported in order to avoid creating unrecognised feature strings.

This change shouldn't impact any code paths used outside of test code, but this will be relied upon by the next patch which moves llvm-objdump and related tools over to using parseNormalizedArchString.

Diff Detail

Event Timeline

asb created this revision.Mar 14 2023, 11:00 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 14 2023, 11:00 PM
asb requested review of this revision.Mar 14 2023, 11:00 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 14 2023, 11:00 PM
asb updated this revision to Diff 505375.Mar 14 2023, 11:04 PM
kito-cheng accepted this revision.Mar 15 2023, 2:31 AM
This revision is now accepted and ready to land.Mar 15 2023, 2:31 AM