Lines Matching refs:TargetOpcode
80 TII.get(TargetOpcode::COPY), ConstrainedReg) in constrainOperandRegClass()
85 TII.get(TargetOpcode::COPY), Reg) in constrainOperandRegClass()
229 if (MI.getOpcode() == TargetOpcode::LOCAL_ESCAPE) in isTriviallyDead()
232 if (MI.getOpcode() == TargetOpcode::LIFETIME_START || in isTriviallyDead()
233 MI.getOpcode() == TargetOpcode::LIFETIME_END) in isTriviallyDead()
338 case TargetOpcode::G_ANYEXT: in getConstantVRegValWithLookThrough()
342 case TargetOpcode::G_TRUNC: in getConstantVRegValWithLookThrough()
343 case TargetOpcode::G_SEXT: in getConstantVRegValWithLookThrough()
344 case TargetOpcode::G_ZEXT: in getConstantVRegValWithLookThrough()
350 case TargetOpcode::COPY: in getConstantVRegValWithLookThrough()
355 case TargetOpcode::G_INTTOPTR: in getConstantVRegValWithLookThrough()
370 case TargetOpcode::G_TRUNC: in getConstantVRegValWithLookThrough()
373 case TargetOpcode::G_ANYEXT: in getConstantVRegValWithLookThrough()
374 case TargetOpcode::G_SEXT: in getConstantVRegValWithLookThrough()
377 case TargetOpcode::G_ZEXT: in getConstantVRegValWithLookThrough()
389 return MI->getOpcode() == TargetOpcode::G_CONSTANT; in isIConstant()
395 return MI->getOpcode() == TargetOpcode::G_FCONSTANT; in isFConstant()
402 return Opc == TargetOpcode::G_CONSTANT || Opc == TargetOpcode::G_FCONSTANT; in isAnyConstant()
454 if (TargetOpcode::G_FCONSTANT != MI->getOpcode()) in getConstantFPVRegVal()
467 while (Opc == TargetOpcode::COPY || isPreISelGenericOptimizationHint(Opc)) { in getDefSrcRegIgnoringCopies()
675 case TargetOpcode::G_ADD: in ConstantFoldBinOp()
677 case TargetOpcode::G_PTR_ADD: in ConstantFoldBinOp()
681 case TargetOpcode::G_AND: in ConstantFoldBinOp()
683 case TargetOpcode::G_ASHR: in ConstantFoldBinOp()
685 case TargetOpcode::G_LSHR: in ConstantFoldBinOp()
687 case TargetOpcode::G_MUL: in ConstantFoldBinOp()
689 case TargetOpcode::G_OR: in ConstantFoldBinOp()
691 case TargetOpcode::G_SHL: in ConstantFoldBinOp()
693 case TargetOpcode::G_SUB: in ConstantFoldBinOp()
695 case TargetOpcode::G_XOR: in ConstantFoldBinOp()
697 case TargetOpcode::G_UDIV: in ConstantFoldBinOp()
701 case TargetOpcode::G_SDIV: in ConstantFoldBinOp()
705 case TargetOpcode::G_UREM: in ConstantFoldBinOp()
709 case TargetOpcode::G_SREM: in ConstantFoldBinOp()
713 case TargetOpcode::G_SMIN: in ConstantFoldBinOp()
715 case TargetOpcode::G_SMAX: in ConstantFoldBinOp()
717 case TargetOpcode::G_UMIN: in ConstantFoldBinOp()
719 case TargetOpcode::G_UMAX: in ConstantFoldBinOp()
740 case TargetOpcode::G_FADD: in ConstantFoldFPBinOp()
743 case TargetOpcode::G_FSUB: in ConstantFoldFPBinOp()
746 case TargetOpcode::G_FMUL: in ConstantFoldFPBinOp()
749 case TargetOpcode::G_FDIV: in ConstantFoldFPBinOp()
752 case TargetOpcode::G_FREM: in ConstantFoldFPBinOp()
755 case TargetOpcode::G_FCOPYSIGN: in ConstantFoldFPBinOp()
758 case TargetOpcode::G_FMINNUM: in ConstantFoldFPBinOp()
760 case TargetOpcode::G_FMAXNUM: in ConstantFoldFPBinOp()
762 case TargetOpcode::G_FMINIMUM: in ConstantFoldFPBinOp()
764 case TargetOpcode::G_FMAXIMUM: in ConstantFoldFPBinOp()
766 case TargetOpcode::G_FMINNUM_IEEE: in ConstantFoldFPBinOp()
767 case TargetOpcode::G_FMAXNUM_IEEE: in ConstantFoldFPBinOp()
819 if (DefMI->getOpcode() == TargetOpcode::G_BUILD_VECTOR) { in isKnownNeverNaN()
829 case TargetOpcode::G_FADD: in isKnownNeverNaN()
830 case TargetOpcode::G_FSUB: in isKnownNeverNaN()
831 case TargetOpcode::G_FMUL: in isKnownNeverNaN()
832 case TargetOpcode::G_FDIV: in isKnownNeverNaN()
833 case TargetOpcode::G_FREM: in isKnownNeverNaN()
834 case TargetOpcode::G_FSIN: in isKnownNeverNaN()
835 case TargetOpcode::G_FCOS: in isKnownNeverNaN()
836 case TargetOpcode::G_FTAN: in isKnownNeverNaN()
837 case TargetOpcode::G_FACOS: in isKnownNeverNaN()
838 case TargetOpcode::G_FASIN: in isKnownNeverNaN()
839 case TargetOpcode::G_FATAN: in isKnownNeverNaN()
840 case TargetOpcode::G_FCOSH: in isKnownNeverNaN()
841 case TargetOpcode::G_FSINH: in isKnownNeverNaN()
842 case TargetOpcode::G_FTANH: in isKnownNeverNaN()
843 case TargetOpcode::G_FMA: in isKnownNeverNaN()
844 case TargetOpcode::G_FMAD: in isKnownNeverNaN()
850 case TargetOpcode::G_FMINNUM_IEEE: in isKnownNeverNaN()
851 case TargetOpcode::G_FMAXNUM_IEEE: { in isKnownNeverNaN()
861 case TargetOpcode::G_FMINNUM: in isKnownNeverNaN()
862 case TargetOpcode::G_FMAXNUM: { in isKnownNeverNaN()
874 case TargetOpcode::G_FPEXT: in isKnownNeverNaN()
875 case TargetOpcode::G_FPTRUNC: in isKnownNeverNaN()
876 case TargetOpcode::G_FCANONICALIZE: in isKnownNeverNaN()
929 BuildMI(EntryMBB, EntryMBB.begin(), DL, TII.get(TargetOpcode::COPY), LiveIn) in getFunctionLiveInPhysReg()
944 case TargetOpcode::G_SEXT_INREG: { in ConstantFoldExtOp()
963 case TargetOpcode::G_SEXT: in ConstantFoldCastOp()
965 case TargetOpcode::G_ZEXT: in ConstantFoldCastOp()
966 case TargetOpcode::G_ANYEXT: in ConstantFoldCastOp()
979 assert(Opcode == TargetOpcode::G_SITOFP || Opcode == TargetOpcode::G_UITOFP); in ConstantFoldIntToFloat()
982 DstVal.convertFromAPInt(*MaybeSrcVal, Opcode == TargetOpcode::G_SITOFP, in ConstantFoldIntToFloat()
1100 case TargetOpcode::G_CONSTANT: { in isKnownToBeAPowerOfTwo()
1105 case TargetOpcode::G_SHL: { in isKnownToBeAPowerOfTwo()
1117 case TargetOpcode::G_LSHR: { in isKnownToBeAPowerOfTwo()
1125 case TargetOpcode::G_BUILD_VECTOR: { in isKnownToBeAPowerOfTwo()
1134 case TargetOpcode::G_BUILD_VECTOR_TRUNC: { in isKnownToBeAPowerOfTwo()
1308 assert(MI.getOpcode() == TargetOpcode::G_SHUFFLE_VECTOR && in getSplatIndex()
1329 return Opcode == TargetOpcode::G_BUILD_VECTOR || in isBuildVectorOp()
1330 Opcode == TargetOpcode::G_BUILD_VECTOR_TRUNC; in isBuildVectorOp()
1342 bool isConcatVectorsOp = MI->getOpcode() == TargetOpcode::G_CONCAT_VECTORS; in getAnyConstantSplat()
1464 case TargetOpcode::G_CONSTANT: in isConstantScalar()
1465 case TargetOpcode::G_IMPLICIT_DEF: in isConstantScalar()
1467 case TargetOpcode::G_FCONSTANT: in isConstantScalar()
1469 case TargetOpcode::G_GLOBAL_VALUE: in isConstantScalar()
1470 case TargetOpcode::G_FRAME_INDEX: in isConstantScalar()
1471 case TargetOpcode::G_BLOCK_ADDR: in isConstantScalar()
1472 case TargetOpcode::G_JUMP_TABLE: in isConstantScalar()
1531 case TargetOpcode::G_IMPLICIT_DEF: in isNullOrNullSplat()
1533 case TargetOpcode::G_CONSTANT: in isNullOrNullSplat()
1535 case TargetOpcode::G_FCONSTANT: { in isNullOrNullSplat()
1550 case TargetOpcode::G_IMPLICIT_DEF: in isAllOnesOrAllOnesSplat()
1552 case TargetOpcode::G_CONSTANT: in isAllOnesOrAllOnesSplat()
1566 if (AllowUndefs && Def->getOpcode() == TargetOpcode::G_IMPLICIT_DEF) in matchUnaryPredicate()
1570 if (Def->getOpcode() == TargetOpcode::G_CONSTANT) in matchUnaryPredicate()
1573 if (Def->getOpcode() != TargetOpcode::G_BUILD_VECTOR) in matchUnaryPredicate()
1579 if (AllowUndefs && SrcDef->getOpcode() == TargetOpcode::G_IMPLICIT_DEF) { in matchUnaryPredicate()
1585 if (SrcDef->getOpcode() != TargetOpcode::G_CONSTANT || in matchUnaryPredicate()
1692 case TargetOpcode::G_FABS: in isPreISelGenericFloatingPointOpcode()
1693 case TargetOpcode::G_FADD: in isPreISelGenericFloatingPointOpcode()
1694 case TargetOpcode::G_FCANONICALIZE: in isPreISelGenericFloatingPointOpcode()
1695 case TargetOpcode::G_FCEIL: in isPreISelGenericFloatingPointOpcode()
1696 case TargetOpcode::G_FCONSTANT: in isPreISelGenericFloatingPointOpcode()
1697 case TargetOpcode::G_FCOPYSIGN: in isPreISelGenericFloatingPointOpcode()
1698 case TargetOpcode::G_FCOS: in isPreISelGenericFloatingPointOpcode()
1699 case TargetOpcode::G_FDIV: in isPreISelGenericFloatingPointOpcode()
1700 case TargetOpcode::G_FEXP2: in isPreISelGenericFloatingPointOpcode()
1701 case TargetOpcode::G_FEXP: in isPreISelGenericFloatingPointOpcode()
1702 case TargetOpcode::G_FFLOOR: in isPreISelGenericFloatingPointOpcode()
1703 case TargetOpcode::G_FLOG10: in isPreISelGenericFloatingPointOpcode()
1704 case TargetOpcode::G_FLOG2: in isPreISelGenericFloatingPointOpcode()
1705 case TargetOpcode::G_FLOG: in isPreISelGenericFloatingPointOpcode()
1706 case TargetOpcode::G_FMA: in isPreISelGenericFloatingPointOpcode()
1707 case TargetOpcode::G_FMAD: in isPreISelGenericFloatingPointOpcode()
1708 case TargetOpcode::G_FMAXIMUM: in isPreISelGenericFloatingPointOpcode()
1709 case TargetOpcode::G_FMAXNUM: in isPreISelGenericFloatingPointOpcode()
1710 case TargetOpcode::G_FMAXNUM_IEEE: in isPreISelGenericFloatingPointOpcode()
1711 case TargetOpcode::G_FMINIMUM: in isPreISelGenericFloatingPointOpcode()
1712 case TargetOpcode::G_FMINNUM: in isPreISelGenericFloatingPointOpcode()
1713 case TargetOpcode::G_FMINNUM_IEEE: in isPreISelGenericFloatingPointOpcode()
1714 case TargetOpcode::G_FMUL: in isPreISelGenericFloatingPointOpcode()
1715 case TargetOpcode::G_FNEARBYINT: in isPreISelGenericFloatingPointOpcode()
1716 case TargetOpcode::G_FNEG: in isPreISelGenericFloatingPointOpcode()
1717 case TargetOpcode::G_FPEXT: in isPreISelGenericFloatingPointOpcode()
1718 case TargetOpcode::G_FPOW: in isPreISelGenericFloatingPointOpcode()
1719 case TargetOpcode::G_FPTRUNC: in isPreISelGenericFloatingPointOpcode()
1720 case TargetOpcode::G_FREM: in isPreISelGenericFloatingPointOpcode()
1721 case TargetOpcode::G_FRINT: in isPreISelGenericFloatingPointOpcode()
1722 case TargetOpcode::G_FSIN: in isPreISelGenericFloatingPointOpcode()
1723 case TargetOpcode::G_FTAN: in isPreISelGenericFloatingPointOpcode()
1724 case TargetOpcode::G_FACOS: in isPreISelGenericFloatingPointOpcode()
1725 case TargetOpcode::G_FASIN: in isPreISelGenericFloatingPointOpcode()
1726 case TargetOpcode::G_FATAN: in isPreISelGenericFloatingPointOpcode()
1727 case TargetOpcode::G_FCOSH: in isPreISelGenericFloatingPointOpcode()
1728 case TargetOpcode::G_FSINH: in isPreISelGenericFloatingPointOpcode()
1729 case TargetOpcode::G_FTANH: in isPreISelGenericFloatingPointOpcode()
1730 case TargetOpcode::G_FSQRT: in isPreISelGenericFloatingPointOpcode()
1731 case TargetOpcode::G_FSUB: in isPreISelGenericFloatingPointOpcode()
1732 case TargetOpcode::G_INTRINSIC_ROUND: in isPreISelGenericFloatingPointOpcode()
1733 case TargetOpcode::G_INTRINSIC_ROUNDEVEN: in isPreISelGenericFloatingPointOpcode()
1734 case TargetOpcode::G_INTRINSIC_TRUNC: in isPreISelGenericFloatingPointOpcode()
1802 case TargetOpcode::G_BUILD_VECTOR: in canCreateUndefOrPoison()
1803 case TargetOpcode::G_CONSTANT_FOLD_BARRIER: in canCreateUndefOrPoison()
1805 case TargetOpcode::G_SHL: in canCreateUndefOrPoison()
1806 case TargetOpcode::G_ASHR: in canCreateUndefOrPoison()
1807 case TargetOpcode::G_LSHR: in canCreateUndefOrPoison()
1810 case TargetOpcode::G_FPTOSI: in canCreateUndefOrPoison()
1811 case TargetOpcode::G_FPTOUI: in canCreateUndefOrPoison()
1815 case TargetOpcode::G_CTLZ: in canCreateUndefOrPoison()
1816 case TargetOpcode::G_CTTZ: in canCreateUndefOrPoison()
1817 case TargetOpcode::G_ABS: in canCreateUndefOrPoison()
1818 case TargetOpcode::G_CTPOP: in canCreateUndefOrPoison()
1819 case TargetOpcode::G_BSWAP: in canCreateUndefOrPoison()
1820 case TargetOpcode::G_BITREVERSE: in canCreateUndefOrPoison()
1821 case TargetOpcode::G_FSHL: in canCreateUndefOrPoison()
1822 case TargetOpcode::G_FSHR: in canCreateUndefOrPoison()
1823 case TargetOpcode::G_SMAX: in canCreateUndefOrPoison()
1824 case TargetOpcode::G_SMIN: in canCreateUndefOrPoison()
1825 case TargetOpcode::G_UMAX: in canCreateUndefOrPoison()
1826 case TargetOpcode::G_UMIN: in canCreateUndefOrPoison()
1827 case TargetOpcode::G_PTRMASK: in canCreateUndefOrPoison()
1828 case TargetOpcode::G_SADDO: in canCreateUndefOrPoison()
1829 case TargetOpcode::G_SSUBO: in canCreateUndefOrPoison()
1830 case TargetOpcode::G_UADDO: in canCreateUndefOrPoison()
1831 case TargetOpcode::G_USUBO: in canCreateUndefOrPoison()
1832 case TargetOpcode::G_SMULO: in canCreateUndefOrPoison()
1833 case TargetOpcode::G_UMULO: in canCreateUndefOrPoison()
1834 case TargetOpcode::G_SADDSAT: in canCreateUndefOrPoison()
1835 case TargetOpcode::G_UADDSAT: in canCreateUndefOrPoison()
1836 case TargetOpcode::G_SSUBSAT: in canCreateUndefOrPoison()
1837 case TargetOpcode::G_USUBSAT: in canCreateUndefOrPoison()
1839 case TargetOpcode::G_SSHLSAT: in canCreateUndefOrPoison()
1840 case TargetOpcode::G_USHLSAT: in canCreateUndefOrPoison()
1843 case TargetOpcode::G_INSERT_VECTOR_ELT: { in canCreateUndefOrPoison()
1855 case TargetOpcode::G_EXTRACT_VECTOR_ELT: { in canCreateUndefOrPoison()
1867 case TargetOpcode::G_SHUFFLE_VECTOR: { in canCreateUndefOrPoison()
1872 case TargetOpcode::G_FNEG: in canCreateUndefOrPoison()
1873 case TargetOpcode::G_PHI: in canCreateUndefOrPoison()
1874 case TargetOpcode::G_SELECT: in canCreateUndefOrPoison()
1875 case TargetOpcode::G_UREM: in canCreateUndefOrPoison()
1876 case TargetOpcode::G_SREM: in canCreateUndefOrPoison()
1877 case TargetOpcode::G_FREEZE: in canCreateUndefOrPoison()
1878 case TargetOpcode::G_ICMP: in canCreateUndefOrPoison()
1879 case TargetOpcode::G_FCMP: in canCreateUndefOrPoison()
1880 case TargetOpcode::G_FADD: in canCreateUndefOrPoison()
1881 case TargetOpcode::G_FSUB: in canCreateUndefOrPoison()
1882 case TargetOpcode::G_FMUL: in canCreateUndefOrPoison()
1883 case TargetOpcode::G_FDIV: in canCreateUndefOrPoison()
1884 case TargetOpcode::G_FREM: in canCreateUndefOrPoison()
1885 case TargetOpcode::G_PTR_ADD: in canCreateUndefOrPoison()
1902 case TargetOpcode::G_FREEZE: in isGuaranteedNotToBeUndefOrPoison()
1904 case TargetOpcode::G_IMPLICIT_DEF: in isGuaranteedNotToBeUndefOrPoison()
1906 case TargetOpcode::G_CONSTANT: in isGuaranteedNotToBeUndefOrPoison()
1907 case TargetOpcode::G_FCONSTANT: in isGuaranteedNotToBeUndefOrPoison()
1909 case TargetOpcode::G_BUILD_VECTOR: { in isGuaranteedNotToBeUndefOrPoison()
1918 case TargetOpcode::G_PHI: { in isGuaranteedNotToBeUndefOrPoison()