This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Update subset naming convertion for the latest spec
Needs ReviewPublic

Authored by Jim on Apr 28 2021, 12:28 AM.

Details

Summary

Update arch string rules for the latest spec 20191213. It introduced
new multi-letter extension prefix with 'h' and 'z', and drop sx.
And the canonical order is 's', 'h', 'z' and 'x'.

Diff Detail

Unit TestsFailed

Event Timeline

Jim created this revision.Apr 28 2021, 12:28 AM
Jim requested review of this revision.Apr 28 2021, 12:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 28 2021, 12:28 AM
khchen added inline comments.Apr 28 2021, 9:00 AM
clang/lib/Driver/ToolChains/Arch/RISCV.cpp
180

If we want to update the arch string rules to ISA 20191213, should we also need to handle Zicsr, Zifencei, Zam and Ztso?

294

nit: Table 27.1 in RISC-V User-Level ISA 20191213