[RISCV] Make use of the required features in BuiltinInfo to store that V extension...
authorCraig Topper <craig.topper@sifive.com>
Thu, 4 Mar 2021 00:21:23 +0000 (16:21 -0800)
committerCraig Topper <craig.topper@sifive.com>
Thu, 4 Mar 2021 00:24:08 +0000 (16:24 -0800)
commit201ebf211f9772ef19abac82170b9b06fe2ccf2b
tree49e23519d3b44c5ca23e6c4b5e0cc54aecc748af
parent584cb67d2df32163efe61cfa58b3c798ee5b6b5c
[RISCV] Make use of the required features in BuiltinInfo to store that V extension builtins require 'experimental-v'.

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

With 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.

Reviewed By: HsiangKai

Differential Revision: https://reviews.llvm.org/D97826
clang/include/clang/Basic/BuiltinsRISCV.def
clang/lib/Basic/Targets/RISCV.cpp
clang/lib/Sema/SemaChecking.cpp