Lines Matching refs:ARM_AM
171 bool isSub = ARM_AM::getAM2Op(OffImm) == ARM_AM::sub; in convertToThreeAddress()
172 unsigned Amt = ARM_AM::getAM2Offset(OffImm); in convertToThreeAddress()
174 if (ARM_AM::getSOImmVal(Amt) == -1) in convertToThreeAddress()
183 ARM_AM::ShiftOpc ShOpc = ARM_AM::getAM2ShiftOpc(OffImm); in convertToThreeAddress()
184 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()
1962 unsigned RotAmt = ARM_AM::getSOImmValRotate(NumBytes); in emitARMRegPlusImmediate()
1963 unsigned ThisVal = NumBytes & ARM_AM::rotr32(0xFF, RotAmt); in emitARMRegPlusImmediate()
1969 assert(ARM_AM::getSOImmVal(ThisVal) != -1 && "Bit extraction didn't work?"); in emitARMRegPlusImmediate()
2128 if (ARM_AM::getSOImmVal(Offset) != -1) { in rewriteARMFrameIndex()
2138 unsigned RotAmt = ARM_AM::getSOImmValRotate(Offset); in rewriteARMFrameIndex()
2139 unsigned ThisImmVal = Offset & ARM_AM::rotr32(0xFF, RotAmt); in rewriteARMFrameIndex()
2145 assert(ARM_AM::getSOImmVal(ThisImmVal) != -1 && in rewriteARMFrameIndex()
2162 InstrOffs = ARM_AM::getAM2Offset(MI.getOperand(ImmIdx).getImm()); in rewriteARMFrameIndex()
2163 if (ARM_AM::getAM2Op(MI.getOperand(ImmIdx).getImm()) == ARM_AM::sub) in rewriteARMFrameIndex()
2170 InstrOffs = ARM_AM::getAM3Offset(MI.getOperand(ImmIdx).getImm()); in rewriteARMFrameIndex()
2171 if (ARM_AM::getAM3Op(MI.getOperand(ImmIdx).getImm()) == ARM_AM::sub) in rewriteARMFrameIndex()
2182 InstrOffs = ARM_AM::getAM5Offset(MI.getOperand(ImmIdx).getImm()); in rewriteARMFrameIndex()
2183 if (ARM_AM::getAM5Op(MI.getOperand(ImmIdx).getImm()) == ARM_AM::sub) in rewriteARMFrameIndex()
2667 if (!ARM_AM::isSOImmTwoPartVal(ImmVal)) in FoldImmediate()
2669 SOImmValV1 = (uint32_t)ARM_AM::getSOImmTwoPartFirst(ImmVal); in FoldImmediate()
2670 SOImmValV2 = (uint32_t)ARM_AM::getSOImmTwoPartSecond(ImmVal); in FoldImmediate()
2689 if (!ARM_AM::isT2SOImmTwoPartVal(ImmVal)) in FoldImmediate()
2691 SOImmValV1 = (uint32_t)ARM_AM::getT2SOImmTwoPartFirst(ImmVal); in FoldImmediate()
2692 SOImmValV2 = (uint32_t)ARM_AM::getT2SOImmTwoPartSecond(ImmVal); in FoldImmediate()
2737 bool isSub = ARM_AM::getAM2Op(ShOpVal) == ARM_AM::sub; in getNumMicroOpsSwiftLdSt()
2738 unsigned ShImm = ARM_AM::getAM2Offset(ShOpVal); in getNumMicroOpsSwiftLdSt()
2742 ARM_AM::getAM2ShiftOpc(ShOpVal) == ARM_AM::lsl))) in getNumMicroOpsSwiftLdSt()
2753 bool isSub = ARM_AM::getAM2Op(ShOpVal) == ARM_AM::sub; in getNumMicroOpsSwiftLdSt()
2754 unsigned ShImm = ARM_AM::getAM2Offset(ShOpVal); in getNumMicroOpsSwiftLdSt()
2758 ARM_AM::getAM2ShiftOpc(ShOpVal) == ARM_AM::lsl))) in getNumMicroOpsSwiftLdSt()
2765 return (ARM_AM::getAM3Op(MI->getOperand(3).getImm()) == ARM_AM::sub) ? 3:2; in getNumMicroOpsSwiftLdSt()
2781 bool isSub = ARM_AM::getAM2Op(ShOpVal) == ARM_AM::sub; in getNumMicroOpsSwiftLdSt()
2782 unsigned ShImm = ARM_AM::getAM2Offset(ShOpVal); in getNumMicroOpsSwiftLdSt()
2786 ARM_AM::getAM2ShiftOpc(ShOpVal) == ARM_AM::lsl))) in getNumMicroOpsSwiftLdSt()
2794 bool isSub = ARM_AM::getAM2Op(ShOpVal) == ARM_AM::sub; in getNumMicroOpsSwiftLdSt()
2795 unsigned ShImm = ARM_AM::getAM2Offset(ShOpVal); in getNumMicroOpsSwiftLdSt()
2799 ARM_AM::getAM2ShiftOpc(ShOpVal) == ARM_AM::lsl))) in getNumMicroOpsSwiftLdSt()
2812 return (ARM_AM::getAM3Op(MI->getOperand(4).getImm()) == ARM_AM::sub) in getNumMicroOpsSwiftLdSt()
2846 bool isSub = ARM_AM::getAM2Op(ShOpVal) == ARM_AM::sub; in getNumMicroOpsSwiftLdSt()
2847 unsigned ShImm = ARM_AM::getAM2Offset(ShOpVal); in getNumMicroOpsSwiftLdSt()
2851 ARM_AM::getAM2ShiftOpc(ShOpVal) == ARM_AM::lsl))) in getNumMicroOpsSwiftLdSt()
2861 return (ARM_AM::getAM3Op(MI->getOperand(4).getImm()) == ARM_AM::sub) ?4:3; in getNumMicroOpsSwiftLdSt()
2868 return (ARM_AM::getAM3Op(MI->getOperand(4).getImm()) == ARM_AM::sub) ?4:3; in getNumMicroOpsSwiftLdSt()
2885 return (ARM_AM::getAM3Op(MI->getOperand(5).getImm()) == ARM_AM::sub) ?5:4; in getNumMicroOpsSwiftLdSt()
2898 return (ARM_AM::getAM3Op(MI->getOperand(5).getImm()) == ARM_AM::sub) ?5:4; in getNumMicroOpsSwiftLdSt()
3444 unsigned ShImm = ARM_AM::getAM2Offset(ShOpVal); in adjustDefLatency()
3446 (ShImm == 2 && ARM_AM::getAM2ShiftOpc(ShOpVal) == ARM_AM::lsl)) in adjustDefLatency()
3469 bool isSub = ARM_AM::getAM2Op(ShOpVal) == ARM_AM::sub; in adjustDefLatency()
3470 unsigned ShImm = ARM_AM::getAM2Offset(ShOpVal); in adjustDefLatency()
3474 ARM_AM::getAM2ShiftOpc(ShOpVal) == ARM_AM::lsl))) in adjustDefLatency()
3477 ShImm == 1 && ARM_AM::getAM2ShiftOpc(ShOpVal) == ARM_AM::lsr) in adjustDefLatency()
3745 unsigned ShImm = ARM_AM::getAM2Offset(ShOpVal); in getOperandLatency()
3747 (ShImm == 2 && ARM_AM::getAM2ShiftOpc(ShOpVal) == ARM_AM::lsl)) in getOperandLatency()
3772 unsigned ShImm = ARM_AM::getAM2Offset(ShOpVal); in getOperandLatency()
3775 ARM_AM::getAM2ShiftOpc(ShOpVal) == ARM_AM::lsl)) in getOperandLatency()
3777 else if (ShImm == 1 && ARM_AM::getAM2ShiftOpc(ShOpVal) == ARM_AM::lsr) in getOperandLatency()
4523 unsigned ShImm = ARM_AM::getSORegOffset(ShOpVal); in isSwiftFastImmShift()
4525 if ((ShImm == 1 && ARM_AM::getSORegShOp(ShOpVal) == ARM_AM::lsr) || in isSwiftFastImmShift()
4527 ARM_AM::getSORegShOp(ShOpVal) == ARM_AM::lsl)) in isSwiftFastImmShift()