This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Print a better error message when a rv32 CPU is used on rv64 and vice versa.
ClosedPublic

Authored by craig.topper on Apr 10 2023, 7:14 PM.

Details

Summary

Instead of rejecting the CPU out right with no information, try
to diagnose that it doesn't match the triple.

Diff Detail

Event Timeline

craig.topper created this revision.Apr 10 2023, 7:14 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 10 2023, 7:14 PM
craig.topper requested review of this revision.Apr 10 2023, 7:14 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 10 2023, 7:14 PM

Upload the whole patch

asb accepted this revision.Apr 11 2023, 4:23 AM

LGTM.

This revision is now accepted and ready to land.Apr 11 2023, 4:23 AM
This revision was landed with ongoing or failed builds.Apr 11 2023, 10:42 AM
This revision was automatically updated to reflect the committed changes.