27#include "llvm/ADT/SmallVector.h"
28#include "llvm/TargetParser/RISCVTargetParser.h"
42struct RVVIntrinsicDef {
44 std::string BuiltinName;
50struct RVVOverloadIntrinsicDef {
58#define DECL_SIGNATURE_TABLE
59#include "clang/Basic/riscv_vector_builtin_sema.inc"
60#undef DECL_SIGNATURE_TABLE
64#define DECL_SIGNATURE_TABLE
65#include "clang/Basic/riscv_sifive_vector_builtin_sema.inc"
66#undef DECL_SIGNATURE_TABLE
70#define DECL_INTRINSIC_RECORDS
71#include "clang/Basic/riscv_vector_builtin_sema.inc"
72#undef DECL_INTRINSIC_RECORDS
76#define DECL_INTRINSIC_RECORDS
77#include "clang/Basic/riscv_sifive_vector_builtin_sema.inc"
78#undef DECL_INTRINSIC_RECORDS
85 case IntrinsicKind::RVV:
87 case IntrinsicKind::SIFIVE_VECTOR:
90 llvm_unreachable(
"Unhandled IntrinsicKind");
95 switch (
Type->getScalarType()) {
96 case ScalarTypeKind::Void:
99 case ScalarTypeKind::Size_t:
102 case ScalarTypeKind::Ptrdiff_t:
105 case ScalarTypeKind::UnsignedLong:
108 case ScalarTypeKind::SignedLong:
111 case ScalarTypeKind::Boolean:
114 case ScalarTypeKind::SignedInteger:
117 case ScalarTypeKind::UnsignedInteger:
120 case ScalarTypeKind::BFloat:
123 case ScalarTypeKind::Float:
124 switch (
Type->getElementBitwidth()) {
135 llvm_unreachable(
"Unsupported floating point width.");
140 llvm_unreachable(
"Unhandled type.");
142 if (
Type->isVector()) {
149 if (
Type->isConstant())
153 if (
Type->isPointer())
165 bool ConstructedRISCVVBuiltins;
166 bool ConstructedRISCVSiFiveVectorBuiltins;
169 std::vector<RVVIntrinsicDef> IntrinsicList;
171 StringMap<uint16_t> Intrinsics;
173 StringMap<RVVOverloadIntrinsicDef> OverloadIntrinsics;
177 StringRef OverloadedSuffixStr,
bool IsMask,
189 RISCVIntrinsicManagerImpl(
clang::Sema &S) : S(S), Context(S.Context) {
190 ConstructedRISCVVBuiltins =
false;
191 ConstructedRISCVSiFiveVectorBuiltins =
false;
204void RISCVIntrinsicManagerImpl::ConstructRVVIntrinsics(
207 static const std::pair<const char *, RVVRequire> FeatureCheckList[] = {
230 for (
auto &
Record : Recs) {
232 if (llvm::any_of(FeatureCheckList, [&](
const auto &Item) {
233 return (
Record.RequiredExtensions & Item.second) == Item.second &&
245 K,
Record.OverloadedSuffixIndex,
Record.OverloadedSuffixSize);
252 const Policy DefaultPolicy;
256 BasicProtoSeq,
false,
258 UnMaskedPolicyScheme, DefaultPolicy,
Record.IsTuple);
263 BasicProtoSeq,
true,
Record.HasMaskedOffOperand,
264 Record.HasVL,
Record.NF, MaskedPolicyScheme, DefaultPolicy,
267 bool UnMaskedHasPolicy = UnMaskedPolicyScheme != PolicyScheme::SchemeNone;
268 bool MaskedHasPolicy = MaskedPolicyScheme != PolicyScheme::SchemeNone;
275 for (
unsigned int TypeRangeMaskShift = 0;
276 TypeRangeMaskShift <= static_cast<unsigned int>(BasicType::MaxOffset);
277 ++TypeRangeMaskShift) {
278 unsigned int BaseTypeI = 1 << TypeRangeMaskShift;
279 BaseType =
static_cast<BasicType>(BaseTypeI);
281 if ((BaseTypeI &
Record.TypeRangeMask) != BaseTypeI)
289 if (BaseType == BasicType::Float16) {
299 for (
int Log2LMUL = -3; Log2LMUL <= 3; Log2LMUL++) {
300 if (!(
Record.Log2LMULMask & (1 << (Log2LMUL + 3))))
303 std::optional<RVVTypes> Types =
304 TypeCache.computeTypes(BaseType, Log2LMUL,
Record.NF, ProtoSeq);
307 if (!Types.has_value())
311 TypeCache, BaseType, Log2LMUL, SuffixProto);
313 TypeCache, BaseType, Log2LMUL, OverloadedSuffixProto);
316 InitRVVIntrinsic(
Record, SuffixStr, OverloadedSuffixStr,
false, *Types,
317 UnMaskedHasPolicy, DefaultPolicy);
320 if (
Record.UnMaskedPolicyScheme != PolicyScheme::SchemeNone) {
321 for (
auto P : SupportedUnMaskedPolicies) {
324 BasicProtoSeq,
false,
326 UnMaskedPolicyScheme,
P,
Record.IsTuple);
327 std::optional<RVVTypes> PolicyTypes = TypeCache.computeTypes(
328 BaseType, Log2LMUL,
Record.NF, PolicyPrototype);
329 InitRVVIntrinsic(
Record, SuffixStr, OverloadedSuffixStr,
330 false, *PolicyTypes, UnMaskedHasPolicy,
337 std::optional<RVVTypes> MaskTypes =
338 TypeCache.computeTypes(BaseType, Log2LMUL,
Record.NF, ProtoMaskSeq);
339 InitRVVIntrinsic(
Record, SuffixStr, OverloadedSuffixStr,
true,
340 *MaskTypes, MaskedHasPolicy, DefaultPolicy);
341 if (
Record.MaskedPolicyScheme == PolicyScheme::SchemeNone)
344 for (
auto P : SupportedMaskedPolicies) {
347 BasicProtoSeq,
true,
Record.HasMaskedOffOperand,
350 std::optional<RVVTypes> PolicyTypes = TypeCache.computeTypes(
351 BaseType, Log2LMUL,
Record.NF, PolicyPrototype);
352 InitRVVIntrinsic(
Record, SuffixStr, OverloadedSuffixStr,
353 true, *PolicyTypes, MaskedHasPolicy,
P);
360void RISCVIntrinsicManagerImpl::InitIntrinsicList() {
363 ConstructedRISCVVBuiltins =
true;
367 !ConstructedRISCVSiFiveVectorBuiltins) {
368 ConstructedRISCVSiFiveVectorBuiltins =
true;
370 IntrinsicKind::SIFIVE_VECTOR);
375void RISCVIntrinsicManagerImpl::InitRVVIntrinsic(
377 StringRef OverloadedSuffixStr,
bool IsMasked,
RVVTypes &Signature,
378 bool HasPolicy,
Policy PolicyAttrs) {
380 std::string Name =
Record.Name;
381 if (!SuffixStr.empty())
382 Name +=
"_" + SuffixStr.str();
385 std::string OverloadedName;
386 if (!
Record.OverloadedName)
387 OverloadedName = StringRef(
Record.Name).split(
"_").first.str();
389 OverloadedName =
Record.OverloadedName;
390 if (!OverloadedSuffixStr.empty())
391 OverloadedName +=
"_" + OverloadedSuffixStr.str();
394 std::string BuiltinName = std::string(
Record.Name);
397 OverloadedName, PolicyAttrs,
398 Record.HasFRMRoundModeOp);
401 uint16_t Index = IntrinsicList.size();
402 assert(IntrinsicList.size() == (
size_t)Index &&
403 "Intrinsics indices overflow.");
404 IntrinsicList.push_back({BuiltinName, Signature});
407 Intrinsics.insert({Name, Index});
410 RVVOverloadIntrinsicDef &OverloadIntrinsicDef =
411 OverloadIntrinsics[OverloadedName];
414 OverloadIntrinsicDef.Indexes.push_back(Index);
417void RISCVIntrinsicManagerImpl::CreateRVVIntrinsicDecl(
LookupResult &LR,
423 RVVIntrinsicDef &IDef = IntrinsicList[Index];
425 size_t SigLength = Sigs.size();
432 for (
size_t i = 1; i < SigLength; ++i)
445 Context,
Parent,
Loc,
Loc, II, BuiltinFuncType,
nullptr,
452 const auto *FP = cast<FunctionProtoType>(BuiltinFuncType);
454 for (
unsigned IParm = 0,
E = FP->getNumParams(); IParm !=
E; ++IParm) {
457 FP->getParamType(IParm),
nullptr,
SC_None,
nullptr);
459 ParmList.push_back(Parm);
461 RVVIntrinsicDecl->setParams(ParmList);
465 RVVIntrinsicDecl->
addAttr(OverloadableAttr::CreateImplicit(Context));
471 BuiltinAliasAttr::CreateImplicit(S.
Context, &IntrinsicII));
477bool RISCVIntrinsicManagerImpl::CreateIntrinsicIfFound(
LookupResult &LR,
480 StringRef Name = II->
getName();
481 if (!Name.consume_front(
"__riscv_"))
485 auto OvIItr = OverloadIntrinsics.find(Name);
486 if (OvIItr != OverloadIntrinsics.end()) {
487 const RVVOverloadIntrinsicDef &OvIntrinsicDef = OvIItr->second;
488 for (
auto Index : OvIntrinsicDef.Indexes)
489 CreateRVVIntrinsicDecl(LR, II, PP, Index,
498 auto Itr = Intrinsics.find(Name);
499 if (Itr != Intrinsics.end()) {
500 CreateRVVIntrinsicDecl(LR, II, PP, Itr->second,
510std::unique_ptr<clang::sema::RISCVIntrinsicManager>
512 return std::make_unique<RISCVIntrinsicManagerImpl>(S);
527 int64_t Val =
Result.getSExtValue();
528 if ((Val >= 0 && Val <= 3) || (Val >= 5 && Val <= 7))
531 return Diag(TheCall->
getBeginLoc(), diag::err_riscv_builtin_invalid_lmul)
537 assert((EGW == 128 || EGW == 256) &&
"EGW can only be 128 or 256 bits");
543 unsigned MinElemCount = Info.
EC.getKnownMinValue();
545 unsigned EGS = EGW / ElemSize;
548 if (EGS <= MinElemCount)
552 assert(EGS % MinElemCount == 0);
553 unsigned VScaleFactor = EGS / MinElemCount;
555 unsigned MinRequiredVLEN = VScaleFactor * llvm::RISCV::RVVBitsPerBlock;
556 std::string RequiredExt =
"zvl" + std::to_string(MinRequiredVLEN) +
"b";
559 diag::err_riscv_type_requires_extension)
560 <<
Type << RequiredExt;
574 case RISCVVector::BI__builtin_rvv_vmulhsu_vv:
575 case RISCVVector::BI__builtin_rvv_vmulhsu_vx:
576 case RISCVVector::BI__builtin_rvv_vmulhsu_vv_tu:
577 case RISCVVector::BI__builtin_rvv_vmulhsu_vx_tu:
578 case RISCVVector::BI__builtin_rvv_vmulhsu_vv_m:
579 case RISCVVector::BI__builtin_rvv_vmulhsu_vx_m:
580 case RISCVVector::BI__builtin_rvv_vmulhsu_vv_mu:
581 case RISCVVector::BI__builtin_rvv_vmulhsu_vx_mu:
582 case RISCVVector::BI__builtin_rvv_vmulhsu_vv_tum:
583 case RISCVVector::BI__builtin_rvv_vmulhsu_vx_tum:
584 case RISCVVector::BI__builtin_rvv_vmulhsu_vv_tumu:
585 case RISCVVector::BI__builtin_rvv_vmulhsu_vx_tumu:
586 case RISCVVector::BI__builtin_rvv_vmulhu_vv:
587 case RISCVVector::BI__builtin_rvv_vmulhu_vx:
588 case RISCVVector::BI__builtin_rvv_vmulhu_vv_tu:
589 case RISCVVector::BI__builtin_rvv_vmulhu_vx_tu:
590 case RISCVVector::BI__builtin_rvv_vmulhu_vv_m:
591 case RISCVVector::BI__builtin_rvv_vmulhu_vx_m:
592 case RISCVVector::BI__builtin_rvv_vmulhu_vv_mu:
593 case RISCVVector::BI__builtin_rvv_vmulhu_vx_mu:
594 case RISCVVector::BI__builtin_rvv_vmulhu_vv_tum:
595 case RISCVVector::BI__builtin_rvv_vmulhu_vx_tum:
596 case RISCVVector::BI__builtin_rvv_vmulhu_vv_tumu:
597 case RISCVVector::BI__builtin_rvv_vmulhu_vx_tumu:
598 case RISCVVector::BI__builtin_rvv_vmulh_vv:
599 case RISCVVector::BI__builtin_rvv_vmulh_vx:
600 case RISCVVector::BI__builtin_rvv_vmulh_vv_tu:
601 case RISCVVector::BI__builtin_rvv_vmulh_vx_tu:
602 case RISCVVector::BI__builtin_rvv_vmulh_vv_m:
603 case RISCVVector::BI__builtin_rvv_vmulh_vx_m:
604 case RISCVVector::BI__builtin_rvv_vmulh_vv_mu:
605 case RISCVVector::BI__builtin_rvv_vmulh_vx_mu:
606 case RISCVVector::BI__builtin_rvv_vmulh_vv_tum:
607 case RISCVVector::BI__builtin_rvv_vmulh_vx_tum:
608 case RISCVVector::BI__builtin_rvv_vmulh_vv_tumu:
609 case RISCVVector::BI__builtin_rvv_vmulh_vx_tumu:
610 case RISCVVector::BI__builtin_rvv_vsmul_vv:
611 case RISCVVector::BI__builtin_rvv_vsmul_vx:
612 case RISCVVector::BI__builtin_rvv_vsmul_vv_tu:
613 case RISCVVector::BI__builtin_rvv_vsmul_vx_tu:
614 case RISCVVector::BI__builtin_rvv_vsmul_vv_m:
615 case RISCVVector::BI__builtin_rvv_vsmul_vx_m:
616 case RISCVVector::BI__builtin_rvv_vsmul_vv_mu:
617 case RISCVVector::BI__builtin_rvv_vsmul_vx_mu:
618 case RISCVVector::BI__builtin_rvv_vsmul_vv_tum:
619 case RISCVVector::BI__builtin_rvv_vsmul_vx_tum:
620 case RISCVVector::BI__builtin_rvv_vsmul_vv_tumu:
621 case RISCVVector::BI__builtin_rvv_vsmul_vx_tumu: {
627 diag::err_riscv_builtin_requires_extension)
635 case RISCVVector::BI__builtin_rvv_vsetvli:
638 case RISCVVector::BI__builtin_rvv_vsetvlimax:
641 case RISCVVector::BI__builtin_rvv_vget_v: {
652 MaxIndex = (VecInfo.
EC.getKnownMinValue() * VecInfo.
NumVectors) /
653 (ResVecInfo.
EC.getKnownMinValue() * ResVecInfo.
NumVectors);
656 case RISCVVector::BI__builtin_rvv_vset_v: {
667 MaxIndex = (ResVecInfo.
EC.getKnownMinValue() * ResVecInfo.
NumVectors) /
672 case RISCVVector::BI__builtin_rvv_vaeskf1_vi_tu:
673 case RISCVVector::BI__builtin_rvv_vaeskf2_vi_tu:
674 case RISCVVector::BI__builtin_rvv_vaeskf2_vi:
675 case RISCVVector::BI__builtin_rvv_vsm4k_vi_tu: {
682 case RISCVVector::BI__builtin_rvv_vsm3c_vi_tu:
683 case RISCVVector::BI__builtin_rvv_vsm3c_vi: {
688 case RISCVVector::BI__builtin_rvv_vaeskf1_vi:
689 case RISCVVector::BI__builtin_rvv_vsm4k_vi: {
694 case RISCVVector::BI__builtin_rvv_vaesdf_vv:
695 case RISCVVector::BI__builtin_rvv_vaesdf_vs:
696 case RISCVVector::BI__builtin_rvv_vaesdm_vv:
697 case RISCVVector::BI__builtin_rvv_vaesdm_vs:
698 case RISCVVector::BI__builtin_rvv_vaesef_vv:
699 case RISCVVector::BI__builtin_rvv_vaesef_vs:
700 case RISCVVector::BI__builtin_rvv_vaesem_vv:
701 case RISCVVector::BI__builtin_rvv_vaesem_vs:
702 case RISCVVector::BI__builtin_rvv_vaesz_vs:
703 case RISCVVector::BI__builtin_rvv_vsm4r_vv:
704 case RISCVVector::BI__builtin_rvv_vsm4r_vs:
705 case RISCVVector::BI__builtin_rvv_vaesdf_vv_tu:
706 case RISCVVector::BI__builtin_rvv_vaesdf_vs_tu:
707 case RISCVVector::BI__builtin_rvv_vaesdm_vv_tu:
708 case RISCVVector::BI__builtin_rvv_vaesdm_vs_tu:
709 case RISCVVector::BI__builtin_rvv_vaesef_vv_tu:
710 case RISCVVector::BI__builtin_rvv_vaesef_vs_tu:
711 case RISCVVector::BI__builtin_rvv_vaesem_vv_tu:
712 case RISCVVector::BI__builtin_rvv_vaesem_vs_tu:
713 case RISCVVector::BI__builtin_rvv_vaesz_vs_tu:
714 case RISCVVector::BI__builtin_rvv_vsm4r_vv_tu:
715 case RISCVVector::BI__builtin_rvv_vsm4r_vs_tu: {
721 case RISCVVector::BI__builtin_rvv_vsha2ch_vv:
722 case RISCVVector::BI__builtin_rvv_vsha2cl_vv:
723 case RISCVVector::BI__builtin_rvv_vsha2ms_vv:
724 case RISCVVector::BI__builtin_rvv_vsha2ch_vv_tu:
725 case RISCVVector::BI__builtin_rvv_vsha2cl_vv_tu:
726 case RISCVVector::BI__builtin_rvv_vsha2ms_vv_tu: {
733 if (ElemSize == 64 && !TI.
hasFeature(
"zvknhb"))
735 diag::err_riscv_builtin_requires_extension)
745 case RISCVVector::BI__builtin_rvv_sf_vc_i_se:
752 case RISCVVector::BI__builtin_rvv_sf_vc_iv_se:
757 case RISCVVector::BI__builtin_rvv_sf_vc_v_i:
758 case RISCVVector::BI__builtin_rvv_sf_vc_v_i_se:
763 case RISCVVector::BI__builtin_rvv_sf_vc_v_iv:
764 case RISCVVector::BI__builtin_rvv_sf_vc_v_iv_se:
768 case RISCVVector::BI__builtin_rvv_sf_vc_ivv_se:
769 case RISCVVector::BI__builtin_rvv_sf_vc_ivw_se:
770 case RISCVVector::BI__builtin_rvv_sf_vc_v_ivv:
771 case RISCVVector::BI__builtin_rvv_sf_vc_v_ivw:
772 case RISCVVector::BI__builtin_rvv_sf_vc_v_ivv_se:
773 case RISCVVector::BI__builtin_rvv_sf_vc_v_ivw_se:
777 case RISCVVector::BI__builtin_rvv_sf_vc_x_se:
783 case RISCVVector::BI__builtin_rvv_sf_vc_xv_se:
784 case RISCVVector::BI__builtin_rvv_sf_vc_vv_se:
786 case RISCVVector::BI__builtin_rvv_sf_vc_v_x:
787 case RISCVVector::BI__builtin_rvv_sf_vc_v_x_se:
791 case RISCVVector::BI__builtin_rvv_sf_vc_vvv_se:
792 case RISCVVector::BI__builtin_rvv_sf_vc_xvv_se:
793 case RISCVVector::BI__builtin_rvv_sf_vc_vvw_se:
794 case RISCVVector::BI__builtin_rvv_sf_vc_xvw_se:
796 case RISCVVector::BI__builtin_rvv_sf_vc_v_xv:
797 case RISCVVector::BI__builtin_rvv_sf_vc_v_vv:
798 case RISCVVector::BI__builtin_rvv_sf_vc_v_xv_se:
799 case RISCVVector::BI__builtin_rvv_sf_vc_v_vv_se:
801 case RISCVVector::BI__builtin_rvv_sf_vc_v_xvv:
802 case RISCVVector::BI__builtin_rvv_sf_vc_v_vvv:
803 case RISCVVector::BI__builtin_rvv_sf_vc_v_xvw:
804 case RISCVVector::BI__builtin_rvv_sf_vc_v_vvw:
805 case RISCVVector::BI__builtin_rvv_sf_vc_v_xvv_se:
806 case RISCVVector::BI__builtin_rvv_sf_vc_v_vvv_se:
807 case RISCVVector::BI__builtin_rvv_sf_vc_v_xvw_se:
808 case RISCVVector::BI__builtin_rvv_sf_vc_v_vvw_se:
811 case RISCVVector::BI__builtin_rvv_sf_vc_fv_se:
815 case RISCVVector::BI__builtin_rvv_sf_vc_fvv_se:
816 case RISCVVector::BI__builtin_rvv_sf_vc_fvw_se:
817 case RISCVVector::BI__builtin_rvv_sf_vc_v_fvv:
818 case RISCVVector::BI__builtin_rvv_sf_vc_v_fvw:
819 case RISCVVector::BI__builtin_rvv_sf_vc_v_fvv_se:
820 case RISCVVector::BI__builtin_rvv_sf_vc_v_fvw_se:
822 case RISCVVector::BI__builtin_rvv_sf_vc_v_fv:
823 case RISCVVector::BI__builtin_rvv_sf_vc_v_fv_se:
827 case RISCV::BI__builtin_riscv_aes32dsi:
828 case RISCV::BI__builtin_riscv_aes32dsmi:
829 case RISCV::BI__builtin_riscv_aes32esi:
830 case RISCV::BI__builtin_riscv_aes32esmi:
831 case RISCV::BI__builtin_riscv_sm4ks:
832 case RISCV::BI__builtin_riscv_sm4ed:
835 case RISCV::BI__builtin_riscv_aes64ks1i:
838 case RISCVVector::BI__builtin_rvv_vaaddu_vv:
839 case RISCVVector::BI__builtin_rvv_vaaddu_vx:
840 case RISCVVector::BI__builtin_rvv_vaadd_vv:
841 case RISCVVector::BI__builtin_rvv_vaadd_vx:
842 case RISCVVector::BI__builtin_rvv_vasubu_vv:
843 case RISCVVector::BI__builtin_rvv_vasubu_vx:
844 case RISCVVector::BI__builtin_rvv_vasub_vv:
845 case RISCVVector::BI__builtin_rvv_vasub_vx:
846 case RISCVVector::BI__builtin_rvv_vsmul_vv:
847 case RISCVVector::BI__builtin_rvv_vsmul_vx:
848 case RISCVVector::BI__builtin_rvv_vssra_vv:
849 case RISCVVector::BI__builtin_rvv_vssra_vx:
850 case RISCVVector::BI__builtin_rvv_vssrl_vv:
851 case RISCVVector::BI__builtin_rvv_vssrl_vx:
852 case RISCVVector::BI__builtin_rvv_vnclip_wv:
853 case RISCVVector::BI__builtin_rvv_vnclip_wx:
854 case RISCVVector::BI__builtin_rvv_vnclipu_wv:
855 case RISCVVector::BI__builtin_rvv_vnclipu_wx:
857 case RISCVVector::BI__builtin_rvv_vaaddu_vv_tu:
858 case RISCVVector::BI__builtin_rvv_vaaddu_vx_tu:
859 case RISCVVector::BI__builtin_rvv_vaadd_vv_tu:
860 case RISCVVector::BI__builtin_rvv_vaadd_vx_tu:
861 case RISCVVector::BI__builtin_rvv_vasubu_vv_tu:
862 case RISCVVector::BI__builtin_rvv_vasubu_vx_tu:
863 case RISCVVector::BI__builtin_rvv_vasub_vv_tu:
864 case RISCVVector::BI__builtin_rvv_vasub_vx_tu:
865 case RISCVVector::BI__builtin_rvv_vsmul_vv_tu:
866 case RISCVVector::BI__builtin_rvv_vsmul_vx_tu:
867 case RISCVVector::BI__builtin_rvv_vssra_vv_tu:
868 case RISCVVector::BI__builtin_rvv_vssra_vx_tu:
869 case RISCVVector::BI__builtin_rvv_vssrl_vv_tu:
870 case RISCVVector::BI__builtin_rvv_vssrl_vx_tu:
871 case RISCVVector::BI__builtin_rvv_vnclip_wv_tu:
872 case RISCVVector::BI__builtin_rvv_vnclip_wx_tu:
873 case RISCVVector::BI__builtin_rvv_vnclipu_wv_tu:
874 case RISCVVector::BI__builtin_rvv_vnclipu_wx_tu:
875 case RISCVVector::BI__builtin_rvv_vaaddu_vv_m:
876 case RISCVVector::BI__builtin_rvv_vaaddu_vx_m:
877 case RISCVVector::BI__builtin_rvv_vaadd_vv_m:
878 case RISCVVector::BI__builtin_rvv_vaadd_vx_m:
879 case RISCVVector::BI__builtin_rvv_vasubu_vv_m:
880 case RISCVVector::BI__builtin_rvv_vasubu_vx_m:
881 case RISCVVector::BI__builtin_rvv_vasub_vv_m:
882 case RISCVVector::BI__builtin_rvv_vasub_vx_m:
883 case RISCVVector::BI__builtin_rvv_vsmul_vv_m:
884 case RISCVVector::BI__builtin_rvv_vsmul_vx_m:
885 case RISCVVector::BI__builtin_rvv_vssra_vv_m:
886 case RISCVVector::BI__builtin_rvv_vssra_vx_m:
887 case RISCVVector::BI__builtin_rvv_vssrl_vv_m:
888 case RISCVVector::BI__builtin_rvv_vssrl_vx_m:
889 case RISCVVector::BI__builtin_rvv_vnclip_wv_m:
890 case RISCVVector::BI__builtin_rvv_vnclip_wx_m:
891 case RISCVVector::BI__builtin_rvv_vnclipu_wv_m:
892 case RISCVVector::BI__builtin_rvv_vnclipu_wx_m:
894 case RISCVVector::BI__builtin_rvv_vaaddu_vv_tum:
895 case RISCVVector::BI__builtin_rvv_vaaddu_vv_tumu:
896 case RISCVVector::BI__builtin_rvv_vaaddu_vv_mu:
897 case RISCVVector::BI__builtin_rvv_vaaddu_vx_tum:
898 case RISCVVector::BI__builtin_rvv_vaaddu_vx_tumu:
899 case RISCVVector::BI__builtin_rvv_vaaddu_vx_mu:
900 case RISCVVector::BI__builtin_rvv_vaadd_vv_tum:
901 case RISCVVector::BI__builtin_rvv_vaadd_vv_tumu:
902 case RISCVVector::BI__builtin_rvv_vaadd_vv_mu:
903 case RISCVVector::BI__builtin_rvv_vaadd_vx_tum:
904 case RISCVVector::BI__builtin_rvv_vaadd_vx_tumu:
905 case RISCVVector::BI__builtin_rvv_vaadd_vx_mu:
906 case RISCVVector::BI__builtin_rvv_vasubu_vv_tum:
907 case RISCVVector::BI__builtin_rvv_vasubu_vv_tumu:
908 case RISCVVector::BI__builtin_rvv_vasubu_vv_mu:
909 case RISCVVector::BI__builtin_rvv_vasubu_vx_tum:
910 case RISCVVector::BI__builtin_rvv_vasubu_vx_tumu:
911 case RISCVVector::BI__builtin_rvv_vasubu_vx_mu:
912 case RISCVVector::BI__builtin_rvv_vasub_vv_tum:
913 case RISCVVector::BI__builtin_rvv_vasub_vv_tumu:
914 case RISCVVector::BI__builtin_rvv_vasub_vv_mu:
915 case RISCVVector::BI__builtin_rvv_vasub_vx_tum:
916 case RISCVVector::BI__builtin_rvv_vasub_vx_tumu:
917 case RISCVVector::BI__builtin_rvv_vasub_vx_mu:
918 case RISCVVector::BI__builtin_rvv_vsmul_vv_mu:
919 case RISCVVector::BI__builtin_rvv_vsmul_vx_mu:
920 case RISCVVector::BI__builtin_rvv_vssra_vv_mu:
921 case RISCVVector::BI__builtin_rvv_vssra_vx_mu:
922 case RISCVVector::BI__builtin_rvv_vssrl_vv_mu:
923 case RISCVVector::BI__builtin_rvv_vssrl_vx_mu:
924 case RISCVVector::BI__builtin_rvv_vnclip_wv_mu:
925 case RISCVVector::BI__builtin_rvv_vnclip_wx_mu:
926 case RISCVVector::BI__builtin_rvv_vnclipu_wv_mu:
927 case RISCVVector::BI__builtin_rvv_vnclipu_wx_mu:
928 case RISCVVector::BI__builtin_rvv_vsmul_vv_tum:
929 case RISCVVector::BI__builtin_rvv_vsmul_vx_tum:
930 case RISCVVector::BI__builtin_rvv_vssra_vv_tum:
931 case RISCVVector::BI__builtin_rvv_vssra_vx_tum:
932 case RISCVVector::BI__builtin_rvv_vssrl_vv_tum:
933 case RISCVVector::BI__builtin_rvv_vssrl_vx_tum:
934 case RISCVVector::BI__builtin_rvv_vnclip_wv_tum:
935 case RISCVVector::BI__builtin_rvv_vnclip_wx_tum:
936 case RISCVVector::BI__builtin_rvv_vnclipu_wv_tum:
937 case RISCVVector::BI__builtin_rvv_vnclipu_wx_tum:
938 case RISCVVector::BI__builtin_rvv_vsmul_vv_tumu:
939 case RISCVVector::BI__builtin_rvv_vsmul_vx_tumu:
940 case RISCVVector::BI__builtin_rvv_vssra_vv_tumu:
941 case RISCVVector::BI__builtin_rvv_vssra_vx_tumu:
942 case RISCVVector::BI__builtin_rvv_vssrl_vv_tumu:
943 case RISCVVector::BI__builtin_rvv_vssrl_vx_tumu:
944 case RISCVVector::BI__builtin_rvv_vnclip_wv_tumu:
945 case RISCVVector::BI__builtin_rvv_vnclip_wx_tumu:
946 case RISCVVector::BI__builtin_rvv_vnclipu_wv_tumu:
947 case RISCVVector::BI__builtin_rvv_vnclipu_wx_tumu:
949 case RISCVVector::BI__builtin_rvv_vfsqrt_v_rm:
950 case RISCVVector::BI__builtin_rvv_vfrec7_v_rm:
951 case RISCVVector::BI__builtin_rvv_vfcvt_x_f_v_rm:
952 case RISCVVector::BI__builtin_rvv_vfcvt_xu_f_v_rm:
953 case RISCVVector::BI__builtin_rvv_vfcvt_f_x_v_rm:
954 case RISCVVector::BI__builtin_rvv_vfcvt_f_xu_v_rm:
955 case RISCVVector::BI__builtin_rvv_vfwcvt_x_f_v_rm:
956 case RISCVVector::BI__builtin_rvv_vfwcvt_xu_f_v_rm:
957 case RISCVVector::BI__builtin_rvv_vfncvt_x_f_w_rm:
958 case RISCVVector::BI__builtin_rvv_vfncvt_xu_f_w_rm:
959 case RISCVVector::BI__builtin_rvv_vfncvt_f_x_w_rm:
960 case RISCVVector::BI__builtin_rvv_vfncvt_f_xu_w_rm:
961 case RISCVVector::BI__builtin_rvv_vfncvt_f_f_w_rm:
963 case RISCVVector::BI__builtin_rvv_vfadd_vv_rm:
964 case RISCVVector::BI__builtin_rvv_vfadd_vf_rm:
965 case RISCVVector::BI__builtin_rvv_vfsub_vv_rm:
966 case RISCVVector::BI__builtin_rvv_vfsub_vf_rm:
967 case RISCVVector::BI__builtin_rvv_vfrsub_vf_rm:
968 case RISCVVector::BI__builtin_rvv_vfwadd_vv_rm:
969 case RISCVVector::BI__builtin_rvv_vfwadd_vf_rm:
970 case RISCVVector::BI__builtin_rvv_vfwsub_vv_rm:
971 case RISCVVector::BI__builtin_rvv_vfwsub_vf_rm:
972 case RISCVVector::BI__builtin_rvv_vfwadd_wv_rm:
973 case RISCVVector::BI__builtin_rvv_vfwadd_wf_rm:
974 case RISCVVector::BI__builtin_rvv_vfwsub_wv_rm:
975 case RISCVVector::BI__builtin_rvv_vfwsub_wf_rm:
976 case RISCVVector::BI__builtin_rvv_vfmul_vv_rm:
977 case RISCVVector::BI__builtin_rvv_vfmul_vf_rm:
978 case RISCVVector::BI__builtin_rvv_vfdiv_vv_rm:
979 case RISCVVector::BI__builtin_rvv_vfdiv_vf_rm:
980 case RISCVVector::BI__builtin_rvv_vfrdiv_vf_rm:
981 case RISCVVector::BI__builtin_rvv_vfwmul_vv_rm:
982 case RISCVVector::BI__builtin_rvv_vfwmul_vf_rm:
983 case RISCVVector::BI__builtin_rvv_vfredosum_vs_rm:
984 case RISCVVector::BI__builtin_rvv_vfredusum_vs_rm:
985 case RISCVVector::BI__builtin_rvv_vfwredosum_vs_rm:
986 case RISCVVector::BI__builtin_rvv_vfwredusum_vs_rm:
987 case RISCVVector::BI__builtin_rvv_vfsqrt_v_rm_tu:
988 case RISCVVector::BI__builtin_rvv_vfrec7_v_rm_tu:
989 case RISCVVector::BI__builtin_rvv_vfcvt_x_f_v_rm_tu:
990 case RISCVVector::BI__builtin_rvv_vfcvt_xu_f_v_rm_tu:
991 case RISCVVector::BI__builtin_rvv_vfcvt_f_x_v_rm_tu:
992 case RISCVVector::BI__builtin_rvv_vfcvt_f_xu_v_rm_tu:
993 case RISCVVector::BI__builtin_rvv_vfwcvt_x_f_v_rm_tu:
994 case RISCVVector::BI__builtin_rvv_vfwcvt_xu_f_v_rm_tu:
995 case RISCVVector::BI__builtin_rvv_vfncvt_x_f_w_rm_tu:
996 case RISCVVector::BI__builtin_rvv_vfncvt_xu_f_w_rm_tu:
997 case RISCVVector::BI__builtin_rvv_vfncvt_f_x_w_rm_tu:
998 case RISCVVector::BI__builtin_rvv_vfncvt_f_xu_w_rm_tu:
999 case RISCVVector::BI__builtin_rvv_vfncvt_f_f_w_rm_tu:
1000 case RISCVVector::BI__builtin_rvv_vfsqrt_v_rm_m:
1001 case RISCVVector::BI__builtin_rvv_vfrec7_v_rm_m:
1002 case RISCVVector::BI__builtin_rvv_vfcvt_x_f_v_rm_m:
1003 case RISCVVector::BI__builtin_rvv_vfcvt_xu_f_v_rm_m:
1004 case RISCVVector::BI__builtin_rvv_vfcvt_f_x_v_rm_m:
1005 case RISCVVector::BI__builtin_rvv_vfcvt_f_xu_v_rm_m:
1006 case RISCVVector::BI__builtin_rvv_vfwcvt_x_f_v_rm_m:
1007 case RISCVVector::BI__builtin_rvv_vfwcvt_xu_f_v_rm_m:
1008 case RISCVVector::BI__builtin_rvv_vfncvt_x_f_w_rm_m:
1009 case RISCVVector::BI__builtin_rvv_vfncvt_xu_f_w_rm_m:
1010 case RISCVVector::BI__builtin_rvv_vfncvt_f_x_w_rm_m:
1011 case RISCVVector::BI__builtin_rvv_vfncvt_f_xu_w_rm_m:
1012 case RISCVVector::BI__builtin_rvv_vfncvt_f_f_w_rm_m:
1014 case RISCVVector::BI__builtin_rvv_vfadd_vv_rm_tu:
1015 case RISCVVector::BI__builtin_rvv_vfadd_vf_rm_tu:
1016 case RISCVVector::BI__builtin_rvv_vfsub_vv_rm_tu:
1017 case RISCVVector::BI__builtin_rvv_vfsub_vf_rm_tu:
1018 case RISCVVector::BI__builtin_rvv_vfrsub_vf_rm_tu:
1019 case RISCVVector::BI__builtin_rvv_vfwadd_vv_rm_tu:
1020 case RISCVVector::BI__builtin_rvv_vfwadd_vf_rm_tu:
1021 case RISCVVector::BI__builtin_rvv_vfwsub_vv_rm_tu:
1022 case RISCVVector::BI__builtin_rvv_vfwsub_vf_rm_tu:
1023 case RISCVVector::BI__builtin_rvv_vfwadd_wv_rm_tu:
1024 case RISCVVector::BI__builtin_rvv_vfwadd_wf_rm_tu:
1025 case RISCVVector::BI__builtin_rvv_vfwsub_wv_rm_tu:
1026 case RISCVVector::BI__builtin_rvv_vfwsub_wf_rm_tu:
1027 case RISCVVector::BI__builtin_rvv_vfmul_vv_rm_tu:
1028 case RISCVVector::BI__builtin_rvv_vfmul_vf_rm_tu:
1029 case RISCVVector::BI__builtin_rvv_vfdiv_vv_rm_tu:
1030 case RISCVVector::BI__builtin_rvv_vfdiv_vf_rm_tu:
1031 case RISCVVector::BI__builtin_rvv_vfrdiv_vf_rm_tu:
1032 case RISCVVector::BI__builtin_rvv_vfwmul_vv_rm_tu:
1033 case RISCVVector::BI__builtin_rvv_vfwmul_vf_rm_tu:
1034 case RISCVVector::BI__builtin_rvv_vfredosum_vs_rm_tu:
1035 case RISCVVector::BI__builtin_rvv_vfredusum_vs_rm_tu:
1036 case RISCVVector::BI__builtin_rvv_vfwredosum_vs_rm_tu:
1037 case RISCVVector::BI__builtin_rvv_vfwredusum_vs_rm_tu:
1038 case RISCVVector::BI__builtin_rvv_vfmacc_vv_rm:
1039 case RISCVVector::BI__builtin_rvv_vfmacc_vf_rm:
1040 case RISCVVector::BI__builtin_rvv_vfnmacc_vv_rm:
1041 case RISCVVector::BI__builtin_rvv_vfnmacc_vf_rm:
1042 case RISCVVector::BI__builtin_rvv_vfmsac_vv_rm:
1043 case RISCVVector::BI__builtin_rvv_vfmsac_vf_rm:
1044 case RISCVVector::BI__builtin_rvv_vfnmsac_vv_rm:
1045 case RISCVVector::BI__builtin_rvv_vfnmsac_vf_rm:
1046 case RISCVVector::BI__builtin_rvv_vfmadd_vv_rm:
1047 case RISCVVector::BI__builtin_rvv_vfmadd_vf_rm:
1048 case RISCVVector::BI__builtin_rvv_vfnmadd_vv_rm:
1049 case RISCVVector::BI__builtin_rvv_vfnmadd_vf_rm:
1050 case RISCVVector::BI__builtin_rvv_vfmsub_vv_rm:
1051 case RISCVVector::BI__builtin_rvv_vfmsub_vf_rm:
1052 case RISCVVector::BI__builtin_rvv_vfnmsub_vv_rm:
1053 case RISCVVector::BI__builtin_rvv_vfnmsub_vf_rm:
1054 case RISCVVector::BI__builtin_rvv_vfwmacc_vv_rm:
1055 case RISCVVector::BI__builtin_rvv_vfwmacc_vf_rm:
1056 case RISCVVector::BI__builtin_rvv_vfwnmacc_vv_rm:
1057 case RISCVVector::BI__builtin_rvv_vfwnmacc_vf_rm:
1058 case RISCVVector::BI__builtin_rvv_vfwmsac_vv_rm:
1059 case RISCVVector::BI__builtin_rvv_vfwmsac_vf_rm:
1060 case RISCVVector::BI__builtin_rvv_vfwnmsac_vv_rm:
1061 case RISCVVector::BI__builtin_rvv_vfwnmsac_vf_rm:
1062 case RISCVVector::BI__builtin_rvv_vfmacc_vv_rm_tu:
1063 case RISCVVector::BI__builtin_rvv_vfmacc_vf_rm_tu:
1064 case RISCVVector::BI__builtin_rvv_vfnmacc_vv_rm_tu:
1065 case RISCVVector::BI__builtin_rvv_vfnmacc_vf_rm_tu:
1066 case RISCVVector::BI__builtin_rvv_vfmsac_vv_rm_tu:
1067 case RISCVVector::BI__builtin_rvv_vfmsac_vf_rm_tu:
1068 case RISCVVector::BI__builtin_rvv_vfnmsac_vv_rm_tu:
1069 case RISCVVector::BI__builtin_rvv_vfnmsac_vf_rm_tu:
1070 case RISCVVector::BI__builtin_rvv_vfmadd_vv_rm_tu:
1071 case RISCVVector::BI__builtin_rvv_vfmadd_vf_rm_tu:
1072 case RISCVVector::BI__builtin_rvv_vfnmadd_vv_rm_tu:
1073 case RISCVVector::BI__builtin_rvv_vfnmadd_vf_rm_tu:
1074 case RISCVVector::BI__builtin_rvv_vfmsub_vv_rm_tu:
1075 case RISCVVector::BI__builtin_rvv_vfmsub_vf_rm_tu:
1076 case RISCVVector::BI__builtin_rvv_vfnmsub_vv_rm_tu:
1077 case RISCVVector::BI__builtin_rvv_vfnmsub_vf_rm_tu:
1078 case RISCVVector::BI__builtin_rvv_vfwmacc_vv_rm_tu:
1079 case RISCVVector::BI__builtin_rvv_vfwmacc_vf_rm_tu:
1080 case RISCVVector::BI__builtin_rvv_vfwnmacc_vv_rm_tu:
1081 case RISCVVector::BI__builtin_rvv_vfwnmacc_vf_rm_tu:
1082 case RISCVVector::BI__builtin_rvv_vfwmsac_vv_rm_tu:
1083 case RISCVVector::BI__builtin_rvv_vfwmsac_vf_rm_tu:
1084 case RISCVVector::BI__builtin_rvv_vfwnmsac_vv_rm_tu:
1085 case RISCVVector::BI__builtin_rvv_vfwnmsac_vf_rm_tu:
1086 case RISCVVector::BI__builtin_rvv_vfadd_vv_rm_m:
1087 case RISCVVector::BI__builtin_rvv_vfadd_vf_rm_m:
1088 case RISCVVector::BI__builtin_rvv_vfsub_vv_rm_m:
1089 case RISCVVector::BI__builtin_rvv_vfsub_vf_rm_m:
1090 case RISCVVector::BI__builtin_rvv_vfrsub_vf_rm_m:
1091 case RISCVVector::BI__builtin_rvv_vfwadd_vv_rm_m:
1092 case RISCVVector::BI__builtin_rvv_vfwadd_vf_rm_m:
1093 case RISCVVector::BI__builtin_rvv_vfwsub_vv_rm_m:
1094 case RISCVVector::BI__builtin_rvv_vfwsub_vf_rm_m:
1095 case RISCVVector::BI__builtin_rvv_vfwadd_wv_rm_m:
1096 case RISCVVector::BI__builtin_rvv_vfwadd_wf_rm_m:
1097 case RISCVVector::BI__builtin_rvv_vfwsub_wv_rm_m:
1098 case RISCVVector::BI__builtin_rvv_vfwsub_wf_rm_m:
1099 case RISCVVector::BI__builtin_rvv_vfmul_vv_rm_m:
1100 case RISCVVector::BI__builtin_rvv_vfmul_vf_rm_m:
1101 case RISCVVector::BI__builtin_rvv_vfdiv_vv_rm_m:
1102 case RISCVVector::BI__builtin_rvv_vfdiv_vf_rm_m:
1103 case RISCVVector::BI__builtin_rvv_vfrdiv_vf_rm_m:
1104 case RISCVVector::BI__builtin_rvv_vfwmul_vv_rm_m:
1105 case RISCVVector::BI__builtin_rvv_vfwmul_vf_rm_m:
1106 case RISCVVector::BI__builtin_rvv_vfredosum_vs_rm_m:
1107 case RISCVVector::BI__builtin_rvv_vfredusum_vs_rm_m:
1108 case RISCVVector::BI__builtin_rvv_vfwredosum_vs_rm_m:
1109 case RISCVVector::BI__builtin_rvv_vfwredusum_vs_rm_m:
1110 case RISCVVector::BI__builtin_rvv_vfsqrt_v_rm_tum:
1111 case RISCVVector::BI__builtin_rvv_vfrec7_v_rm_tum:
1112 case RISCVVector::BI__builtin_rvv_vfcvt_x_f_v_rm_tum:
1113 case RISCVVector::BI__builtin_rvv_vfcvt_xu_f_v_rm_tum:
1114 case RISCVVector::BI__builtin_rvv_vfcvt_f_x_v_rm_tum:
1115 case RISCVVector::BI__builtin_rvv_vfcvt_f_xu_v_rm_tum:
1116 case RISCVVector::BI__builtin_rvv_vfwcvt_x_f_v_rm_tum:
1117 case RISCVVector::BI__builtin_rvv_vfwcvt_xu_f_v_rm_tum:
1118 case RISCVVector::BI__builtin_rvv_vfncvt_x_f_w_rm_tum:
1119 case RISCVVector::BI__builtin_rvv_vfncvt_xu_f_w_rm_tum:
1120 case RISCVVector::BI__builtin_rvv_vfncvt_f_x_w_rm_tum:
1121 case RISCVVector::BI__builtin_rvv_vfncvt_f_xu_w_rm_tum:
1122 case RISCVVector::BI__builtin_rvv_vfncvt_f_f_w_rm_tum:
1123 case RISCVVector::BI__builtin_rvv_vfsqrt_v_rm_tumu:
1124 case RISCVVector::BI__builtin_rvv_vfrec7_v_rm_tumu:
1125 case RISCVVector::BI__builtin_rvv_vfcvt_x_f_v_rm_tumu:
1126 case RISCVVector::BI__builtin_rvv_vfcvt_xu_f_v_rm_tumu:
1127 case RISCVVector::BI__builtin_rvv_vfcvt_f_x_v_rm_tumu:
1128 case RISCVVector::BI__builtin_rvv_vfcvt_f_xu_v_rm_tumu:
1129 case RISCVVector::BI__builtin_rvv_vfwcvt_x_f_v_rm_tumu:
1130 case RISCVVector::BI__builtin_rvv_vfwcvt_xu_f_v_rm_tumu:
1131 case RISCVVector::BI__builtin_rvv_vfncvt_x_f_w_rm_tumu:
1132 case RISCVVector::BI__builtin_rvv_vfncvt_xu_f_w_rm_tumu:
1133 case RISCVVector::BI__builtin_rvv_vfncvt_f_x_w_rm_tumu:
1134 case RISCVVector::BI__builtin_rvv_vfncvt_f_xu_w_rm_tumu:
1135 case RISCVVector::BI__builtin_rvv_vfncvt_f_f_w_rm_tumu:
1136 case RISCVVector::BI__builtin_rvv_vfsqrt_v_rm_mu:
1137 case RISCVVector::BI__builtin_rvv_vfrec7_v_rm_mu:
1138 case RISCVVector::BI__builtin_rvv_vfcvt_x_f_v_rm_mu:
1139 case RISCVVector::BI__builtin_rvv_vfcvt_xu_f_v_rm_mu:
1140 case RISCVVector::BI__builtin_rvv_vfcvt_f_x_v_rm_mu:
1141 case RISCVVector::BI__builtin_rvv_vfcvt_f_xu_v_rm_mu:
1142 case RISCVVector::BI__builtin_rvv_vfwcvt_x_f_v_rm_mu:
1143 case RISCVVector::BI__builtin_rvv_vfwcvt_xu_f_v_rm_mu:
1144 case RISCVVector::BI__builtin_rvv_vfncvt_x_f_w_rm_mu:
1145 case RISCVVector::BI__builtin_rvv_vfncvt_xu_f_w_rm_mu:
1146 case RISCVVector::BI__builtin_rvv_vfncvt_f_x_w_rm_mu:
1147 case RISCVVector::BI__builtin_rvv_vfncvt_f_xu_w_rm_mu:
1148 case RISCVVector::BI__builtin_rvv_vfncvt_f_f_w_rm_mu:
1150 case RISCVVector::BI__builtin_rvv_vfmacc_vv_rm_m:
1151 case RISCVVector::BI__builtin_rvv_vfmacc_vf_rm_m:
1152 case RISCVVector::BI__builtin_rvv_vfnmacc_vv_rm_m:
1153 case RISCVVector::BI__builtin_rvv_vfnmacc_vf_rm_m:
1154 case RISCVVector::BI__builtin_rvv_vfmsac_vv_rm_m:
1155 case RISCVVector::BI__builtin_rvv_vfmsac_vf_rm_m:
1156 case RISCVVector::BI__builtin_rvv_vfnmsac_vv_rm_m:
1157 case RISCVVector::BI__builtin_rvv_vfnmsac_vf_rm_m:
1158 case RISCVVector::BI__builtin_rvv_vfmadd_vv_rm_m:
1159 case RISCVVector::BI__builtin_rvv_vfmadd_vf_rm_m:
1160 case RISCVVector::BI__builtin_rvv_vfnmadd_vv_rm_m:
1161 case RISCVVector::BI__builtin_rvv_vfnmadd_vf_rm_m:
1162 case RISCVVector::BI__builtin_rvv_vfmsub_vv_rm_m:
1163 case RISCVVector::BI__builtin_rvv_vfmsub_vf_rm_m:
1164 case RISCVVector::BI__builtin_rvv_vfnmsub_vv_rm_m:
1165 case RISCVVector::BI__builtin_rvv_vfnmsub_vf_rm_m:
1166 case RISCVVector::BI__builtin_rvv_vfwmacc_vv_rm_m:
1167 case RISCVVector::BI__builtin_rvv_vfwmacc_vf_rm_m:
1168 case RISCVVector::BI__builtin_rvv_vfwnmacc_vv_rm_m:
1169 case RISCVVector::BI__builtin_rvv_vfwnmacc_vf_rm_m:
1170 case RISCVVector::BI__builtin_rvv_vfwmsac_vv_rm_m:
1171 case RISCVVector::BI__builtin_rvv_vfwmsac_vf_rm_m:
1172 case RISCVVector::BI__builtin_rvv_vfwnmsac_vv_rm_m:
1173 case RISCVVector::BI__builtin_rvv_vfwnmsac_vf_rm_m:
1174 case RISCVVector::BI__builtin_rvv_vfadd_vv_rm_tum:
1175 case RISCVVector::BI__builtin_rvv_vfadd_vf_rm_tum:
1176 case RISCVVector::BI__builtin_rvv_vfsub_vv_rm_tum:
1177 case RISCVVector::BI__builtin_rvv_vfsub_vf_rm_tum:
1178 case RISCVVector::BI__builtin_rvv_vfrsub_vf_rm_tum:
1179 case RISCVVector::BI__builtin_rvv_vfwadd_vv_rm_tum:
1180 case RISCVVector::BI__builtin_rvv_vfwadd_vf_rm_tum:
1181 case RISCVVector::BI__builtin_rvv_vfwsub_vv_rm_tum:
1182 case RISCVVector::BI__builtin_rvv_vfwsub_vf_rm_tum:
1183 case RISCVVector::BI__builtin_rvv_vfwadd_wv_rm_tum:
1184 case RISCVVector::BI__builtin_rvv_vfwadd_wf_rm_tum:
1185 case RISCVVector::BI__builtin_rvv_vfwsub_wv_rm_tum:
1186 case RISCVVector::BI__builtin_rvv_vfwsub_wf_rm_tum:
1187 case RISCVVector::BI__builtin_rvv_vfmul_vv_rm_tum:
1188 case RISCVVector::BI__builtin_rvv_vfmul_vf_rm_tum:
1189 case RISCVVector::BI__builtin_rvv_vfdiv_vv_rm_tum:
1190 case RISCVVector::BI__builtin_rvv_vfdiv_vf_rm_tum:
1191 case RISCVVector::BI__builtin_rvv_vfrdiv_vf_rm_tum:
1192 case RISCVVector::BI__builtin_rvv_vfwmul_vv_rm_tum:
1193 case RISCVVector::BI__builtin_rvv_vfwmul_vf_rm_tum:
1194 case RISCVVector::BI__builtin_rvv_vfmacc_vv_rm_tum:
1195 case RISCVVector::BI__builtin_rvv_vfmacc_vf_rm_tum:
1196 case RISCVVector::BI__builtin_rvv_vfnmacc_vv_rm_tum:
1197 case RISCVVector::BI__builtin_rvv_vfnmacc_vf_rm_tum:
1198 case RISCVVector::BI__builtin_rvv_vfmsac_vv_rm_tum:
1199 case RISCVVector::BI__builtin_rvv_vfmsac_vf_rm_tum:
1200 case RISCVVector::BI__builtin_rvv_vfnmsac_vv_rm_tum:
1201 case RISCVVector::BI__builtin_rvv_vfnmsac_vf_rm_tum:
1202 case RISCVVector::BI__builtin_rvv_vfmadd_vv_rm_tum:
1203 case RISCVVector::BI__builtin_rvv_vfmadd_vf_rm_tum:
1204 case RISCVVector::BI__builtin_rvv_vfnmadd_vv_rm_tum:
1205 case RISCVVector::BI__builtin_rvv_vfnmadd_vf_rm_tum:
1206 case RISCVVector::BI__builtin_rvv_vfmsub_vv_rm_tum:
1207 case RISCVVector::BI__builtin_rvv_vfmsub_vf_rm_tum:
1208 case RISCVVector::BI__builtin_rvv_vfnmsub_vv_rm_tum:
1209 case RISCVVector::BI__builtin_rvv_vfnmsub_vf_rm_tum:
1210 case RISCVVector::BI__builtin_rvv_vfwmacc_vv_rm_tum:
1211 case RISCVVector::BI__builtin_rvv_vfwmacc_vf_rm_tum:
1212 case RISCVVector::BI__builtin_rvv_vfwnmacc_vv_rm_tum:
1213 case RISCVVector::BI__builtin_rvv_vfwnmacc_vf_rm_tum:
1214 case RISCVVector::BI__builtin_rvv_vfwmsac_vv_rm_tum:
1215 case RISCVVector::BI__builtin_rvv_vfwmsac_vf_rm_tum:
1216 case RISCVVector::BI__builtin_rvv_vfwnmsac_vv_rm_tum:
1217 case RISCVVector::BI__builtin_rvv_vfwnmsac_vf_rm_tum:
1218 case RISCVVector::BI__builtin_rvv_vfredosum_vs_rm_tum:
1219 case RISCVVector::BI__builtin_rvv_vfredusum_vs_rm_tum:
1220 case RISCVVector::BI__builtin_rvv_vfwredosum_vs_rm_tum:
1221 case RISCVVector::BI__builtin_rvv_vfwredusum_vs_rm_tum:
1222 case RISCVVector::BI__builtin_rvv_vfadd_vv_rm_tumu:
1223 case RISCVVector::BI__builtin_rvv_vfadd_vf_rm_tumu:
1224 case RISCVVector::BI__builtin_rvv_vfsub_vv_rm_tumu:
1225 case RISCVVector::BI__builtin_rvv_vfsub_vf_rm_tumu:
1226 case RISCVVector::BI__builtin_rvv_vfrsub_vf_rm_tumu:
1227 case RISCVVector::BI__builtin_rvv_vfwadd_vv_rm_tumu:
1228 case RISCVVector::BI__builtin_rvv_vfwadd_vf_rm_tumu:
1229 case RISCVVector::BI__builtin_rvv_vfwsub_vv_rm_tumu:
1230 case RISCVVector::BI__builtin_rvv_vfwsub_vf_rm_tumu:
1231 case RISCVVector::BI__builtin_rvv_vfwadd_wv_rm_tumu:
1232 case RISCVVector::BI__builtin_rvv_vfwadd_wf_rm_tumu:
1233 case RISCVVector::BI__builtin_rvv_vfwsub_wv_rm_tumu:
1234 case RISCVVector::BI__builtin_rvv_vfwsub_wf_rm_tumu:
1235 case RISCVVector::BI__builtin_rvv_vfmul_vv_rm_tumu:
1236 case RISCVVector::BI__builtin_rvv_vfmul_vf_rm_tumu:
1237 case RISCVVector::BI__builtin_rvv_vfdiv_vv_rm_tumu:
1238 case RISCVVector::BI__builtin_rvv_vfdiv_vf_rm_tumu:
1239 case RISCVVector::BI__builtin_rvv_vfrdiv_vf_rm_tumu:
1240 case RISCVVector::BI__builtin_rvv_vfwmul_vv_rm_tumu:
1241 case RISCVVector::BI__builtin_rvv_vfwmul_vf_rm_tumu:
1242 case RISCVVector::BI__builtin_rvv_vfmacc_vv_rm_tumu:
1243 case RISCVVector::BI__builtin_rvv_vfmacc_vf_rm_tumu:
1244 case RISCVVector::BI__builtin_rvv_vfnmacc_vv_rm_tumu:
1245 case RISCVVector::BI__builtin_rvv_vfnmacc_vf_rm_tumu:
1246 case RISCVVector::BI__builtin_rvv_vfmsac_vv_rm_tumu:
1247 case RISCVVector::BI__builtin_rvv_vfmsac_vf_rm_tumu:
1248 case RISCVVector::BI__builtin_rvv_vfnmsac_vv_rm_tumu:
1249 case RISCVVector::BI__builtin_rvv_vfnmsac_vf_rm_tumu:
1250 case RISCVVector::BI__builtin_rvv_vfmadd_vv_rm_tumu:
1251 case RISCVVector::BI__builtin_rvv_vfmadd_vf_rm_tumu:
1252 case RISCVVector::BI__builtin_rvv_vfnmadd_vv_rm_tumu:
1253 case RISCVVector::BI__builtin_rvv_vfnmadd_vf_rm_tumu:
1254 case RISCVVector::BI__builtin_rvv_vfmsub_vv_rm_tumu:
1255 case RISCVVector::BI__builtin_rvv_vfmsub_vf_rm_tumu:
1256 case RISCVVector::BI__builtin_rvv_vfnmsub_vv_rm_tumu:
1257 case RISCVVector::BI__builtin_rvv_vfnmsub_vf_rm_tumu:
1258 case RISCVVector::BI__builtin_rvv_vfwmacc_vv_rm_tumu:
1259 case RISCVVector::BI__builtin_rvv_vfwmacc_vf_rm_tumu:
1260 case RISCVVector::BI__builtin_rvv_vfwnmacc_vv_rm_tumu:
1261 case RISCVVector::BI__builtin_rvv_vfwnmacc_vf_rm_tumu:
1262 case RISCVVector::BI__builtin_rvv_vfwmsac_vv_rm_tumu:
1263 case RISCVVector::BI__builtin_rvv_vfwmsac_vf_rm_tumu:
1264 case RISCVVector::BI__builtin_rvv_vfwnmsac_vv_rm_tumu:
1265 case RISCVVector::BI__builtin_rvv_vfwnmsac_vf_rm_tumu:
1266 case RISCVVector::BI__builtin_rvv_vfadd_vv_rm_mu:
1267 case RISCVVector::BI__builtin_rvv_vfadd_vf_rm_mu:
1268 case RISCVVector::BI__builtin_rvv_vfsub_vv_rm_mu:
1269 case RISCVVector::BI__builtin_rvv_vfsub_vf_rm_mu:
1270 case RISCVVector::BI__builtin_rvv_vfrsub_vf_rm_mu:
1271 case RISCVVector::BI__builtin_rvv_vfwadd_vv_rm_mu:
1272 case RISCVVector::BI__builtin_rvv_vfwadd_vf_rm_mu:
1273 case RISCVVector::BI__builtin_rvv_vfwsub_vv_rm_mu:
1274 case RISCVVector::BI__builtin_rvv_vfwsub_vf_rm_mu:
1275 case RISCVVector::BI__builtin_rvv_vfwadd_wv_rm_mu:
1276 case RISCVVector::BI__builtin_rvv_vfwadd_wf_rm_mu:
1277 case RISCVVector::BI__builtin_rvv_vfwsub_wv_rm_mu:
1278 case RISCVVector::BI__builtin_rvv_vfwsub_wf_rm_mu:
1279 case RISCVVector::BI__builtin_rvv_vfmul_vv_rm_mu:
1280 case RISCVVector::BI__builtin_rvv_vfmul_vf_rm_mu:
1281 case RISCVVector::BI__builtin_rvv_vfdiv_vv_rm_mu:
1282 case RISCVVector::BI__builtin_rvv_vfdiv_vf_rm_mu:
1283 case RISCVVector::BI__builtin_rvv_vfrdiv_vf_rm_mu:
1284 case RISCVVector::BI__builtin_rvv_vfwmul_vv_rm_mu:
1285 case RISCVVector::BI__builtin_rvv_vfwmul_vf_rm_mu:
1286 case RISCVVector::BI__builtin_rvv_vfmacc_vv_rm_mu:
1287 case RISCVVector::BI__builtin_rvv_vfmacc_vf_rm_mu:
1288 case RISCVVector::BI__builtin_rvv_vfnmacc_vv_rm_mu:
1289 case RISCVVector::BI__builtin_rvv_vfnmacc_vf_rm_mu:
1290 case RISCVVector::BI__builtin_rvv_vfmsac_vv_rm_mu:
1291 case RISCVVector::BI__builtin_rvv_vfmsac_vf_rm_mu:
1292 case RISCVVector::BI__builtin_rvv_vfnmsac_vv_rm_mu:
1293 case RISCVVector::BI__builtin_rvv_vfnmsac_vf_rm_mu:
1294 case RISCVVector::BI__builtin_rvv_vfmadd_vv_rm_mu:
1295 case RISCVVector::BI__builtin_rvv_vfmadd_vf_rm_mu:
1296 case RISCVVector::BI__builtin_rvv_vfnmadd_vv_rm_mu:
1297 case RISCVVector::BI__builtin_rvv_vfnmadd_vf_rm_mu:
1298 case RISCVVector::BI__builtin_rvv_vfmsub_vv_rm_mu:
1299 case RISCVVector::BI__builtin_rvv_vfmsub_vf_rm_mu:
1300 case RISCVVector::BI__builtin_rvv_vfnmsub_vv_rm_mu:
1301 case RISCVVector::BI__builtin_rvv_vfnmsub_vf_rm_mu:
1302 case RISCVVector::BI__builtin_rvv_vfwmacc_vv_rm_mu:
1303 case RISCVVector::BI__builtin_rvv_vfwmacc_vf_rm_mu:
1304 case RISCVVector::BI__builtin_rvv_vfwnmacc_vv_rm_mu:
1305 case RISCVVector::BI__builtin_rvv_vfwnmacc_vf_rm_mu:
1306 case RISCVVector::BI__builtin_rvv_vfwmsac_vv_rm_mu:
1307 case RISCVVector::BI__builtin_rvv_vfwmsac_vf_rm_mu:
1308 case RISCVVector::BI__builtin_rvv_vfwnmsac_vv_rm_mu:
1309 case RISCVVector::BI__builtin_rvv_vfwnmsac_vf_rm_mu:
1311 case RISCV::BI__builtin_riscv_ntl_load:
1312 case RISCV::BI__builtin_riscv_ntl_store:
1315 assert((BuiltinID == RISCV::BI__builtin_riscv_ntl_store ||
1316 BuiltinID == RISCV::BI__builtin_riscv_ntl_load) &&
1317 "Unexpected RISC-V nontemporal load/store builtin!");
1318 bool IsStore = BuiltinID == RISCV::BI__builtin_riscv_ntl_store;
1319 unsigned NumArgs = IsStore ? 3 : 2;
1339 PointerArg = PointerArgResult.
get();
1343 Diag(DRE->
getBeginLoc(), diag::err_nontemporal_builtin_must_be_pointer)
1354 diag::err_nontemporal_builtin_must_be_pointer_intfltptr_or_vector)
1366 Context, ValType,
false);
1381 const llvm::StringMap<bool> &FeatureMap) {
1385 unsigned MinElts = Info.
EC.getKnownMinValue();
1388 !FeatureMap.lookup(
"zve64d"))
1389 Diag(
Loc, diag::err_riscv_type_requires_extension,
D) << Ty <<
"zve64d";
1394 !FeatureMap.lookup(
"zve64x"))
1395 Diag(
Loc, diag::err_riscv_type_requires_extension,
D) << Ty <<
"zve64x";
1397 !FeatureMap.lookup(
"zvfhmin"))
1398 Diag(
Loc, diag::err_riscv_type_requires_extension,
D)
1399 << Ty <<
"zvfh or zvfhmin";
1401 Diag(
Loc, diag::err_riscv_type_requires_extension,
D) << Ty <<
"zvfbfmin";
1403 !FeatureMap.lookup(
"zve32f"))
1404 Diag(
Loc, diag::err_riscv_type_requires_extension,
D) << Ty <<
"zve32f";
1407 else if (!FeatureMap.lookup(
"zve32x"))
1408 Diag(
Loc, diag::err_riscv_type_requires_extension,
D) << Ty <<
"zve32x";
1420 auto ValidScalableConversion = [](
QualType FirstType,
QualType SecondType) {
1424 const auto *VecTy = SecondType->getAs<
VectorType>();
1428 return ValidScalableConversion(srcTy, destTy) ||
1429 ValidScalableConversion(destTy, srcTy);
1434 if (
const auto *A =
D->
getAttr<RISCVInterruptAttr>()) {
1436 diag::warn_riscv_repeated_interrupt_attribute);
1437 Diag(A->getLocation(), diag::note_riscv_repeated_interrupt_attribute);
1479 RISCVInterruptAttr::InterruptType Kind;
1480 if (!RISCVInterruptAttr::ConvertStrToInterruptType(Str, Kind)) {
1481 Diag(AL.
getLoc(), diag::warn_attribute_type_not_supported)
1482 << AL << Str << ArgLoc;
Defines the clang::ASTContext interface.
Defines enum values for all the target-independent builtin functions.
llvm::MachO::Record Record
Defines the clang::Preprocessor interface.
static const RVVIntrinsicRecord RVSiFiveVectorIntrinsicRecords[]
static const RVVIntrinsicRecord RVVIntrinsicRecords[]
static const PrototypeDescriptor RVSiFiveVectorSignatureTable[]
static QualType RVVType2Qual(ASTContext &Context, const RVVType *Type)
static ArrayRef< PrototypeDescriptor > ProtoSeq2ArrayRef(IntrinsicKind K, uint16_t Index, uint8_t Length)
static const PrototypeDescriptor RVVSignatureTable[]
This file declares semantic analysis functions specific to RISC-V.
Enumerates target-specific builtins in their own namespaces within namespace clang.
Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...
BuiltinVectorTypeInfo getBuiltinVectorTypeInfo(const BuiltinType *VecTy) const
Returns the element type, element count and number of vectors (in case of tuple) for a builtin vector...
TranslationUnitDecl * getTranslationUnitDecl() const
QualType getScalableVectorType(QualType EltTy, unsigned NumElts, unsigned NumFields=1) const
Return the unique reference to a scalable vector type of the specified element type and scalable numb...
CallingConv getDefaultCallingConvention(bool IsVariadic, bool IsCXXMethod, bool IsBuiltin=false) const
Retrieves the default calling convention for the current target.
QualType getPointerType(QualType T) const
Return the uniqued reference to the type for a pointer to the specified type.
QualType getConstType(QualType T) const
Return the uniqued reference to the type for a const qualified type.
QualType getPointerDiffType() const
Return the unique type for "ptrdiff_t" (C99 7.17) defined in <stddef.h>.
QualType getIntTypeForBitwidth(unsigned DestWidth, unsigned Signed) const
getIntTypeForBitwidth - sets integer QualTy according to specified details: bitwidth,...
CanQualType UnsignedLongTy
CanQualType getSizeType() const
Return the unique type for "size_t" (C99 7.17), defined in <stddef.h>.
uint64_t getTypeSize(QualType T) const
Return the size of the specified (complete) type T, in bits.
QualType getFunctionType(QualType ResultTy, ArrayRef< QualType > Args, const FunctionProtoType::ExtProtoInfo &EPI) const
Return a normal function type with a typed argument list.
const TargetInfo & getTargetInfo() const
SourceRange getRange() const
bool isRegularKeywordAttribute() const
SourceLocation getLoc() const
This class is used for builtin types like 'int'.
CallExpr - Represents a function call (C99 6.5.2.2, C++ [expr.call]).
Expr * getArg(unsigned Arg)
getArg - Return the specified argument.
void setArg(unsigned Arg, Expr *ArgExpr)
setArg - Set the specified argument.
SourceLocation getBeginLoc() const LLVM_READONLY
unsigned getNumArgs() const
getNumArgs - Return the number of actual arguments to this call.
DeclContext - This is used only as base class of specific decl types that can act as declaration cont...
A reference to a declared variable, function, enum, etc.
SourceLocation getBeginLoc() const LLVM_READONLY
Decl - This represents one declaration (or definition), e.g.
const FunctionType * getFunctionType(bool BlocksToo=true) const
Looks through the Decl's underlying type to extract a FunctionType when possible.
SourceLocation getLocation() const
This represents one expression.
Expr * IgnoreParenCasts() LLVM_READONLY
Skip past any parentheses and casts which might surround this expression until reaching a fixed point...
bool isValueDependent() const
Determines whether the value of this expression depends on.
bool isTypeDependent() const
Determines whether the type of this expression depends on.
bool isFPConstrained() const
Represents a function declaration or definition.
static FunctionDecl * Create(ASTContext &C, DeclContext *DC, SourceLocation StartLoc, SourceLocation NLoc, DeclarationName N, QualType T, TypeSourceInfo *TInfo, StorageClass SC, bool UsesFPIntrin=false, bool isInlineSpecified=false, bool hasWrittenPrototype=true, ConstexprSpecKind ConstexprKind=ConstexprSpecKind::Unspecified, Expr *TrailingRequiresClause=nullptr)
One of these records is kept for each identifier that is lexed.
StringRef getName() const
Return the actual identifier string.
IdentifierInfo & get(StringRef Name)
Return the identifier token info for the specified named identifier.
Describes an entity that is being initialized.
static InitializedEntity InitializeParameter(ASTContext &Context, ParmVarDecl *Parm)
Create the initialization entity for a parameter.
Represents the results of name lookup.
void addDecl(NamedDecl *D)
Add a declaration to these results with its natural access.
void resolveKind()
Resolves the result kind of the lookup, possibly hiding decls.
SourceLocation getNameLoc() const
Gets the location of the identifier.
Represents a parameter to a function.
void setScopeInfo(unsigned scopeDepth, unsigned parameterIndex)
static ParmVarDecl * Create(ASTContext &C, DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, const IdentifierInfo *Id, QualType T, TypeSourceInfo *TInfo, StorageClass S, Expr *DefArg)
ParsedAttr - Represents a syntactic attribute.
unsigned getNumArgs() const
getNumArgs - Return the number of actual arguments to this attribute.
bool checkAtMostNumArgs(class Sema &S, unsigned Num) const
Check if the attribute has at most as many args as Num.
PointerType - C99 6.7.5.1 - Pointer Declarators.
QualType getPointeeType() const
Engages in a tight little dance with the lexer to efficiently preprocess tokens.
IdentifierTable & getIdentifierTable()
A (possibly-)qualified type.
const Type * getTypePtr() const
Retrieves a pointer to the underlying (unqualified) type.
QualType getCanonicalType() const
QualType getUnqualifiedType() const
Retrieve the unqualified variant of the given type, removing as little sugar as possible.
static llvm::SmallVector< Policy > getSupportedMaskedPolicies(bool HasTailPolicy, bool HasMaskPolicy)
static llvm::SmallVector< PrototypeDescriptor > computeBuiltinTypes(llvm::ArrayRef< PrototypeDescriptor > Prototype, bool IsMasked, bool HasMaskedOffOperand, bool HasVL, unsigned NF, PolicyScheme DefaultScheme, Policy PolicyAttrs, bool IsTuple)
static void updateNamesAndPolicy(bool IsMasked, bool HasPolicy, std::string &Name, std::string &BuiltinName, std::string &OverloadedName, Policy &PolicyAttrs, bool HasFRMRoundModeOp)
static std::string getSuffixStr(RVVTypeCache &TypeCache, BasicType Type, int Log2LMUL, llvm::ArrayRef< PrototypeDescriptor > PrototypeDescriptors)
static llvm::SmallVector< Policy > getSupportedUnMaskedPolicies()
SemaDiagnosticBuilder Diag(SourceLocation Loc, unsigned DiagID, bool DeferHint=false)
Emit a diagnostic.
ASTContext & getASTContext() const
bool CheckBuiltinFunctionCall(const TargetInfo &TI, unsigned BuiltinID, CallExpr *TheCall)
bool CheckLMUL(CallExpr *TheCall, unsigned ArgNum)
bool isAliasValid(unsigned BuiltinID, llvm::StringRef AliasName)
bool DeclareSiFiveVectorBuiltins
Indicate RISC-V SiFive vector builtin functions enabled or not.
void checkRVVTypeSupport(QualType Ty, SourceLocation Loc, Decl *D, const llvm::StringMap< bool > &FeatureMap)
bool isValidRVVBitcast(QualType srcType, QualType destType)
Are the two types RVV-bitcast-compatible types? I.e.
void handleInterruptAttr(Decl *D, const ParsedAttr &AL)
bool DeclareRVVBuiltins
Indicate RISC-V vector builtin functions enabled or not.
Sema - This implements semantic analysis and AST building for C.
bool checkArgCountAtMost(CallExpr *Call, unsigned MaxArgCount)
Checks that a call expression's argument count is at most the desired number.
ExprResult DefaultFunctionArrayLvalueConversion(Expr *E, bool Diagnose=true)
FPOptions & getCurFPFeatures()
bool checkArgCountAtLeast(CallExpr *Call, unsigned MinArgCount)
Checks that a call expression's argument count is at least the desired number.
bool BuiltinConstantArg(CallExpr *TheCall, int ArgNum, llvm::APSInt &Result)
BuiltinConstantArg - Handle a check if argument ArgNum of CallExpr TheCall is a constant expression.
ExprResult PerformCopyInitialization(const InitializedEntity &Entity, SourceLocation EqualLoc, ExprResult Init, bool TopLevelOfInitList=false, bool AllowExplicit=false)
bool BuiltinConstantArgRange(CallExpr *TheCall, int ArgNum, int Low, int High, bool RangeIsError=true)
BuiltinConstantArgRange - Handle a check if argument ArgNum of CallExpr TheCall is a constant express...
bool checkStringLiteralArgumentAttr(const AttributeCommonInfo &CI, const Expr *E, StringRef &Str, SourceLocation *ArgLocation=nullptr)
Check if the argument E is a ASCII string literal.
Encodes a location in the source.
SourceLocation getBegin() const
SourceRange getSourceRange() const LLVM_READONLY
SourceLocation tokens are not useful in isolation - they are low level value objects created/interpre...
Exposes information about the current target.
virtual bool hasFeature(StringRef Feature) const
Determine whether the given target has the given feature.
The base class of the type hierarchy.
bool isBlockPointerType() const
bool isFloat16Type() const
bool isIntegerType() const
isIntegerType() does not include complex integers (a GCC extension).
const T * castAs() const
Member-template castAs<specific type>.
bool isSpecificBuiltinType(unsigned K) const
Test for a particular builtin type.
bool isBFloat16Type() const
bool isVectorType() const
bool isRVVSizelessBuiltinType() const
Returns true for RVV scalable vector types.
bool isFloatingType() const
bool isAnyPointerType() const
const T * getAs() const
Member-template getAs<specific type>'.
Represents a GCC generic vector type.
VectorKind getVectorKind() const
virtual bool CreateIntrinsicIfFound(LookupResult &LR, IdentifierInfo *II, Preprocessor &PP)=0
virtual void InitIntrinsicList()=0
Defines the clang::TargetInfo interface.
@ RVV_REQ_Xsfvfnrclipxfqf
std::vector< RVVTypePtr > RVVTypes
The JSON file list parser is used to communicate input to InstallAPI.
QualType getFunctionOrMethodResultType(const Decl *D)
std::unique_ptr< sema::RISCVIntrinsicManager > CreateRISCVIntrinsicManager(Sema &S)
@ Result
The result type of a method or function.
static bool CheckInvalidVLENandLMUL(const TargetInfo &TI, CallExpr *TheCall, Sema &S, QualType Type, int EGW)
bool hasFunctionProto(const Decl *D)
hasFunctionProto - Return true if the given decl has a argument information.
unsigned getFunctionOrMethodNumParams(const Decl *D)
getFunctionOrMethodNumParams - Return number of function or method parameters.
@ RVVFixedLengthData
is RISC-V RVV fixed-length data vector
Diagnostic wrappers for TextAPI types for error reporting.
Extra information about a function prototype.