Lines Matching refs:ARM_AM

160     bool isSub = ARM_AM::getAM2Op(OffImm) == ARM_AM::sub;  in convertToThreeAddress()
161 unsigned Amt = ARM_AM::getAM2Offset(OffImm); in convertToThreeAddress()
163 if (ARM_AM::getSOImmVal(Amt) == -1) in convertToThreeAddress()
175 ARM_AM::ShiftOpc ShOpc = ARM_AM::getAM2ShiftOpc(OffImm); in convertToThreeAddress()
176 unsigned SOOpc = ARM_AM::getSORegOpc(ShOpc, Amt); in convertToThreeAddress()
197 bool isSub = ARM_AM::getAM3Op(OffImm) == ARM_AM::sub; in convertToThreeAddress()
198 unsigned Amt = ARM_AM::getAM3Offset(OffImm); in convertToThreeAddress()
2016 unsigned RotAmt = ARM_AM::getSOImmValRotate(NumBytes); in emitARMRegPlusImmediate()
2017 unsigned ThisVal = NumBytes & ARM_AM::rotr32(0xFF, RotAmt); in emitARMRegPlusImmediate()
2023 assert(ARM_AM::getSOImmVal(ThisVal) != -1 && "Bit extraction didn't work?"); in emitARMRegPlusImmediate()
2171 if (ARM_AM::getSOImmVal(Offset) != -1) { in rewriteARMFrameIndex()
2181 unsigned RotAmt = ARM_AM::getSOImmValRotate(Offset); in rewriteARMFrameIndex()
2182 unsigned ThisImmVal = Offset & ARM_AM::rotr32(0xFF, RotAmt); in rewriteARMFrameIndex()
2188 assert(ARM_AM::getSOImmVal(ThisImmVal) != -1 && in rewriteARMFrameIndex()
2205 InstrOffs = ARM_AM::getAM2Offset(MI.getOperand(ImmIdx).getImm()); in rewriteARMFrameIndex()
2206 if (ARM_AM::getAM2Op(MI.getOperand(ImmIdx).getImm()) == ARM_AM::sub) in rewriteARMFrameIndex()
2213 InstrOffs = ARM_AM::getAM3Offset(MI.getOperand(ImmIdx).getImm()); in rewriteARMFrameIndex()
2214 if (ARM_AM::getAM3Op(MI.getOperand(ImmIdx).getImm()) == ARM_AM::sub) in rewriteARMFrameIndex()
2225 InstrOffs = ARM_AM::getAM5Offset(MI.getOperand(ImmIdx).getImm()); in rewriteARMFrameIndex()
2226 if (ARM_AM::getAM5Op(MI.getOperand(ImmIdx).getImm()) == ARM_AM::sub) in rewriteARMFrameIndex()
2697 if (ARM_AM::isSOImmTwoPartVal(ImmVal)) in FoldImmediate()
2699 else if (ARM_AM::isSOImmTwoPartVal(-ImmVal)) { in FoldImmediate()
2704 SOImmValV1 = (uint32_t)ARM_AM::getSOImmTwoPartFirst(ImmVal); in FoldImmediate()
2705 SOImmValV2 = (uint32_t)ARM_AM::getSOImmTwoPartSecond(ImmVal); in FoldImmediate()
2710 if (!ARM_AM::isSOImmTwoPartVal(ImmVal)) in FoldImmediate()
2712 SOImmValV1 = (uint32_t)ARM_AM::getSOImmTwoPartFirst(ImmVal); in FoldImmediate()
2713 SOImmValV2 = (uint32_t)ARM_AM::getSOImmTwoPartSecond(ImmVal); in FoldImmediate()
2728 if (ARM_AM::isT2SOImmTwoPartVal(ImmVal)) in FoldImmediate()
2730 else if (ARM_AM::isT2SOImmTwoPartVal(-ImmVal)) { in FoldImmediate()
2735 SOImmValV1 = (uint32_t)ARM_AM::getT2SOImmTwoPartFirst(ImmVal); in FoldImmediate()
2736 SOImmValV2 = (uint32_t)ARM_AM::getT2SOImmTwoPartSecond(ImmVal); in FoldImmediate()
2741 if (!ARM_AM::isT2SOImmTwoPartVal(ImmVal)) in FoldImmediate()
2743 SOImmValV1 = (uint32_t)ARM_AM::getT2SOImmTwoPartFirst(ImmVal); in FoldImmediate()
2744 SOImmValV2 = (uint32_t)ARM_AM::getT2SOImmTwoPartSecond(ImmVal); in FoldImmediate()
2788 bool isSub = ARM_AM::getAM2Op(ShOpVal) == ARM_AM::sub; in getNumMicroOpsSwiftLdSt()
2789 unsigned ShImm = ARM_AM::getAM2Offset(ShOpVal); in getNumMicroOpsSwiftLdSt()
2793 ARM_AM::getAM2ShiftOpc(ShOpVal) == ARM_AM::lsl))) in getNumMicroOpsSwiftLdSt()
2804 bool isSub = ARM_AM::getAM2Op(ShOpVal) == ARM_AM::sub; in getNumMicroOpsSwiftLdSt()
2805 unsigned ShImm = ARM_AM::getAM2Offset(ShOpVal); in getNumMicroOpsSwiftLdSt()
2809 ARM_AM::getAM2ShiftOpc(ShOpVal) == ARM_AM::lsl))) in getNumMicroOpsSwiftLdSt()
2816 return (ARM_AM::getAM3Op(MI.getOperand(3).getImm()) == ARM_AM::sub) ? 3 : 2; in getNumMicroOpsSwiftLdSt()
2832 bool isSub = ARM_AM::getAM2Op(ShOpVal) == ARM_AM::sub; in getNumMicroOpsSwiftLdSt()
2833 unsigned ShImm = ARM_AM::getAM2Offset(ShOpVal); in getNumMicroOpsSwiftLdSt()
2837 ARM_AM::getAM2ShiftOpc(ShOpVal) == ARM_AM::lsl))) in getNumMicroOpsSwiftLdSt()
2845 bool isSub = ARM_AM::getAM2Op(ShOpVal) == ARM_AM::sub; in getNumMicroOpsSwiftLdSt()
2846 unsigned ShImm = ARM_AM::getAM2Offset(ShOpVal); in getNumMicroOpsSwiftLdSt()
2850 ARM_AM::getAM2ShiftOpc(ShOpVal) == ARM_AM::lsl))) in getNumMicroOpsSwiftLdSt()
2863 return (ARM_AM::getAM3Op(MI.getOperand(4).getImm()) == ARM_AM::sub) ? 3 : 2; in getNumMicroOpsSwiftLdSt()
2896 bool isSub = ARM_AM::getAM2Op(ShOpVal) == ARM_AM::sub; in getNumMicroOpsSwiftLdSt()
2897 unsigned ShImm = ARM_AM::getAM2Offset(ShOpVal); in getNumMicroOpsSwiftLdSt()
2901 ARM_AM::getAM2ShiftOpc(ShOpVal) == ARM_AM::lsl))) in getNumMicroOpsSwiftLdSt()
2911 return (ARM_AM::getAM3Op(MI.getOperand(4).getImm()) == ARM_AM::sub) ? 4 in getNumMicroOpsSwiftLdSt()
2919 return (ARM_AM::getAM3Op(MI.getOperand(4).getImm()) == ARM_AM::sub) ? 4 in getNumMicroOpsSwiftLdSt()
2937 return (ARM_AM::getAM3Op(MI.getOperand(5).getImm()) == ARM_AM::sub) ? 5 in getNumMicroOpsSwiftLdSt()
2951 return (ARM_AM::getAM3Op(MI.getOperand(5).getImm()) == ARM_AM::sub) ? 5 in getNumMicroOpsSwiftLdSt()
3507 unsigned ShImm = ARM_AM::getAM2Offset(ShOpVal); in adjustDefLatency()
3509 (ShImm == 2 && ARM_AM::getAM2ShiftOpc(ShOpVal) == ARM_AM::lsl)) in adjustDefLatency()
3532 bool isSub = ARM_AM::getAM2Op(ShOpVal) == ARM_AM::sub; in adjustDefLatency()
3533 unsigned ShImm = ARM_AM::getAM2Offset(ShOpVal); in adjustDefLatency()
3537 ARM_AM::getAM2ShiftOpc(ShOpVal) == ARM_AM::lsl))) in adjustDefLatency()
3540 ShImm == 1 && ARM_AM::getAM2ShiftOpc(ShOpVal) == ARM_AM::lsr) in adjustDefLatency()
3812 unsigned ShImm = ARM_AM::getAM2Offset(ShOpVal); in getOperandLatency()
3814 (ShImm == 2 && ARM_AM::getAM2ShiftOpc(ShOpVal) == ARM_AM::lsl)) in getOperandLatency()
3839 unsigned ShImm = ARM_AM::getAM2Offset(ShOpVal); in getOperandLatency()
3842 ARM_AM::getAM2ShiftOpc(ShOpVal) == ARM_AM::lsl)) in getOperandLatency()
3844 else if (ShImm == 1 && ARM_AM::getAM2ShiftOpc(ShOpVal) == ARM_AM::lsr) in getOperandLatency()
4585 unsigned ShImm = ARM_AM::getSORegOffset(ShOpVal); in isSwiftFastImmShift()
4587 if ((ShImm == 1 && ARM_AM::getSORegShOp(ShOpVal) == ARM_AM::lsr) || in isSwiftFastImmShift()
4589 ARM_AM::getSORegShOp(ShOpVal) == ARM_AM::lsl)) in isSwiftFastImmShift()