27#include "llvm/ADT/SmallVector.h"
28#include "llvm/TargetParser/RISCVISAInfo.h"
29#include "llvm/TargetParser/RISCVTargetParser.h"
43struct RVVIntrinsicDef {
45 std::string BuiltinName;
51struct RVVOverloadIntrinsicDef {
59#define DECL_SIGNATURE_TABLE
60#include "clang/Basic/riscv_vector_builtin_sema.inc"
61#undef DECL_SIGNATURE_TABLE
65#define DECL_SIGNATURE_TABLE
66#include "clang/Basic/riscv_sifive_vector_builtin_sema.inc"
67#undef DECL_SIGNATURE_TABLE
71#define DECL_INTRINSIC_RECORDS
72#include "clang/Basic/riscv_vector_builtin_sema.inc"
73#undef DECL_INTRINSIC_RECORDS
77#define DECL_INTRINSIC_RECORDS
78#include "clang/Basic/riscv_sifive_vector_builtin_sema.inc"
79#undef DECL_INTRINSIC_RECORDS
86 case IntrinsicKind::RVV:
88 case IntrinsicKind::SIFIVE_VECTOR:
91 llvm_unreachable(
"Unhandled IntrinsicKind");
96 switch (
Type->getScalarType()) {
97 case ScalarTypeKind::Void:
100 case ScalarTypeKind::Size_t:
103 case ScalarTypeKind::Ptrdiff_t:
106 case ScalarTypeKind::UnsignedLong:
109 case ScalarTypeKind::SignedLong:
112 case ScalarTypeKind::Boolean:
115 case ScalarTypeKind::SignedInteger:
118 case ScalarTypeKind::UnsignedInteger:
121 case ScalarTypeKind::BFloat:
124 case ScalarTypeKind::Float:
125 switch (
Type->getElementBitwidth()) {
136 llvm_unreachable(
"Unsupported floating point width.");
141 llvm_unreachable(
"Unhandled type.");
143 if (
Type->isVector()) {
150 if (
Type->isConstant())
154 if (
Type->isPointer())
166 bool ConstructedRISCVVBuiltins;
167 bool ConstructedRISCVSiFiveVectorBuiltins;
170 std::vector<RVVIntrinsicDef> IntrinsicList;
172 StringMap<uint32_t> Intrinsics;
174 StringMap<RVVOverloadIntrinsicDef> OverloadIntrinsics;
178 StringRef OverloadedSuffixStr,
bool IsMask,
190 RISCVIntrinsicManagerImpl(
clang::Sema &S) : S(S), Context(S.Context) {
191 ConstructedRISCVVBuiltins =
false;
192 ConstructedRISCVSiFiveVectorBuiltins =
false;
205void RISCVIntrinsicManagerImpl::ConstructRVVIntrinsics(
208 static const std::pair<const char *, RVVRequire> FeatureCheckList[] = {
231 for (
auto &
Record : Recs) {
233 if (llvm::any_of(FeatureCheckList, [&](
const auto &Item) {
234 return (
Record.RequiredExtensions & Item.second) == Item.second &&
246 K,
Record.OverloadedSuffixIndex,
Record.OverloadedSuffixSize);
253 const Policy DefaultPolicy;
257 BasicProtoSeq,
false,
259 UnMaskedPolicyScheme, DefaultPolicy,
Record.IsTuple);
264 BasicProtoSeq,
true,
Record.HasMaskedOffOperand,
265 Record.HasVL,
Record.NF, MaskedPolicyScheme, DefaultPolicy,
268 bool UnMaskedHasPolicy = UnMaskedPolicyScheme != PolicyScheme::SchemeNone;
269 bool MaskedHasPolicy = MaskedPolicyScheme != PolicyScheme::SchemeNone;
276 for (
unsigned int TypeRangeMaskShift = 0;
277 TypeRangeMaskShift <= static_cast<unsigned int>(BasicType::MaxOffset);
278 ++TypeRangeMaskShift) {
279 unsigned int BaseTypeI = 1 << TypeRangeMaskShift;
280 BaseType =
static_cast<BasicType>(BaseTypeI);
282 if ((BaseTypeI &
Record.TypeRangeMask) != BaseTypeI)
286 for (
int Log2LMUL = -3; Log2LMUL <= 3; Log2LMUL++) {
287 if (!(
Record.Log2LMULMask & (1 << (Log2LMUL + 3))))
290 std::optional<RVVTypes> Types =
291 TypeCache.computeTypes(BaseType, Log2LMUL,
Record.NF, ProtoSeq);
294 if (!Types.has_value())
298 TypeCache, BaseType, Log2LMUL, SuffixProto);
300 TypeCache, BaseType, Log2LMUL, OverloadedSuffixProto);
303 InitRVVIntrinsic(
Record, SuffixStr, OverloadedSuffixStr,
false, *Types,
304 UnMaskedHasPolicy, DefaultPolicy);
307 if (
Record.UnMaskedPolicyScheme != PolicyScheme::SchemeNone) {
308 for (
auto P : SupportedUnMaskedPolicies) {
311 BasicProtoSeq,
false,
313 UnMaskedPolicyScheme,
P,
Record.IsTuple);
314 std::optional<RVVTypes> PolicyTypes = TypeCache.computeTypes(
315 BaseType, Log2LMUL,
Record.NF, PolicyPrototype);
316 InitRVVIntrinsic(
Record, SuffixStr, OverloadedSuffixStr,
317 false, *PolicyTypes, UnMaskedHasPolicy,
324 std::optional<RVVTypes> MaskTypes =
325 TypeCache.computeTypes(BaseType, Log2LMUL,
Record.NF, ProtoMaskSeq);
326 InitRVVIntrinsic(
Record, SuffixStr, OverloadedSuffixStr,
true,
327 *MaskTypes, MaskedHasPolicy, DefaultPolicy);
328 if (
Record.MaskedPolicyScheme == PolicyScheme::SchemeNone)
331 for (
auto P : SupportedMaskedPolicies) {
334 BasicProtoSeq,
true,
Record.HasMaskedOffOperand,
337 std::optional<RVVTypes> PolicyTypes = TypeCache.computeTypes(
338 BaseType, Log2LMUL,
Record.NF, PolicyPrototype);
339 InitRVVIntrinsic(
Record, SuffixStr, OverloadedSuffixStr,
340 true, *PolicyTypes, MaskedHasPolicy,
P);
347void RISCVIntrinsicManagerImpl::InitIntrinsicList() {
350 ConstructedRISCVVBuiltins =
true;
354 !ConstructedRISCVSiFiveVectorBuiltins) {
355 ConstructedRISCVSiFiveVectorBuiltins =
true;
357 IntrinsicKind::SIFIVE_VECTOR);
362void RISCVIntrinsicManagerImpl::InitRVVIntrinsic(
364 StringRef OverloadedSuffixStr,
bool IsMasked,
RVVTypes &Signature,
365 bool HasPolicy,
Policy PolicyAttrs) {
367 std::string Name =
Record.Name;
368 if (!SuffixStr.empty())
369 Name +=
"_" + SuffixStr.str();
372 std::string OverloadedName;
373 if (!
Record.OverloadedName)
374 OverloadedName = StringRef(
Record.Name).split(
"_").first.str();
376 OverloadedName =
Record.OverloadedName;
377 if (!OverloadedSuffixStr.empty())
378 OverloadedName +=
"_" + OverloadedSuffixStr.str();
381 std::string BuiltinName = std::string(
Record.Name);
384 OverloadedName, PolicyAttrs,
385 Record.HasFRMRoundModeOp);
388 uint32_t Index = IntrinsicList.size();
389 assert(IntrinsicList.size() == (
size_t)Index &&
390 "Intrinsics indices overflow.");
391 IntrinsicList.push_back({BuiltinName, Signature});
394 Intrinsics.insert({Name, Index});
397 RVVOverloadIntrinsicDef &OverloadIntrinsicDef =
398 OverloadIntrinsics[OverloadedName];
401 OverloadIntrinsicDef.Indexes.push_back(Index);
404void RISCVIntrinsicManagerImpl::CreateRVVIntrinsicDecl(
LookupResult &LR,
410 RVVIntrinsicDef &IDef = IntrinsicList[Index];
412 size_t SigLength = Sigs.size();
419 for (
size_t i = 1; i < SigLength; ++i)
432 Context,
Parent,
Loc,
Loc, II, BuiltinFuncType,
nullptr,
439 const auto *FP = cast<FunctionProtoType>(BuiltinFuncType);
441 for (
unsigned IParm = 0,
E = FP->getNumParams(); IParm !=
E; ++IParm) {
444 FP->getParamType(IParm),
nullptr,
SC_None,
nullptr);
446 ParmList.push_back(Parm);
448 RVVIntrinsicDecl->setParams(ParmList);
452 RVVIntrinsicDecl->
addAttr(OverloadableAttr::CreateImplicit(Context));
458 BuiltinAliasAttr::CreateImplicit(S.
Context, &IntrinsicII));
464bool RISCVIntrinsicManagerImpl::CreateIntrinsicIfFound(
LookupResult &LR,
467 StringRef Name = II->
getName();
468 if (!Name.consume_front(
"__riscv_"))
472 auto OvIItr = OverloadIntrinsics.find(Name);
473 if (OvIItr != OverloadIntrinsics.end()) {
474 const RVVOverloadIntrinsicDef &OvIntrinsicDef = OvIItr->second;
475 for (
auto Index : OvIntrinsicDef.Indexes)
476 CreateRVVIntrinsicDecl(LR, II, PP, Index,
485 auto Itr = Intrinsics.find(Name);
486 if (Itr != Intrinsics.end()) {
487 CreateRVVIntrinsicDecl(LR, II, PP, Itr->second,
497std::unique_ptr<clang::sema::RISCVIntrinsicManager>
499 return std::make_unique<RISCVIntrinsicManagerImpl>(S);
514 int64_t Val =
Result.getSExtValue();
515 if ((Val >= 0 && Val <= 3) || (Val >= 5 && Val <= 7))
518 return Diag(TheCall->
getBeginLoc(), diag::err_riscv_builtin_invalid_lmul)
524 assert((EGW == 128 || EGW == 256) &&
"EGW can only be 128 or 256 bits");
530 unsigned MinElemCount = Info.
EC.getKnownMinValue();
532 unsigned EGS = EGW / ElemSize;
535 if (EGS <= MinElemCount)
539 assert(EGS % MinElemCount == 0);
540 unsigned VScaleFactor = EGS / MinElemCount;
542 unsigned MinRequiredVLEN = VScaleFactor * llvm::RISCV::RVVBitsPerBlock;
543 std::string RequiredExt =
"zvl" + std::to_string(MinRequiredVLEN) +
"b";
546 diag::err_riscv_type_requires_extension)
547 <<
Type << RequiredExt;
561 case RISCVVector::BI__builtin_rvv_vmulhsu_vv:
562 case RISCVVector::BI__builtin_rvv_vmulhsu_vx:
563 case RISCVVector::BI__builtin_rvv_vmulhsu_vv_tu:
564 case RISCVVector::BI__builtin_rvv_vmulhsu_vx_tu:
565 case RISCVVector::BI__builtin_rvv_vmulhsu_vv_m:
566 case RISCVVector::BI__builtin_rvv_vmulhsu_vx_m:
567 case RISCVVector::BI__builtin_rvv_vmulhsu_vv_mu:
568 case RISCVVector::BI__builtin_rvv_vmulhsu_vx_mu:
569 case RISCVVector::BI__builtin_rvv_vmulhsu_vv_tum:
570 case RISCVVector::BI__builtin_rvv_vmulhsu_vx_tum:
571 case RISCVVector::BI__builtin_rvv_vmulhsu_vv_tumu:
572 case RISCVVector::BI__builtin_rvv_vmulhsu_vx_tumu:
573 case RISCVVector::BI__builtin_rvv_vmulhu_vv:
574 case RISCVVector::BI__builtin_rvv_vmulhu_vx:
575 case RISCVVector::BI__builtin_rvv_vmulhu_vv_tu:
576 case RISCVVector::BI__builtin_rvv_vmulhu_vx_tu:
577 case RISCVVector::BI__builtin_rvv_vmulhu_vv_m:
578 case RISCVVector::BI__builtin_rvv_vmulhu_vx_m:
579 case RISCVVector::BI__builtin_rvv_vmulhu_vv_mu:
580 case RISCVVector::BI__builtin_rvv_vmulhu_vx_mu:
581 case RISCVVector::BI__builtin_rvv_vmulhu_vv_tum:
582 case RISCVVector::BI__builtin_rvv_vmulhu_vx_tum:
583 case RISCVVector::BI__builtin_rvv_vmulhu_vv_tumu:
584 case RISCVVector::BI__builtin_rvv_vmulhu_vx_tumu:
585 case RISCVVector::BI__builtin_rvv_vmulh_vv:
586 case RISCVVector::BI__builtin_rvv_vmulh_vx:
587 case RISCVVector::BI__builtin_rvv_vmulh_vv_tu:
588 case RISCVVector::BI__builtin_rvv_vmulh_vx_tu:
589 case RISCVVector::BI__builtin_rvv_vmulh_vv_m:
590 case RISCVVector::BI__builtin_rvv_vmulh_vx_m:
591 case RISCVVector::BI__builtin_rvv_vmulh_vv_mu:
592 case RISCVVector::BI__builtin_rvv_vmulh_vx_mu:
593 case RISCVVector::BI__builtin_rvv_vmulh_vv_tum:
594 case RISCVVector::BI__builtin_rvv_vmulh_vx_tum:
595 case RISCVVector::BI__builtin_rvv_vmulh_vv_tumu:
596 case RISCVVector::BI__builtin_rvv_vmulh_vx_tumu:
597 case RISCVVector::BI__builtin_rvv_vsmul_vv:
598 case RISCVVector::BI__builtin_rvv_vsmul_vx:
599 case RISCVVector::BI__builtin_rvv_vsmul_vv_tu:
600 case RISCVVector::BI__builtin_rvv_vsmul_vx_tu:
601 case RISCVVector::BI__builtin_rvv_vsmul_vv_m:
602 case RISCVVector::BI__builtin_rvv_vsmul_vx_m:
603 case RISCVVector::BI__builtin_rvv_vsmul_vv_mu:
604 case RISCVVector::BI__builtin_rvv_vsmul_vx_mu:
605 case RISCVVector::BI__builtin_rvv_vsmul_vv_tum:
606 case RISCVVector::BI__builtin_rvv_vsmul_vx_tum:
607 case RISCVVector::BI__builtin_rvv_vsmul_vv_tumu:
608 case RISCVVector::BI__builtin_rvv_vsmul_vx_tumu: {
613 llvm::StringMap<bool> FunctionFeatureMap;
617 !FunctionFeatureMap.lookup(
"v"))
619 diag::err_riscv_builtin_requires_extension)
627 case RISCVVector::BI__builtin_rvv_vsetvli:
630 case RISCVVector::BI__builtin_rvv_vsetvlimax:
633 case RISCVVector::BI__builtin_rvv_vget_v: {
644 MaxIndex = (VecInfo.
EC.getKnownMinValue() * VecInfo.
NumVectors) /
645 (ResVecInfo.
EC.getKnownMinValue() * ResVecInfo.
NumVectors);
648 case RISCVVector::BI__builtin_rvv_vset_v: {
659 MaxIndex = (ResVecInfo.
EC.getKnownMinValue() * ResVecInfo.
NumVectors) /
664 case RISCVVector::BI__builtin_rvv_vaeskf1_vi_tu:
665 case RISCVVector::BI__builtin_rvv_vaeskf2_vi_tu:
666 case RISCVVector::BI__builtin_rvv_vaeskf2_vi:
667 case RISCVVector::BI__builtin_rvv_vsm4k_vi_tu: {
674 case RISCVVector::BI__builtin_rvv_vsm3c_vi_tu:
675 case RISCVVector::BI__builtin_rvv_vsm3c_vi: {
680 case RISCVVector::BI__builtin_rvv_vaeskf1_vi:
681 case RISCVVector::BI__builtin_rvv_vsm4k_vi: {
686 case RISCVVector::BI__builtin_rvv_vaesdf_vv:
687 case RISCVVector::BI__builtin_rvv_vaesdf_vs:
688 case RISCVVector::BI__builtin_rvv_vaesdm_vv:
689 case RISCVVector::BI__builtin_rvv_vaesdm_vs:
690 case RISCVVector::BI__builtin_rvv_vaesef_vv:
691 case RISCVVector::BI__builtin_rvv_vaesef_vs:
692 case RISCVVector::BI__builtin_rvv_vaesem_vv:
693 case RISCVVector::BI__builtin_rvv_vaesem_vs:
694 case RISCVVector::BI__builtin_rvv_vaesz_vs:
695 case RISCVVector::BI__builtin_rvv_vsm4r_vv:
696 case RISCVVector::BI__builtin_rvv_vsm4r_vs:
697 case RISCVVector::BI__builtin_rvv_vaesdf_vv_tu:
698 case RISCVVector::BI__builtin_rvv_vaesdf_vs_tu:
699 case RISCVVector::BI__builtin_rvv_vaesdm_vv_tu:
700 case RISCVVector::BI__builtin_rvv_vaesdm_vs_tu:
701 case RISCVVector::BI__builtin_rvv_vaesef_vv_tu:
702 case RISCVVector::BI__builtin_rvv_vaesef_vs_tu:
703 case RISCVVector::BI__builtin_rvv_vaesem_vv_tu:
704 case RISCVVector::BI__builtin_rvv_vaesem_vs_tu:
705 case RISCVVector::BI__builtin_rvv_vaesz_vs_tu:
706 case RISCVVector::BI__builtin_rvv_vsm4r_vv_tu:
707 case RISCVVector::BI__builtin_rvv_vsm4r_vs_tu: {
713 case RISCVVector::BI__builtin_rvv_vsha2ch_vv:
714 case RISCVVector::BI__builtin_rvv_vsha2cl_vv:
715 case RISCVVector::BI__builtin_rvv_vsha2ms_vv:
716 case RISCVVector::BI__builtin_rvv_vsha2ch_vv_tu:
717 case RISCVVector::BI__builtin_rvv_vsha2cl_vv_tu:
718 case RISCVVector::BI__builtin_rvv_vsha2ms_vv_tu: {
725 if (ElemSize == 64 && !TI.
hasFeature(
"zvknhb"))
727 diag::err_riscv_builtin_requires_extension)
737 case RISCVVector::BI__builtin_rvv_sf_vc_i_se:
744 case RISCVVector::BI__builtin_rvv_sf_vc_iv_se:
749 case RISCVVector::BI__builtin_rvv_sf_vc_v_i:
750 case RISCVVector::BI__builtin_rvv_sf_vc_v_i_se:
755 case RISCVVector::BI__builtin_rvv_sf_vc_v_iv:
756 case RISCVVector::BI__builtin_rvv_sf_vc_v_iv_se:
760 case RISCVVector::BI__builtin_rvv_sf_vc_ivv_se:
761 case RISCVVector::BI__builtin_rvv_sf_vc_ivw_se:
762 case RISCVVector::BI__builtin_rvv_sf_vc_v_ivv:
763 case RISCVVector::BI__builtin_rvv_sf_vc_v_ivw:
764 case RISCVVector::BI__builtin_rvv_sf_vc_v_ivv_se:
765 case RISCVVector::BI__builtin_rvv_sf_vc_v_ivw_se:
769 case RISCVVector::BI__builtin_rvv_sf_vc_x_se:
775 case RISCVVector::BI__builtin_rvv_sf_vc_xv_se:
776 case RISCVVector::BI__builtin_rvv_sf_vc_vv_se:
778 case RISCVVector::BI__builtin_rvv_sf_vc_v_x:
779 case RISCVVector::BI__builtin_rvv_sf_vc_v_x_se:
783 case RISCVVector::BI__builtin_rvv_sf_vc_vvv_se:
784 case RISCVVector::BI__builtin_rvv_sf_vc_xvv_se:
785 case RISCVVector::BI__builtin_rvv_sf_vc_vvw_se:
786 case RISCVVector::BI__builtin_rvv_sf_vc_xvw_se:
788 case RISCVVector::BI__builtin_rvv_sf_vc_v_xv:
789 case RISCVVector::BI__builtin_rvv_sf_vc_v_vv:
790 case RISCVVector::BI__builtin_rvv_sf_vc_v_xv_se:
791 case RISCVVector::BI__builtin_rvv_sf_vc_v_vv_se:
793 case RISCVVector::BI__builtin_rvv_sf_vc_v_xvv:
794 case RISCVVector::BI__builtin_rvv_sf_vc_v_vvv:
795 case RISCVVector::BI__builtin_rvv_sf_vc_v_xvw:
796 case RISCVVector::BI__builtin_rvv_sf_vc_v_vvw:
797 case RISCVVector::BI__builtin_rvv_sf_vc_v_xvv_se:
798 case RISCVVector::BI__builtin_rvv_sf_vc_v_vvv_se:
799 case RISCVVector::BI__builtin_rvv_sf_vc_v_xvw_se:
800 case RISCVVector::BI__builtin_rvv_sf_vc_v_vvw_se:
803 case RISCVVector::BI__builtin_rvv_sf_vc_fv_se:
807 case RISCVVector::BI__builtin_rvv_sf_vc_fvv_se:
808 case RISCVVector::BI__builtin_rvv_sf_vc_fvw_se:
809 case RISCVVector::BI__builtin_rvv_sf_vc_v_fvv:
810 case RISCVVector::BI__builtin_rvv_sf_vc_v_fvw:
811 case RISCVVector::BI__builtin_rvv_sf_vc_v_fvv_se:
812 case RISCVVector::BI__builtin_rvv_sf_vc_v_fvw_se:
814 case RISCVVector::BI__builtin_rvv_sf_vc_v_fv:
815 case RISCVVector::BI__builtin_rvv_sf_vc_v_fv_se:
819 case RISCV::BI__builtin_riscv_aes32dsi:
820 case RISCV::BI__builtin_riscv_aes32dsmi:
821 case RISCV::BI__builtin_riscv_aes32esi:
822 case RISCV::BI__builtin_riscv_aes32esmi:
823 case RISCV::BI__builtin_riscv_sm4ks:
824 case RISCV::BI__builtin_riscv_sm4ed:
827 case RISCV::BI__builtin_riscv_aes64ks1i:
830 case RISCVVector::BI__builtin_rvv_vaaddu_vv:
831 case RISCVVector::BI__builtin_rvv_vaaddu_vx:
832 case RISCVVector::BI__builtin_rvv_vaadd_vv:
833 case RISCVVector::BI__builtin_rvv_vaadd_vx:
834 case RISCVVector::BI__builtin_rvv_vasubu_vv:
835 case RISCVVector::BI__builtin_rvv_vasubu_vx:
836 case RISCVVector::BI__builtin_rvv_vasub_vv:
837 case RISCVVector::BI__builtin_rvv_vasub_vx:
838 case RISCVVector::BI__builtin_rvv_vsmul_vv:
839 case RISCVVector::BI__builtin_rvv_vsmul_vx:
840 case RISCVVector::BI__builtin_rvv_vssra_vv:
841 case RISCVVector::BI__builtin_rvv_vssra_vx:
842 case RISCVVector::BI__builtin_rvv_vssrl_vv:
843 case RISCVVector::BI__builtin_rvv_vssrl_vx:
844 case RISCVVector::BI__builtin_rvv_vnclip_wv:
845 case RISCVVector::BI__builtin_rvv_vnclip_wx:
846 case RISCVVector::BI__builtin_rvv_vnclipu_wv:
847 case RISCVVector::BI__builtin_rvv_vnclipu_wx:
849 case RISCVVector::BI__builtin_rvv_vaaddu_vv_tu:
850 case RISCVVector::BI__builtin_rvv_vaaddu_vx_tu:
851 case RISCVVector::BI__builtin_rvv_vaadd_vv_tu:
852 case RISCVVector::BI__builtin_rvv_vaadd_vx_tu:
853 case RISCVVector::BI__builtin_rvv_vasubu_vv_tu:
854 case RISCVVector::BI__builtin_rvv_vasubu_vx_tu:
855 case RISCVVector::BI__builtin_rvv_vasub_vv_tu:
856 case RISCVVector::BI__builtin_rvv_vasub_vx_tu:
857 case RISCVVector::BI__builtin_rvv_vsmul_vv_tu:
858 case RISCVVector::BI__builtin_rvv_vsmul_vx_tu:
859 case RISCVVector::BI__builtin_rvv_vssra_vv_tu:
860 case RISCVVector::BI__builtin_rvv_vssra_vx_tu:
861 case RISCVVector::BI__builtin_rvv_vssrl_vv_tu:
862 case RISCVVector::BI__builtin_rvv_vssrl_vx_tu:
863 case RISCVVector::BI__builtin_rvv_vnclip_wv_tu:
864 case RISCVVector::BI__builtin_rvv_vnclip_wx_tu:
865 case RISCVVector::BI__builtin_rvv_vnclipu_wv_tu:
866 case RISCVVector::BI__builtin_rvv_vnclipu_wx_tu:
867 case RISCVVector::BI__builtin_rvv_vaaddu_vv_m:
868 case RISCVVector::BI__builtin_rvv_vaaddu_vx_m:
869 case RISCVVector::BI__builtin_rvv_vaadd_vv_m:
870 case RISCVVector::BI__builtin_rvv_vaadd_vx_m:
871 case RISCVVector::BI__builtin_rvv_vasubu_vv_m:
872 case RISCVVector::BI__builtin_rvv_vasubu_vx_m:
873 case RISCVVector::BI__builtin_rvv_vasub_vv_m:
874 case RISCVVector::BI__builtin_rvv_vasub_vx_m:
875 case RISCVVector::BI__builtin_rvv_vsmul_vv_m:
876 case RISCVVector::BI__builtin_rvv_vsmul_vx_m:
877 case RISCVVector::BI__builtin_rvv_vssra_vv_m:
878 case RISCVVector::BI__builtin_rvv_vssra_vx_m:
879 case RISCVVector::BI__builtin_rvv_vssrl_vv_m:
880 case RISCVVector::BI__builtin_rvv_vssrl_vx_m:
881 case RISCVVector::BI__builtin_rvv_vnclip_wv_m:
882 case RISCVVector::BI__builtin_rvv_vnclip_wx_m:
883 case RISCVVector::BI__builtin_rvv_vnclipu_wv_m:
884 case RISCVVector::BI__builtin_rvv_vnclipu_wx_m:
886 case RISCVVector::BI__builtin_rvv_vaaddu_vv_tum:
887 case RISCVVector::BI__builtin_rvv_vaaddu_vv_tumu:
888 case RISCVVector::BI__builtin_rvv_vaaddu_vv_mu:
889 case RISCVVector::BI__builtin_rvv_vaaddu_vx_tum:
890 case RISCVVector::BI__builtin_rvv_vaaddu_vx_tumu:
891 case RISCVVector::BI__builtin_rvv_vaaddu_vx_mu:
892 case RISCVVector::BI__builtin_rvv_vaadd_vv_tum:
893 case RISCVVector::BI__builtin_rvv_vaadd_vv_tumu:
894 case RISCVVector::BI__builtin_rvv_vaadd_vv_mu:
895 case RISCVVector::BI__builtin_rvv_vaadd_vx_tum:
896 case RISCVVector::BI__builtin_rvv_vaadd_vx_tumu:
897 case RISCVVector::BI__builtin_rvv_vaadd_vx_mu:
898 case RISCVVector::BI__builtin_rvv_vasubu_vv_tum:
899 case RISCVVector::BI__builtin_rvv_vasubu_vv_tumu:
900 case RISCVVector::BI__builtin_rvv_vasubu_vv_mu:
901 case RISCVVector::BI__builtin_rvv_vasubu_vx_tum:
902 case RISCVVector::BI__builtin_rvv_vasubu_vx_tumu:
903 case RISCVVector::BI__builtin_rvv_vasubu_vx_mu:
904 case RISCVVector::BI__builtin_rvv_vasub_vv_tum:
905 case RISCVVector::BI__builtin_rvv_vasub_vv_tumu:
906 case RISCVVector::BI__builtin_rvv_vasub_vv_mu:
907 case RISCVVector::BI__builtin_rvv_vasub_vx_tum:
908 case RISCVVector::BI__builtin_rvv_vasub_vx_tumu:
909 case RISCVVector::BI__builtin_rvv_vasub_vx_mu:
910 case RISCVVector::BI__builtin_rvv_vsmul_vv_mu:
911 case RISCVVector::BI__builtin_rvv_vsmul_vx_mu:
912 case RISCVVector::BI__builtin_rvv_vssra_vv_mu:
913 case RISCVVector::BI__builtin_rvv_vssra_vx_mu:
914 case RISCVVector::BI__builtin_rvv_vssrl_vv_mu:
915 case RISCVVector::BI__builtin_rvv_vssrl_vx_mu:
916 case RISCVVector::BI__builtin_rvv_vnclip_wv_mu:
917 case RISCVVector::BI__builtin_rvv_vnclip_wx_mu:
918 case RISCVVector::BI__builtin_rvv_vnclipu_wv_mu:
919 case RISCVVector::BI__builtin_rvv_vnclipu_wx_mu:
920 case RISCVVector::BI__builtin_rvv_vsmul_vv_tum:
921 case RISCVVector::BI__builtin_rvv_vsmul_vx_tum:
922 case RISCVVector::BI__builtin_rvv_vssra_vv_tum:
923 case RISCVVector::BI__builtin_rvv_vssra_vx_tum:
924 case RISCVVector::BI__builtin_rvv_vssrl_vv_tum:
925 case RISCVVector::BI__builtin_rvv_vssrl_vx_tum:
926 case RISCVVector::BI__builtin_rvv_vnclip_wv_tum:
927 case RISCVVector::BI__builtin_rvv_vnclip_wx_tum:
928 case RISCVVector::BI__builtin_rvv_vnclipu_wv_tum:
929 case RISCVVector::BI__builtin_rvv_vnclipu_wx_tum:
930 case RISCVVector::BI__builtin_rvv_vsmul_vv_tumu:
931 case RISCVVector::BI__builtin_rvv_vsmul_vx_tumu:
932 case RISCVVector::BI__builtin_rvv_vssra_vv_tumu:
933 case RISCVVector::BI__builtin_rvv_vssra_vx_tumu:
934 case RISCVVector::BI__builtin_rvv_vssrl_vv_tumu:
935 case RISCVVector::BI__builtin_rvv_vssrl_vx_tumu:
936 case RISCVVector::BI__builtin_rvv_vnclip_wv_tumu:
937 case RISCVVector::BI__builtin_rvv_vnclip_wx_tumu:
938 case RISCVVector::BI__builtin_rvv_vnclipu_wv_tumu:
939 case RISCVVector::BI__builtin_rvv_vnclipu_wx_tumu:
941 case RISCVVector::BI__builtin_rvv_vfsqrt_v_rm:
942 case RISCVVector::BI__builtin_rvv_vfrec7_v_rm:
943 case RISCVVector::BI__builtin_rvv_vfcvt_x_f_v_rm:
944 case RISCVVector::BI__builtin_rvv_vfcvt_xu_f_v_rm:
945 case RISCVVector::BI__builtin_rvv_vfcvt_f_x_v_rm:
946 case RISCVVector::BI__builtin_rvv_vfcvt_f_xu_v_rm:
947 case RISCVVector::BI__builtin_rvv_vfwcvt_x_f_v_rm:
948 case RISCVVector::BI__builtin_rvv_vfwcvt_xu_f_v_rm:
949 case RISCVVector::BI__builtin_rvv_vfncvt_x_f_w_rm:
950 case RISCVVector::BI__builtin_rvv_vfncvt_xu_f_w_rm:
951 case RISCVVector::BI__builtin_rvv_vfncvt_f_x_w_rm:
952 case RISCVVector::BI__builtin_rvv_vfncvt_f_xu_w_rm:
953 case RISCVVector::BI__builtin_rvv_vfncvt_f_f_w_rm:
955 case RISCVVector::BI__builtin_rvv_vfadd_vv_rm:
956 case RISCVVector::BI__builtin_rvv_vfadd_vf_rm:
957 case RISCVVector::BI__builtin_rvv_vfsub_vv_rm:
958 case RISCVVector::BI__builtin_rvv_vfsub_vf_rm:
959 case RISCVVector::BI__builtin_rvv_vfrsub_vf_rm:
960 case RISCVVector::BI__builtin_rvv_vfwadd_vv_rm:
961 case RISCVVector::BI__builtin_rvv_vfwadd_vf_rm:
962 case RISCVVector::BI__builtin_rvv_vfwsub_vv_rm:
963 case RISCVVector::BI__builtin_rvv_vfwsub_vf_rm:
964 case RISCVVector::BI__builtin_rvv_vfwadd_wv_rm:
965 case RISCVVector::BI__builtin_rvv_vfwadd_wf_rm:
966 case RISCVVector::BI__builtin_rvv_vfwsub_wv_rm:
967 case RISCVVector::BI__builtin_rvv_vfwsub_wf_rm:
968 case RISCVVector::BI__builtin_rvv_vfmul_vv_rm:
969 case RISCVVector::BI__builtin_rvv_vfmul_vf_rm:
970 case RISCVVector::BI__builtin_rvv_vfdiv_vv_rm:
971 case RISCVVector::BI__builtin_rvv_vfdiv_vf_rm:
972 case RISCVVector::BI__builtin_rvv_vfrdiv_vf_rm:
973 case RISCVVector::BI__builtin_rvv_vfwmul_vv_rm:
974 case RISCVVector::BI__builtin_rvv_vfwmul_vf_rm:
975 case RISCVVector::BI__builtin_rvv_vfredosum_vs_rm:
976 case RISCVVector::BI__builtin_rvv_vfredusum_vs_rm:
977 case RISCVVector::BI__builtin_rvv_vfwredosum_vs_rm:
978 case RISCVVector::BI__builtin_rvv_vfwredusum_vs_rm:
979 case RISCVVector::BI__builtin_rvv_vfsqrt_v_rm_tu:
980 case RISCVVector::BI__builtin_rvv_vfrec7_v_rm_tu:
981 case RISCVVector::BI__builtin_rvv_vfcvt_x_f_v_rm_tu:
982 case RISCVVector::BI__builtin_rvv_vfcvt_xu_f_v_rm_tu:
983 case RISCVVector::BI__builtin_rvv_vfcvt_f_x_v_rm_tu:
984 case RISCVVector::BI__builtin_rvv_vfcvt_f_xu_v_rm_tu:
985 case RISCVVector::BI__builtin_rvv_vfwcvt_x_f_v_rm_tu:
986 case RISCVVector::BI__builtin_rvv_vfwcvt_xu_f_v_rm_tu:
987 case RISCVVector::BI__builtin_rvv_vfncvt_x_f_w_rm_tu:
988 case RISCVVector::BI__builtin_rvv_vfncvt_xu_f_w_rm_tu:
989 case RISCVVector::BI__builtin_rvv_vfncvt_f_x_w_rm_tu:
990 case RISCVVector::BI__builtin_rvv_vfncvt_f_xu_w_rm_tu:
991 case RISCVVector::BI__builtin_rvv_vfncvt_f_f_w_rm_tu:
992 case RISCVVector::BI__builtin_rvv_vfsqrt_v_rm_m:
993 case RISCVVector::BI__builtin_rvv_vfrec7_v_rm_m:
994 case RISCVVector::BI__builtin_rvv_vfcvt_x_f_v_rm_m:
995 case RISCVVector::BI__builtin_rvv_vfcvt_xu_f_v_rm_m:
996 case RISCVVector::BI__builtin_rvv_vfcvt_f_x_v_rm_m:
997 case RISCVVector::BI__builtin_rvv_vfcvt_f_xu_v_rm_m:
998 case RISCVVector::BI__builtin_rvv_vfwcvt_x_f_v_rm_m:
999 case RISCVVector::BI__builtin_rvv_vfwcvt_xu_f_v_rm_m:
1000 case RISCVVector::BI__builtin_rvv_vfncvt_x_f_w_rm_m:
1001 case RISCVVector::BI__builtin_rvv_vfncvt_xu_f_w_rm_m:
1002 case RISCVVector::BI__builtin_rvv_vfncvt_f_x_w_rm_m:
1003 case RISCVVector::BI__builtin_rvv_vfncvt_f_xu_w_rm_m:
1004 case RISCVVector::BI__builtin_rvv_vfncvt_f_f_w_rm_m:
1006 case RISCVVector::BI__builtin_rvv_vfadd_vv_rm_tu:
1007 case RISCVVector::BI__builtin_rvv_vfadd_vf_rm_tu:
1008 case RISCVVector::BI__builtin_rvv_vfsub_vv_rm_tu:
1009 case RISCVVector::BI__builtin_rvv_vfsub_vf_rm_tu:
1010 case RISCVVector::BI__builtin_rvv_vfrsub_vf_rm_tu:
1011 case RISCVVector::BI__builtin_rvv_vfwadd_vv_rm_tu:
1012 case RISCVVector::BI__builtin_rvv_vfwadd_vf_rm_tu:
1013 case RISCVVector::BI__builtin_rvv_vfwsub_vv_rm_tu:
1014 case RISCVVector::BI__builtin_rvv_vfwsub_vf_rm_tu:
1015 case RISCVVector::BI__builtin_rvv_vfwadd_wv_rm_tu:
1016 case RISCVVector::BI__builtin_rvv_vfwadd_wf_rm_tu:
1017 case RISCVVector::BI__builtin_rvv_vfwsub_wv_rm_tu:
1018 case RISCVVector::BI__builtin_rvv_vfwsub_wf_rm_tu:
1019 case RISCVVector::BI__builtin_rvv_vfmul_vv_rm_tu:
1020 case RISCVVector::BI__builtin_rvv_vfmul_vf_rm_tu:
1021 case RISCVVector::BI__builtin_rvv_vfdiv_vv_rm_tu:
1022 case RISCVVector::BI__builtin_rvv_vfdiv_vf_rm_tu:
1023 case RISCVVector::BI__builtin_rvv_vfrdiv_vf_rm_tu:
1024 case RISCVVector::BI__builtin_rvv_vfwmul_vv_rm_tu:
1025 case RISCVVector::BI__builtin_rvv_vfwmul_vf_rm_tu:
1026 case RISCVVector::BI__builtin_rvv_vfredosum_vs_rm_tu:
1027 case RISCVVector::BI__builtin_rvv_vfredusum_vs_rm_tu:
1028 case RISCVVector::BI__builtin_rvv_vfwredosum_vs_rm_tu:
1029 case RISCVVector::BI__builtin_rvv_vfwredusum_vs_rm_tu:
1030 case RISCVVector::BI__builtin_rvv_vfmacc_vv_rm:
1031 case RISCVVector::BI__builtin_rvv_vfmacc_vf_rm:
1032 case RISCVVector::BI__builtin_rvv_vfnmacc_vv_rm:
1033 case RISCVVector::BI__builtin_rvv_vfnmacc_vf_rm:
1034 case RISCVVector::BI__builtin_rvv_vfmsac_vv_rm:
1035 case RISCVVector::BI__builtin_rvv_vfmsac_vf_rm:
1036 case RISCVVector::BI__builtin_rvv_vfnmsac_vv_rm:
1037 case RISCVVector::BI__builtin_rvv_vfnmsac_vf_rm:
1038 case RISCVVector::BI__builtin_rvv_vfmadd_vv_rm:
1039 case RISCVVector::BI__builtin_rvv_vfmadd_vf_rm:
1040 case RISCVVector::BI__builtin_rvv_vfnmadd_vv_rm:
1041 case RISCVVector::BI__builtin_rvv_vfnmadd_vf_rm:
1042 case RISCVVector::BI__builtin_rvv_vfmsub_vv_rm:
1043 case RISCVVector::BI__builtin_rvv_vfmsub_vf_rm:
1044 case RISCVVector::BI__builtin_rvv_vfnmsub_vv_rm:
1045 case RISCVVector::BI__builtin_rvv_vfnmsub_vf_rm:
1046 case RISCVVector::BI__builtin_rvv_vfwmacc_vv_rm:
1047 case RISCVVector::BI__builtin_rvv_vfwmacc_vf_rm:
1048 case RISCVVector::BI__builtin_rvv_vfwnmacc_vv_rm:
1049 case RISCVVector::BI__builtin_rvv_vfwnmacc_vf_rm:
1050 case RISCVVector::BI__builtin_rvv_vfwmsac_vv_rm:
1051 case RISCVVector::BI__builtin_rvv_vfwmsac_vf_rm:
1052 case RISCVVector::BI__builtin_rvv_vfwnmsac_vv_rm:
1053 case RISCVVector::BI__builtin_rvv_vfwnmsac_vf_rm:
1054 case RISCVVector::BI__builtin_rvv_vfmacc_vv_rm_tu:
1055 case RISCVVector::BI__builtin_rvv_vfmacc_vf_rm_tu:
1056 case RISCVVector::BI__builtin_rvv_vfnmacc_vv_rm_tu:
1057 case RISCVVector::BI__builtin_rvv_vfnmacc_vf_rm_tu:
1058 case RISCVVector::BI__builtin_rvv_vfmsac_vv_rm_tu:
1059 case RISCVVector::BI__builtin_rvv_vfmsac_vf_rm_tu:
1060 case RISCVVector::BI__builtin_rvv_vfnmsac_vv_rm_tu:
1061 case RISCVVector::BI__builtin_rvv_vfnmsac_vf_rm_tu:
1062 case RISCVVector::BI__builtin_rvv_vfmadd_vv_rm_tu:
1063 case RISCVVector::BI__builtin_rvv_vfmadd_vf_rm_tu:
1064 case RISCVVector::BI__builtin_rvv_vfnmadd_vv_rm_tu:
1065 case RISCVVector::BI__builtin_rvv_vfnmadd_vf_rm_tu:
1066 case RISCVVector::BI__builtin_rvv_vfmsub_vv_rm_tu:
1067 case RISCVVector::BI__builtin_rvv_vfmsub_vf_rm_tu:
1068 case RISCVVector::BI__builtin_rvv_vfnmsub_vv_rm_tu:
1069 case RISCVVector::BI__builtin_rvv_vfnmsub_vf_rm_tu:
1070 case RISCVVector::BI__builtin_rvv_vfwmacc_vv_rm_tu:
1071 case RISCVVector::BI__builtin_rvv_vfwmacc_vf_rm_tu:
1072 case RISCVVector::BI__builtin_rvv_vfwnmacc_vv_rm_tu:
1073 case RISCVVector::BI__builtin_rvv_vfwnmacc_vf_rm_tu:
1074 case RISCVVector::BI__builtin_rvv_vfwmsac_vv_rm_tu:
1075 case RISCVVector::BI__builtin_rvv_vfwmsac_vf_rm_tu:
1076 case RISCVVector::BI__builtin_rvv_vfwnmsac_vv_rm_tu:
1077 case RISCVVector::BI__builtin_rvv_vfwnmsac_vf_rm_tu:
1078 case RISCVVector::BI__builtin_rvv_vfadd_vv_rm_m:
1079 case RISCVVector::BI__builtin_rvv_vfadd_vf_rm_m:
1080 case RISCVVector::BI__builtin_rvv_vfsub_vv_rm_m:
1081 case RISCVVector::BI__builtin_rvv_vfsub_vf_rm_m:
1082 case RISCVVector::BI__builtin_rvv_vfrsub_vf_rm_m:
1083 case RISCVVector::BI__builtin_rvv_vfwadd_vv_rm_m:
1084 case RISCVVector::BI__builtin_rvv_vfwadd_vf_rm_m:
1085 case RISCVVector::BI__builtin_rvv_vfwsub_vv_rm_m:
1086 case RISCVVector::BI__builtin_rvv_vfwsub_vf_rm_m:
1087 case RISCVVector::BI__builtin_rvv_vfwadd_wv_rm_m:
1088 case RISCVVector::BI__builtin_rvv_vfwadd_wf_rm_m:
1089 case RISCVVector::BI__builtin_rvv_vfwsub_wv_rm_m:
1090 case RISCVVector::BI__builtin_rvv_vfwsub_wf_rm_m:
1091 case RISCVVector::BI__builtin_rvv_vfmul_vv_rm_m:
1092 case RISCVVector::BI__builtin_rvv_vfmul_vf_rm_m:
1093 case RISCVVector::BI__builtin_rvv_vfdiv_vv_rm_m:
1094 case RISCVVector::BI__builtin_rvv_vfdiv_vf_rm_m:
1095 case RISCVVector::BI__builtin_rvv_vfrdiv_vf_rm_m:
1096 case RISCVVector::BI__builtin_rvv_vfwmul_vv_rm_m:
1097 case RISCVVector::BI__builtin_rvv_vfwmul_vf_rm_m:
1098 case RISCVVector::BI__builtin_rvv_vfredosum_vs_rm_m:
1099 case RISCVVector::BI__builtin_rvv_vfredusum_vs_rm_m:
1100 case RISCVVector::BI__builtin_rvv_vfwredosum_vs_rm_m:
1101 case RISCVVector::BI__builtin_rvv_vfwredusum_vs_rm_m:
1102 case RISCVVector::BI__builtin_rvv_vfsqrt_v_rm_tum:
1103 case RISCVVector::BI__builtin_rvv_vfrec7_v_rm_tum:
1104 case RISCVVector::BI__builtin_rvv_vfcvt_x_f_v_rm_tum:
1105 case RISCVVector::BI__builtin_rvv_vfcvt_xu_f_v_rm_tum:
1106 case RISCVVector::BI__builtin_rvv_vfcvt_f_x_v_rm_tum:
1107 case RISCVVector::BI__builtin_rvv_vfcvt_f_xu_v_rm_tum:
1108 case RISCVVector::BI__builtin_rvv_vfwcvt_x_f_v_rm_tum:
1109 case RISCVVector::BI__builtin_rvv_vfwcvt_xu_f_v_rm_tum:
1110 case RISCVVector::BI__builtin_rvv_vfncvt_x_f_w_rm_tum:
1111 case RISCVVector::BI__builtin_rvv_vfncvt_xu_f_w_rm_tum:
1112 case RISCVVector::BI__builtin_rvv_vfncvt_f_x_w_rm_tum:
1113 case RISCVVector::BI__builtin_rvv_vfncvt_f_xu_w_rm_tum:
1114 case RISCVVector::BI__builtin_rvv_vfncvt_f_f_w_rm_tum:
1115 case RISCVVector::BI__builtin_rvv_vfsqrt_v_rm_tumu:
1116 case RISCVVector::BI__builtin_rvv_vfrec7_v_rm_tumu:
1117 case RISCVVector::BI__builtin_rvv_vfcvt_x_f_v_rm_tumu:
1118 case RISCVVector::BI__builtin_rvv_vfcvt_xu_f_v_rm_tumu:
1119 case RISCVVector::BI__builtin_rvv_vfcvt_f_x_v_rm_tumu:
1120 case RISCVVector::BI__builtin_rvv_vfcvt_f_xu_v_rm_tumu:
1121 case RISCVVector::BI__builtin_rvv_vfwcvt_x_f_v_rm_tumu:
1122 case RISCVVector::BI__builtin_rvv_vfwcvt_xu_f_v_rm_tumu:
1123 case RISCVVector::BI__builtin_rvv_vfncvt_x_f_w_rm_tumu:
1124 case RISCVVector::BI__builtin_rvv_vfncvt_xu_f_w_rm_tumu:
1125 case RISCVVector::BI__builtin_rvv_vfncvt_f_x_w_rm_tumu:
1126 case RISCVVector::BI__builtin_rvv_vfncvt_f_xu_w_rm_tumu:
1127 case RISCVVector::BI__builtin_rvv_vfncvt_f_f_w_rm_tumu:
1128 case RISCVVector::BI__builtin_rvv_vfsqrt_v_rm_mu:
1129 case RISCVVector::BI__builtin_rvv_vfrec7_v_rm_mu:
1130 case RISCVVector::BI__builtin_rvv_vfcvt_x_f_v_rm_mu:
1131 case RISCVVector::BI__builtin_rvv_vfcvt_xu_f_v_rm_mu:
1132 case RISCVVector::BI__builtin_rvv_vfcvt_f_x_v_rm_mu:
1133 case RISCVVector::BI__builtin_rvv_vfcvt_f_xu_v_rm_mu:
1134 case RISCVVector::BI__builtin_rvv_vfwcvt_x_f_v_rm_mu:
1135 case RISCVVector::BI__builtin_rvv_vfwcvt_xu_f_v_rm_mu:
1136 case RISCVVector::BI__builtin_rvv_vfncvt_x_f_w_rm_mu:
1137 case RISCVVector::BI__builtin_rvv_vfncvt_xu_f_w_rm_mu:
1138 case RISCVVector::BI__builtin_rvv_vfncvt_f_x_w_rm_mu:
1139 case RISCVVector::BI__builtin_rvv_vfncvt_f_xu_w_rm_mu:
1140 case RISCVVector::BI__builtin_rvv_vfncvt_f_f_w_rm_mu:
1142 case RISCVVector::BI__builtin_rvv_vfmacc_vv_rm_m:
1143 case RISCVVector::BI__builtin_rvv_vfmacc_vf_rm_m:
1144 case RISCVVector::BI__builtin_rvv_vfnmacc_vv_rm_m:
1145 case RISCVVector::BI__builtin_rvv_vfnmacc_vf_rm_m:
1146 case RISCVVector::BI__builtin_rvv_vfmsac_vv_rm_m:
1147 case RISCVVector::BI__builtin_rvv_vfmsac_vf_rm_m:
1148 case RISCVVector::BI__builtin_rvv_vfnmsac_vv_rm_m:
1149 case RISCVVector::BI__builtin_rvv_vfnmsac_vf_rm_m:
1150 case RISCVVector::BI__builtin_rvv_vfmadd_vv_rm_m:
1151 case RISCVVector::BI__builtin_rvv_vfmadd_vf_rm_m:
1152 case RISCVVector::BI__builtin_rvv_vfnmadd_vv_rm_m:
1153 case RISCVVector::BI__builtin_rvv_vfnmadd_vf_rm_m:
1154 case RISCVVector::BI__builtin_rvv_vfmsub_vv_rm_m:
1155 case RISCVVector::BI__builtin_rvv_vfmsub_vf_rm_m:
1156 case RISCVVector::BI__builtin_rvv_vfnmsub_vv_rm_m:
1157 case RISCVVector::BI__builtin_rvv_vfnmsub_vf_rm_m:
1158 case RISCVVector::BI__builtin_rvv_vfwmacc_vv_rm_m:
1159 case RISCVVector::BI__builtin_rvv_vfwmacc_vf_rm_m:
1160 case RISCVVector::BI__builtin_rvv_vfwnmacc_vv_rm_m:
1161 case RISCVVector::BI__builtin_rvv_vfwnmacc_vf_rm_m:
1162 case RISCVVector::BI__builtin_rvv_vfwmsac_vv_rm_m:
1163 case RISCVVector::BI__builtin_rvv_vfwmsac_vf_rm_m:
1164 case RISCVVector::BI__builtin_rvv_vfwnmsac_vv_rm_m:
1165 case RISCVVector::BI__builtin_rvv_vfwnmsac_vf_rm_m:
1166 case RISCVVector::BI__builtin_rvv_vfadd_vv_rm_tum:
1167 case RISCVVector::BI__builtin_rvv_vfadd_vf_rm_tum:
1168 case RISCVVector::BI__builtin_rvv_vfsub_vv_rm_tum:
1169 case RISCVVector::BI__builtin_rvv_vfsub_vf_rm_tum:
1170 case RISCVVector::BI__builtin_rvv_vfrsub_vf_rm_tum:
1171 case RISCVVector::BI__builtin_rvv_vfwadd_vv_rm_tum:
1172 case RISCVVector::BI__builtin_rvv_vfwadd_vf_rm_tum:
1173 case RISCVVector::BI__builtin_rvv_vfwsub_vv_rm_tum:
1174 case RISCVVector::BI__builtin_rvv_vfwsub_vf_rm_tum:
1175 case RISCVVector::BI__builtin_rvv_vfwadd_wv_rm_tum:
1176 case RISCVVector::BI__builtin_rvv_vfwadd_wf_rm_tum:
1177 case RISCVVector::BI__builtin_rvv_vfwsub_wv_rm_tum:
1178 case RISCVVector::BI__builtin_rvv_vfwsub_wf_rm_tum:
1179 case RISCVVector::BI__builtin_rvv_vfmul_vv_rm_tum:
1180 case RISCVVector::BI__builtin_rvv_vfmul_vf_rm_tum:
1181 case RISCVVector::BI__builtin_rvv_vfdiv_vv_rm_tum:
1182 case RISCVVector::BI__builtin_rvv_vfdiv_vf_rm_tum:
1183 case RISCVVector::BI__builtin_rvv_vfrdiv_vf_rm_tum:
1184 case RISCVVector::BI__builtin_rvv_vfwmul_vv_rm_tum:
1185 case RISCVVector::BI__builtin_rvv_vfwmul_vf_rm_tum:
1186 case RISCVVector::BI__builtin_rvv_vfmacc_vv_rm_tum:
1187 case RISCVVector::BI__builtin_rvv_vfmacc_vf_rm_tum:
1188 case RISCVVector::BI__builtin_rvv_vfnmacc_vv_rm_tum:
1189 case RISCVVector::BI__builtin_rvv_vfnmacc_vf_rm_tum:
1190 case RISCVVector::BI__builtin_rvv_vfmsac_vv_rm_tum:
1191 case RISCVVector::BI__builtin_rvv_vfmsac_vf_rm_tum:
1192 case RISCVVector::BI__builtin_rvv_vfnmsac_vv_rm_tum:
1193 case RISCVVector::BI__builtin_rvv_vfnmsac_vf_rm_tum:
1194 case RISCVVector::BI__builtin_rvv_vfmadd_vv_rm_tum:
1195 case RISCVVector::BI__builtin_rvv_vfmadd_vf_rm_tum:
1196 case RISCVVector::BI__builtin_rvv_vfnmadd_vv_rm_tum:
1197 case RISCVVector::BI__builtin_rvv_vfnmadd_vf_rm_tum:
1198 case RISCVVector::BI__builtin_rvv_vfmsub_vv_rm_tum:
1199 case RISCVVector::BI__builtin_rvv_vfmsub_vf_rm_tum:
1200 case RISCVVector::BI__builtin_rvv_vfnmsub_vv_rm_tum:
1201 case RISCVVector::BI__builtin_rvv_vfnmsub_vf_rm_tum:
1202 case RISCVVector::BI__builtin_rvv_vfwmacc_vv_rm_tum:
1203 case RISCVVector::BI__builtin_rvv_vfwmacc_vf_rm_tum:
1204 case RISCVVector::BI__builtin_rvv_vfwnmacc_vv_rm_tum:
1205 case RISCVVector::BI__builtin_rvv_vfwnmacc_vf_rm_tum:
1206 case RISCVVector::BI__builtin_rvv_vfwmsac_vv_rm_tum:
1207 case RISCVVector::BI__builtin_rvv_vfwmsac_vf_rm_tum:
1208 case RISCVVector::BI__builtin_rvv_vfwnmsac_vv_rm_tum:
1209 case RISCVVector::BI__builtin_rvv_vfwnmsac_vf_rm_tum:
1210 case RISCVVector::BI__builtin_rvv_vfredosum_vs_rm_tum:
1211 case RISCVVector::BI__builtin_rvv_vfredusum_vs_rm_tum:
1212 case RISCVVector::BI__builtin_rvv_vfwredosum_vs_rm_tum:
1213 case RISCVVector::BI__builtin_rvv_vfwredusum_vs_rm_tum:
1214 case RISCVVector::BI__builtin_rvv_vfadd_vv_rm_tumu:
1215 case RISCVVector::BI__builtin_rvv_vfadd_vf_rm_tumu:
1216 case RISCVVector::BI__builtin_rvv_vfsub_vv_rm_tumu:
1217 case RISCVVector::BI__builtin_rvv_vfsub_vf_rm_tumu:
1218 case RISCVVector::BI__builtin_rvv_vfrsub_vf_rm_tumu:
1219 case RISCVVector::BI__builtin_rvv_vfwadd_vv_rm_tumu:
1220 case RISCVVector::BI__builtin_rvv_vfwadd_vf_rm_tumu:
1221 case RISCVVector::BI__builtin_rvv_vfwsub_vv_rm_tumu:
1222 case RISCVVector::BI__builtin_rvv_vfwsub_vf_rm_tumu:
1223 case RISCVVector::BI__builtin_rvv_vfwadd_wv_rm_tumu:
1224 case RISCVVector::BI__builtin_rvv_vfwadd_wf_rm_tumu:
1225 case RISCVVector::BI__builtin_rvv_vfwsub_wv_rm_tumu:
1226 case RISCVVector::BI__builtin_rvv_vfwsub_wf_rm_tumu:
1227 case RISCVVector::BI__builtin_rvv_vfmul_vv_rm_tumu:
1228 case RISCVVector::BI__builtin_rvv_vfmul_vf_rm_tumu:
1229 case RISCVVector::BI__builtin_rvv_vfdiv_vv_rm_tumu:
1230 case RISCVVector::BI__builtin_rvv_vfdiv_vf_rm_tumu:
1231 case RISCVVector::BI__builtin_rvv_vfrdiv_vf_rm_tumu:
1232 case RISCVVector::BI__builtin_rvv_vfwmul_vv_rm_tumu:
1233 case RISCVVector::BI__builtin_rvv_vfwmul_vf_rm_tumu:
1234 case RISCVVector::BI__builtin_rvv_vfmacc_vv_rm_tumu:
1235 case RISCVVector::BI__builtin_rvv_vfmacc_vf_rm_tumu:
1236 case RISCVVector::BI__builtin_rvv_vfnmacc_vv_rm_tumu:
1237 case RISCVVector::BI__builtin_rvv_vfnmacc_vf_rm_tumu:
1238 case RISCVVector::BI__builtin_rvv_vfmsac_vv_rm_tumu:
1239 case RISCVVector::BI__builtin_rvv_vfmsac_vf_rm_tumu:
1240 case RISCVVector::BI__builtin_rvv_vfnmsac_vv_rm_tumu:
1241 case RISCVVector::BI__builtin_rvv_vfnmsac_vf_rm_tumu:
1242 case RISCVVector::BI__builtin_rvv_vfmadd_vv_rm_tumu:
1243 case RISCVVector::BI__builtin_rvv_vfmadd_vf_rm_tumu:
1244 case RISCVVector::BI__builtin_rvv_vfnmadd_vv_rm_tumu:
1245 case RISCVVector::BI__builtin_rvv_vfnmadd_vf_rm_tumu:
1246 case RISCVVector::BI__builtin_rvv_vfmsub_vv_rm_tumu:
1247 case RISCVVector::BI__builtin_rvv_vfmsub_vf_rm_tumu:
1248 case RISCVVector::BI__builtin_rvv_vfnmsub_vv_rm_tumu:
1249 case RISCVVector::BI__builtin_rvv_vfnmsub_vf_rm_tumu:
1250 case RISCVVector::BI__builtin_rvv_vfwmacc_vv_rm_tumu:
1251 case RISCVVector::BI__builtin_rvv_vfwmacc_vf_rm_tumu:
1252 case RISCVVector::BI__builtin_rvv_vfwnmacc_vv_rm_tumu:
1253 case RISCVVector::BI__builtin_rvv_vfwnmacc_vf_rm_tumu:
1254 case RISCVVector::BI__builtin_rvv_vfwmsac_vv_rm_tumu:
1255 case RISCVVector::BI__builtin_rvv_vfwmsac_vf_rm_tumu:
1256 case RISCVVector::BI__builtin_rvv_vfwnmsac_vv_rm_tumu:
1257 case RISCVVector::BI__builtin_rvv_vfwnmsac_vf_rm_tumu:
1258 case RISCVVector::BI__builtin_rvv_vfadd_vv_rm_mu:
1259 case RISCVVector::BI__builtin_rvv_vfadd_vf_rm_mu:
1260 case RISCVVector::BI__builtin_rvv_vfsub_vv_rm_mu:
1261 case RISCVVector::BI__builtin_rvv_vfsub_vf_rm_mu:
1262 case RISCVVector::BI__builtin_rvv_vfrsub_vf_rm_mu:
1263 case RISCVVector::BI__builtin_rvv_vfwadd_vv_rm_mu:
1264 case RISCVVector::BI__builtin_rvv_vfwadd_vf_rm_mu:
1265 case RISCVVector::BI__builtin_rvv_vfwsub_vv_rm_mu:
1266 case RISCVVector::BI__builtin_rvv_vfwsub_vf_rm_mu:
1267 case RISCVVector::BI__builtin_rvv_vfwadd_wv_rm_mu:
1268 case RISCVVector::BI__builtin_rvv_vfwadd_wf_rm_mu:
1269 case RISCVVector::BI__builtin_rvv_vfwsub_wv_rm_mu:
1270 case RISCVVector::BI__builtin_rvv_vfwsub_wf_rm_mu:
1271 case RISCVVector::BI__builtin_rvv_vfmul_vv_rm_mu:
1272 case RISCVVector::BI__builtin_rvv_vfmul_vf_rm_mu:
1273 case RISCVVector::BI__builtin_rvv_vfdiv_vv_rm_mu:
1274 case RISCVVector::BI__builtin_rvv_vfdiv_vf_rm_mu:
1275 case RISCVVector::BI__builtin_rvv_vfrdiv_vf_rm_mu:
1276 case RISCVVector::BI__builtin_rvv_vfwmul_vv_rm_mu:
1277 case RISCVVector::BI__builtin_rvv_vfwmul_vf_rm_mu:
1278 case RISCVVector::BI__builtin_rvv_vfmacc_vv_rm_mu:
1279 case RISCVVector::BI__builtin_rvv_vfmacc_vf_rm_mu:
1280 case RISCVVector::BI__builtin_rvv_vfnmacc_vv_rm_mu:
1281 case RISCVVector::BI__builtin_rvv_vfnmacc_vf_rm_mu:
1282 case RISCVVector::BI__builtin_rvv_vfmsac_vv_rm_mu:
1283 case RISCVVector::BI__builtin_rvv_vfmsac_vf_rm_mu:
1284 case RISCVVector::BI__builtin_rvv_vfnmsac_vv_rm_mu:
1285 case RISCVVector::BI__builtin_rvv_vfnmsac_vf_rm_mu:
1286 case RISCVVector::BI__builtin_rvv_vfmadd_vv_rm_mu:
1287 case RISCVVector::BI__builtin_rvv_vfmadd_vf_rm_mu:
1288 case RISCVVector::BI__builtin_rvv_vfnmadd_vv_rm_mu:
1289 case RISCVVector::BI__builtin_rvv_vfnmadd_vf_rm_mu:
1290 case RISCVVector::BI__builtin_rvv_vfmsub_vv_rm_mu:
1291 case RISCVVector::BI__builtin_rvv_vfmsub_vf_rm_mu:
1292 case RISCVVector::BI__builtin_rvv_vfnmsub_vv_rm_mu:
1293 case RISCVVector::BI__builtin_rvv_vfnmsub_vf_rm_mu:
1294 case RISCVVector::BI__builtin_rvv_vfwmacc_vv_rm_mu:
1295 case RISCVVector::BI__builtin_rvv_vfwmacc_vf_rm_mu:
1296 case RISCVVector::BI__builtin_rvv_vfwnmacc_vv_rm_mu:
1297 case RISCVVector::BI__builtin_rvv_vfwnmacc_vf_rm_mu:
1298 case RISCVVector::BI__builtin_rvv_vfwmsac_vv_rm_mu:
1299 case RISCVVector::BI__builtin_rvv_vfwmsac_vf_rm_mu:
1300 case RISCVVector::BI__builtin_rvv_vfwnmsac_vv_rm_mu:
1301 case RISCVVector::BI__builtin_rvv_vfwnmsac_vf_rm_mu:
1303 case RISCV::BI__builtin_riscv_ntl_load:
1304 case RISCV::BI__builtin_riscv_ntl_store:
1307 assert((BuiltinID == RISCV::BI__builtin_riscv_ntl_store ||
1308 BuiltinID == RISCV::BI__builtin_riscv_ntl_load) &&
1309 "Unexpected RISC-V nontemporal load/store builtin!");
1310 bool IsStore = BuiltinID == RISCV::BI__builtin_riscv_ntl_store;
1311 unsigned NumArgs = IsStore ? 3 : 2;
1331 PointerArg = PointerArgResult.
get();
1335 Diag(DRE->
getBeginLoc(), diag::err_nontemporal_builtin_must_be_pointer)
1346 diag::err_nontemporal_builtin_must_be_pointer_intfltptr_or_vector)
1358 Context, ValType,
false);
1373 const llvm::StringMap<bool> &FeatureMap) {
1377 unsigned MinElts = Info.
EC.getKnownMinValue();
1380 !FeatureMap.lookup(
"zve64d"))
1381 Diag(
Loc, diag::err_riscv_type_requires_extension,
D) << Ty <<
"zve64d";
1386 !FeatureMap.lookup(
"zve64x"))
1387 Diag(
Loc, diag::err_riscv_type_requires_extension,
D) << Ty <<
"zve64x";
1389 !FeatureMap.lookup(
"zvfhmin"))
1390 Diag(
Loc, diag::err_riscv_type_requires_extension,
D)
1391 << Ty <<
"zvfh or zvfhmin";
1393 Diag(
Loc, diag::err_riscv_type_requires_extension,
D) << Ty <<
"zvfbfmin";
1395 !FeatureMap.lookup(
"zve32f"))
1396 Diag(
Loc, diag::err_riscv_type_requires_extension,
D) << Ty <<
"zve32f";
1399 else if (!FeatureMap.lookup(
"zve32x"))
1400 Diag(
Loc, diag::err_riscv_type_requires_extension,
D) << Ty <<
"zve32x";
1412 auto ValidScalableConversion = [](
QualType FirstType,
QualType SecondType) {
1416 const auto *VecTy = SecondType->getAs<
VectorType>();
1420 return ValidScalableConversion(srcTy, destTy) ||
1421 ValidScalableConversion(destTy, srcTy);
1426 if (
const auto *A =
D->
getAttr<RISCVInterruptAttr>()) {
1428 diag::warn_riscv_repeated_interrupt_attribute);
1429 Diag(A->getLocation(), diag::note_riscv_repeated_interrupt_attribute);
1471 RISCVInterruptAttr::InterruptType Kind;
1472 if (!RISCVInterruptAttr::ConvertStrToInterruptType(Str, Kind)) {
1473 Diag(AL.
getLoc(), diag::warn_attribute_type_not_supported)
1474 << AL << Str << ArgLoc;
1491 if (!Ext.consume_front(
"+"))
1494 return -1 != RISCVISAInfo::getRISCVFeaturesBitsInfo(Ext).second;
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
void getFunctionFeatureMap(llvm::StringMap< bool > &FeatureMap, const FunctionDecl *) 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 isValidFMVExtension(StringRef Ext)
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.
FunctionDecl * getCurFunctionDecl(bool AllowLambda=false) const
Returns a pointer to the innermost enclosing function, or nullptr if the current context is not insid...
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.