Lines Matching refs:VK

492                                   RISCVMCExpr::VariantKind &VK) {  in evaluateConstantImm()
494 VK = RE->getKind(); in evaluateConstantImm()
499 VK = RISCVMCExpr::VK_RISCV_None; in evaluateConstantImm()
511 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in isBareSimmNLsb0() local
514 bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK); in isBareSimmNLsb0()
517 IsValid = RISCVAsmParser::classifySymbolRef(getImm(), VK); in isBareSimmNLsb0()
520 return IsValid && VK == RISCVMCExpr::VK_RISCV_None; in isBareSimmNLsb0()
527 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in isBareSymbol() local
529 if (!isImm() || evaluateConstantImm(getImm(), Imm, VK)) in isBareSymbol()
531 return RISCVAsmParser::classifySymbolRef(getImm(), VK) && in isBareSymbol()
532 VK == RISCVMCExpr::VK_RISCV_None; in isBareSymbol()
537 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in isCallSymbol() local
539 if (!isImm() || evaluateConstantImm(getImm(), Imm, VK)) in isCallSymbol()
541 return RISCVAsmParser::classifySymbolRef(getImm(), VK) && in isCallSymbol()
542 (VK == RISCVMCExpr::VK_RISCV_CALL || in isCallSymbol()
543 VK == RISCVMCExpr::VK_RISCV_CALL_PLT); in isCallSymbol()
548 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in isPseudoJumpSymbol() local
550 if (!isImm() || evaluateConstantImm(getImm(), Imm, VK)) in isPseudoJumpSymbol()
552 return RISCVAsmParser::classifySymbolRef(getImm(), VK) && in isPseudoJumpSymbol()
553 VK == RISCVMCExpr::VK_RISCV_CALL; in isPseudoJumpSymbol()
558 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in isTPRelAddSymbol() local
560 if (!isImm() || evaluateConstantImm(getImm(), Imm, VK)) in isTPRelAddSymbol()
562 return RISCVAsmParser::classifySymbolRef(getImm(), VK) && in isTPRelAddSymbol()
563 VK == RISCVMCExpr::VK_RISCV_TPREL_ADD; in isTPRelAddSymbol()
568 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in isTLSDESCCallSymbol() local
570 if (!isImm() || evaluateConstantImm(getImm(), Imm, VK)) in isTLSDESCCallSymbol()
572 return RISCVAsmParser::classifySymbolRef(getImm(), VK) && in isTLSDESCCallSymbol()
573 VK == RISCVMCExpr::VK_RISCV_TLSDESC_CALL; in isTLSDESCCallSymbol()
580 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in isVTypeImm() local
583 bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK); in isVTypeImm()
584 return IsConstantImm && isUIntN(N, Imm) && VK == RISCVMCExpr::VK_RISCV_None; in isVTypeImm()
624 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in isImmXLenLI() local
627 bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK); in isImmXLenLI()
628 if (VK == RISCVMCExpr::VK_RISCV_LO || in isImmXLenLI()
629 VK == RISCVMCExpr::VK_RISCV_PCREL_LO || in isImmXLenLI()
630 VK == RISCVMCExpr::VK_RISCV_TLSDESC_LOAD_LO || in isImmXLenLI()
631 VK == RISCVMCExpr::VK_RISCV_TLSDESC_ADD_LO) in isImmXLenLI()
636 return VK == RISCVMCExpr::VK_RISCV_None && in isImmXLenLI()
645 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in isImmXLenLI_Restricted() local
648 bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK); in isImmXLenLI_Restricted()
650 return IsConstantImm && (VK == RISCVMCExpr::VK_RISCV_None) && in isImmXLenLI_Restricted()
656 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in isUImmLog2XLen() local
659 if (!evaluateConstantImm(getImm(), Imm, VK) || in isUImmLog2XLen()
660 VK != RISCVMCExpr::VK_RISCV_None) in isUImmLog2XLen()
667 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in isUImmLog2XLenNonZero() local
670 if (!evaluateConstantImm(getImm(), Imm, VK) || in isUImmLog2XLenNonZero()
671 VK != RISCVMCExpr::VK_RISCV_None) in isUImmLog2XLenNonZero()
680 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in isUImmLog2XLenHalf() local
683 if (!evaluateConstantImm(getImm(), Imm, VK) || in isUImmLog2XLenHalf()
684 VK != RISCVMCExpr::VK_RISCV_None) in isUImmLog2XLenHalf()
691 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in IsUImm() local
694 bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK); in IsUImm()
695 return IsConstantImm && isUInt<N>(Imm) && VK == RISCVMCExpr::VK_RISCV_None; in IsUImm()
712 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in isUImm8GE32() local
715 bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK); in isUImm8GE32()
717 VK == RISCVMCExpr::VK_RISCV_None; in isUImm8GE32()
722 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in isRnumArg() local
725 bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK); in isRnumArg()
727 VK == RISCVMCExpr::VK_RISCV_None; in isRnumArg()
732 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in isRnumArg_0_7() local
735 bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK); in isRnumArg_0_7()
737 VK == RISCVMCExpr::VK_RISCV_None; in isRnumArg_0_7()
742 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in isRnumArg_1_10() local
745 bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK); in isRnumArg_1_10()
747 VK == RISCVMCExpr::VK_RISCV_None; in isRnumArg_1_10()
752 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in isRnumArg_2_14() local
755 bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK); in isRnumArg_2_14()
757 VK == RISCVMCExpr::VK_RISCV_None; in isRnumArg_2_14()
763 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in isSImm5() local
765 bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK); in isSImm5()
767 VK == RISCVMCExpr::VK_RISCV_None; in isSImm5()
773 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in isSImm6() local
775 bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK); in isSImm6()
777 VK == RISCVMCExpr::VK_RISCV_None; in isSImm6()
783 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in isSImm6NonZero() local
785 bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK); in isSImm6NonZero()
788 VK == RISCVMCExpr::VK_RISCV_None; in isSImm6NonZero()
795 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in isCLUIImm() local
796 bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK); in isCLUIImm()
799 VK == RISCVMCExpr::VK_RISCV_None; in isCLUIImm()
806 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in isUImm2Lsb0() local
807 bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK); in isUImm2Lsb0()
809 VK == RISCVMCExpr::VK_RISCV_None; in isUImm2Lsb0()
816 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in isUImm5Lsb0() local
817 bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK); in isUImm5Lsb0()
819 VK == RISCVMCExpr::VK_RISCV_None; in isUImm5Lsb0()
826 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in isUImm6Lsb0() local
827 bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK); in isUImm6Lsb0()
829 VK == RISCVMCExpr::VK_RISCV_None; in isUImm6Lsb0()
836 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in isUImm7Lsb00() local
837 bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK); in isUImm7Lsb00()
839 VK == RISCVMCExpr::VK_RISCV_None; in isUImm7Lsb00()
846 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in isUImm8Lsb00() local
847 bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK); in isUImm8Lsb00()
849 VK == RISCVMCExpr::VK_RISCV_None; in isUImm8Lsb00()
856 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in isUImm8Lsb000() local
857 bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK); in isUImm8Lsb000()
859 VK == RISCVMCExpr::VK_RISCV_None; in isUImm8Lsb000()
868 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in isUImm9Lsb000() local
869 bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK); in isUImm9Lsb000()
871 VK == RISCVMCExpr::VK_RISCV_None; in isUImm9Lsb000()
878 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in isUImm10Lsb00NonZero() local
879 bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK); in isUImm10Lsb00NonZero()
881 VK == RISCVMCExpr::VK_RISCV_None; in isUImm10Lsb00NonZero()
893 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in isSImm12() local
898 bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK); in isSImm12()
900 IsValid = RISCVAsmParser::classifySymbolRef(getImm(), VK); in isSImm12()
903 return IsValid && ((IsConstantImm && VK == RISCVMCExpr::VK_RISCV_None) || in isSImm12()
904 VK == RISCVMCExpr::VK_RISCV_LO || in isSImm12()
905 VK == RISCVMCExpr::VK_RISCV_PCREL_LO || in isSImm12()
906 VK == RISCVMCExpr::VK_RISCV_TPREL_LO || in isSImm12()
907 VK == RISCVMCExpr::VK_RISCV_TLSDESC_LOAD_LO || in isSImm12()
908 VK == RISCVMCExpr::VK_RISCV_TLSDESC_ADD_LO); in isSImm12()
916 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in isSImm12Lsb00000() local
918 bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK); in isSImm12Lsb00000()
920 VK == RISCVMCExpr::VK_RISCV_None; in isSImm12Lsb00000()
929 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in isSImm10Lsb0000NonZero() local
930 bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK); in isSImm10Lsb0000NonZero()
932 VK == RISCVMCExpr::VK_RISCV_None; in isSImm10Lsb0000NonZero()
936 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in isUImm20LUI() local
941 bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK); in isUImm20LUI()
943 IsValid = RISCVAsmParser::classifySymbolRef(getImm(), VK); in isUImm20LUI()
944 return IsValid && (VK == RISCVMCExpr::VK_RISCV_HI || in isUImm20LUI()
945 VK == RISCVMCExpr::VK_RISCV_TPREL_HI); in isUImm20LUI()
947 return isUInt<20>(Imm) && (VK == RISCVMCExpr::VK_RISCV_None || in isUImm20LUI()
948 VK == RISCVMCExpr::VK_RISCV_HI || in isUImm20LUI()
949 VK == RISCVMCExpr::VK_RISCV_TPREL_HI); in isUImm20LUI()
954 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in isUImm20AUIPC() local
959 bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK); in isUImm20AUIPC()
961 IsValid = RISCVAsmParser::classifySymbolRef(getImm(), VK); in isUImm20AUIPC()
962 return IsValid && (VK == RISCVMCExpr::VK_RISCV_PCREL_HI || in isUImm20AUIPC()
963 VK == RISCVMCExpr::VK_RISCV_GOT_HI || in isUImm20AUIPC()
964 VK == RISCVMCExpr::VK_RISCV_TLS_GOT_HI || in isUImm20AUIPC()
965 VK == RISCVMCExpr::VK_RISCV_TLS_GD_HI || in isUImm20AUIPC()
966 VK == RISCVMCExpr::VK_RISCV_TLSDESC_HI); in isUImm20AUIPC()
969 return isUInt<20>(Imm) && (VK == RISCVMCExpr::VK_RISCV_None || in isUImm20AUIPC()
970 VK == RISCVMCExpr::VK_RISCV_PCREL_HI || in isUImm20AUIPC()
971 VK == RISCVMCExpr::VK_RISCV_GOT_HI || in isUImm20AUIPC()
972 VK == RISCVMCExpr::VK_RISCV_TLS_GOT_HI || in isUImm20AUIPC()
973 VK == RISCVMCExpr::VK_RISCV_TLS_GD_HI || in isUImm20AUIPC()
974 VK == RISCVMCExpr::VK_RISCV_TLSDESC_HI); in isUImm20AUIPC()
983 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in isImmZero() local
984 bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK); in isImmZero()
985 return IsConstantImm && (Imm == 0) && VK == RISCVMCExpr::VK_RISCV_None; in isImmZero()
991 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in isSImm5Plus1() local
993 bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK); in isSImm5Plus1()
996 VK == RISCVMCExpr::VK_RISCV_None; in isSImm5Plus1()
1204 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in addExpr() local
1205 bool IsConstant = evaluateConstantImm(Expr, Imm, VK); in addExpr()
1254 RISCVMCExpr::VariantKind VK = RISCVMCExpr::VK_RISCV_None; in addVTypeIOperands() local
1256 evaluateConstantImm(getImm(), Imm, VK); in addVTypeIOperands()
2036 RISCVMCExpr::VariantKind VK = RISCVMCExpr::getVariantKindForName(Identifier); in parseOperandWithModifier() local
2037 if (VK == RISCVMCExpr::VK_RISCV_Invalid) in parseOperandWithModifier()
2048 const MCExpr *ModExpr = RISCVMCExpr::create(SubExpr, VK, getContext()); in parseOperandWithModifier()