This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Make Zvfh depend on Zfhmin.
ClosedPublic

Authored by jacquesguan on May 5 2023, 7:43 PM.

Details

Summary

According to the v spec, the Zvfh extension depends on the Zve32f and Zfhmin extensions.

Diff Detail

Event Timeline

jacquesguan created this revision.May 5 2023, 7:43 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 5 2023, 7:43 PM
jacquesguan requested review of this revision.May 5 2023, 7:43 PM

We can’t add dependencies in RISCVFeatures.td that are not also RISCVISAInfo.cpp. The ELF attributes are generated from RISCVFeatures.td so they need to match.

Add dependency in RISCVISAInfo.cpp.

We can’t add dependencies in RISCVFeatures.td that are not also RISCVISAInfo.cpp. The ELF attributes are generated from RISCVFeatures.td so they need to match.

Done.

craig.topper added inline comments.May 5 2023, 11:36 PM
llvm/lib/Support/RISCVISAInfo.cpp
868–869

I guess this can be deleted now?

I hadn't noticed that the Zfinx and Zdinx mentions were removed from the vector spec repo in October 2021 after the 1.0 pdf was made in September in 2021. I guess Zve* extensions aren't compatible with Zfinx/Zdinx. I'll make another patch to fix that.

rebase main.

craig.topper added inline comments.May 8 2023, 5:30 PM
llvm/lib/Support/RISCVISAInfo.cpp
868–869

This can be removed.

Address comment.

llvm/lib/Support/RISCVISAInfo.cpp
868–869

Done.

This revision is now accepted and ready to land.May 9 2023, 11:29 AM
This revision was automatically updated to reflect the committed changes.