}
static bool ArmSveAliasValid(unsigned BuiltinID, StringRef AliasName) {
- switch (BuiltinID) {
- default:
- return false;
-#define GET_SVE_BUILTINS
-#define BUILTIN(name, types, attr) case SVE::BI##name:
-#include "clang/Basic/arm_sve_builtins.inc"
-#undef BUILTIN
- return true;
- }
+ return BuiltinID >= AArch64::FirstSVEBuiltin &&
+ BuiltinID <= AArch64::LastSVEBuiltin;
}
static void handleArmBuiltinAliasAttr(Sema &S, Decl *D, const ParsedAttr &AL) {
}
static bool RISCVAliasValid(unsigned BuiltinID, StringRef AliasName) {
- switch (BuiltinID) {
- default:
- return false;
-#define BUILTIN(ID, TYPE, ATTRS) case RISCV::BI##ID:
-#include "clang/Basic/BuiltinsRISCV.def"
-#undef BUILTIN
- return true;
- }
+ return BuiltinID >= Builtin::FirstTSBuiltin &&
+ BuiltinID < RISCV::LastTSBuiltin;
}
static void handleBuiltinAliasAttr(Sema &S, Decl *D,