This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Make use of the required features in BuiltinInfo to store that V extension builtins require 'experimental-v'.
ClosedPublic

Authored by craig.topper on Mar 2 2021, 6:28 PM.

Details

Summary

Use that to print the diagnostic in SemaChecking instead of
listing all of the builtins in a switch.

With this is the required features, IR generation will also be
able to error on this. Checking this here allows us to have a RISCV
focused error message.

Diff Detail

Event Timeline

craig.topper created this revision.Mar 2 2021, 6:28 PM
craig.topper requested review of this revision.Mar 2 2021, 6:28 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 2 2021, 6:28 PM
Herald added a subscriber: MaskRay. · View Herald Transcript
HsiangKai accepted this revision.Mar 3 2021, 3:38 PM

LGTM.

This revision is now accepted and ready to land.Mar 3 2021, 3:38 PM
This revision was landed with ongoing or failed builds.Mar 3 2021, 4:40 PM
This revision was automatically updated to reflect the committed changes.