From: Hsiangkai Wang Date: Wed, 3 Mar 2021 01:41:31 +0000 (+0800) Subject: [RISCV] Use RISCVV_BUILTIN for vector intrinsic checking. X-Git-Tag: llvmorg-14-init~13555 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f7e675b3da1d7afd43af51c5a5e9140c87ef945d;p=platform%2Fupstream%2Fllvm.git [RISCV] Use RISCVV_BUILTIN for vector intrinsic checking. There may be other BUILTINs for other extensions. Use RISCVV_BUILTIN for vector builtin checking. Differential Revision: https://reviews.llvm.org/D97825 --- diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp index ccde2f3..779bc23 100644 --- a/clang/lib/Sema/SemaChecking.cpp +++ b/clang/lib/Sema/SemaChecking.cpp @@ -3395,7 +3395,7 @@ bool Sema::CheckRISCVBuiltinFunctionCall(const TargetInfo &TI, switch (BuiltinID) { default: break; -#define BUILTIN(ID, TYPE, ATTRS) case RISCV::BI##ID: +#define RISCVV_BUILTIN(ID, TYPE, ATTRS) case RISCV::BI##ID: #include "clang/Basic/BuiltinsRISCV.def" if (!TI.hasFeature("experimental-v")) return Diag(TheCall->getBeginLoc(), diag::err_riscvv_builtin_requires_v)