This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Consistently error for arch strings with trailing _
ClosedPublic

Authored by asb on Mar 13 2023, 8:55 AM.

Details

Summary

RISCVISAInfo::parseArchString would sometimes error for arch strings with a trailing _ and sometimes accept them. This patch makes it consistently error.

Diff Detail

Event Timeline

asb created this revision.Mar 13 2023, 8:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 13 2023, 8:55 AM
asb requested review of this revision.Mar 13 2023, 8:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 13 2023, 8:55 AM
craig.topper added inline comments.Mar 13 2023, 4:01 PM
llvm/lib/Support/RISCVISAInfo.cpp
630

Should be use the same "extension name missing after separator '_'" used later?

asb updated this revision to Diff 505064.Mar 14 2023, 5:59 AM
asb marked an inline comment as done.

Address review comments.

This revision is now accepted and ready to land.Mar 14 2023, 8:40 AM
This revision was landed with ongoing or failed builds.Mar 14 2023, 12:13 PM
This revision was automatically updated to reflect the committed changes.