Lines Matching refs:ARM_AM

95                              ARM_AM::ShiftOpc ShOpcVal, unsigned ShAmt);
190 return ARM_AM::getSOImmVal(Imm) != -1; in is_so_imm()
194 return ARM_AM::getSOImmVal(~Imm) != -1; in is_so_imm_not()
198 return ARM_AM::getT2SOImmVal(Imm) != -1; in is_t2_so_imm()
202 return ARM_AM::getT2SOImmVal(~Imm) != -1; in is_t2_so_imm_not()
456 ARM_AM::ShiftOpc ShOpcVal, in isShifterOpProfitable()
463 return ShOpcVal == ARM_AM::lsl && in isShifterOpProfitable()
474 ARM_AM::ShiftOpc ShOpcVal = ARM_AM::getShiftOpcForNode(N.getOpcode()); in SelectImmShifterOperand()
478 if (ShOpcVal == ARM_AM::no_shift) return false; in SelectImmShifterOperand()
485 Opc = CurDAG->getTargetConstant(ARM_AM::getSORegOpc(ShOpcVal, ShImmVal), in SelectImmShifterOperand()
498 ARM_AM::ShiftOpc ShOpcVal = ARM_AM::getShiftOpcForNode(N.getOpcode()); in SelectRegShifterOperand()
502 if (ShOpcVal == ARM_AM::no_shift) return false; in SelectRegShifterOperand()
512 Opc = CurDAG->getTargetConstant(ARM_AM::getSORegOpc(ShOpcVal, ShImmVal), in SelectRegShifterOperand()
576 ARM_AM::AddrOpc AddSub = ARM_AM::add; in SelectLdStSOReg()
578 AddSub = ARM_AM::sub; in SelectLdStSOReg()
584 Opc = CurDAG->getTargetConstant(ARM_AM::getAM2Opc(AddSub, ShAmt, in SelectLdStSOReg()
585 ARM_AM::lsl), in SelectLdStSOReg()
607 ARM_AM::AddrOpc AddSub = N.getOpcode() == ISD::SUB ? ARM_AM::sub:ARM_AM::add; in SelectLdStSOReg()
608 ARM_AM::ShiftOpc ShOpcVal = in SelectLdStSOReg()
609 ARM_AM::getShiftOpcForNode(N.getOperand(1).getOpcode()); in SelectLdStSOReg()
615 if (ShOpcVal != ARM_AM::no_shift) { in SelectLdStSOReg()
625 ShOpcVal = ARM_AM::no_shift; in SelectLdStSOReg()
628 ShOpcVal = ARM_AM::no_shift; in SelectLdStSOReg()
633 if (N.getOpcode() != ISD::SUB && ShOpcVal == ARM_AM::no_shift && in SelectLdStSOReg()
636 ShOpcVal = ARM_AM::getShiftOpcForNode(N.getOperand(0).getOpcode()); in SelectLdStSOReg()
637 if (ShOpcVal != ARM_AM::no_shift) { in SelectLdStSOReg()
648 ShOpcVal = ARM_AM::no_shift; in SelectLdStSOReg()
651 ShOpcVal = ARM_AM::no_shift; in SelectLdStSOReg()
656 Opc = CurDAG->getTargetConstant(ARM_AM::getAM2Opc(AddSub, ShAmt, ShOpcVal), in SelectLdStSOReg()
675 ARM_AM::AddrOpc AddSub = ARM_AM::add; in SelectAddrMode2Worker()
677 AddSub = ARM_AM::sub; in SelectAddrMode2Worker()
683 Opc = CurDAG->getTargetConstant(ARM_AM::getAM2Opc(AddSub, ShAmt, in SelectAddrMode2Worker()
684 ARM_AM::lsl), in SelectAddrMode2Worker()
704 Opc = CurDAG->getTargetConstant(ARM_AM::getAM2Opc(ARM_AM::add, 0, in SelectAddrMode2Worker()
705 ARM_AM::no_shift), in SelectAddrMode2Worker()
722 ARM_AM::AddrOpc AddSub = ARM_AM::add; in SelectAddrMode2Worker()
724 AddSub = ARM_AM::sub; in SelectAddrMode2Worker()
727 Opc = CurDAG->getTargetConstant(ARM_AM::getAM2Opc(AddSub, RHSC, in SelectAddrMode2Worker()
728 ARM_AM::no_shift), in SelectAddrMode2Worker()
738 Opc = CurDAG->getTargetConstant(ARM_AM::getAM2Opc(ARM_AM::add, 0, in SelectAddrMode2Worker()
739 ARM_AM::no_shift), in SelectAddrMode2Worker()
745 ARM_AM::AddrOpc AddSub = N.getOpcode() != ISD::SUB ? ARM_AM::add:ARM_AM::sub; in SelectAddrMode2Worker()
746 ARM_AM::ShiftOpc ShOpcVal = in SelectAddrMode2Worker()
747 ARM_AM::getShiftOpcForNode(N.getOperand(1).getOpcode()); in SelectAddrMode2Worker()
753 if (ShOpcVal != ARM_AM::no_shift) { in SelectAddrMode2Worker()
763 ShOpcVal = ARM_AM::no_shift; in SelectAddrMode2Worker()
766 ShOpcVal = ARM_AM::no_shift; in SelectAddrMode2Worker()
771 if (N.getOpcode() != ISD::SUB && ShOpcVal == ARM_AM::no_shift && in SelectAddrMode2Worker()
774 ShOpcVal = ARM_AM::getShiftOpcForNode(N.getOperand(0).getOpcode()); in SelectAddrMode2Worker()
775 if (ShOpcVal != ARM_AM::no_shift) { in SelectAddrMode2Worker()
786 ShOpcVal = ARM_AM::no_shift; in SelectAddrMode2Worker()
789 ShOpcVal = ARM_AM::no_shift; in SelectAddrMode2Worker()
794 Opc = CurDAG->getTargetConstant(ARM_AM::getAM2Opc(AddSub, ShAmt, ShOpcVal), in SelectAddrMode2Worker()
805 ARM_AM::AddrOpc AddSub = (AM == ISD::PRE_INC || AM == ISD::POST_INC) in SelectAddrMode2OffsetReg()
806 ? ARM_AM::add : ARM_AM::sub; in SelectAddrMode2OffsetReg()
812 ARM_AM::ShiftOpc ShOpcVal = ARM_AM::getShiftOpcForNode(N.getOpcode()); in SelectAddrMode2OffsetReg()
814 if (ShOpcVal != ARM_AM::no_shift) { in SelectAddrMode2OffsetReg()
823 ShOpcVal = ARM_AM::no_shift; in SelectAddrMode2OffsetReg()
826 ShOpcVal = ARM_AM::no_shift; in SelectAddrMode2OffsetReg()
830 Opc = CurDAG->getTargetConstant(ARM_AM::getAM2Opc(AddSub, ShAmt, ShOpcVal), in SelectAddrMode2OffsetReg()
841 ARM_AM::AddrOpc AddSub = (AM == ISD::PRE_INC || AM == ISD::POST_INC) in SelectAddrMode2OffsetImmPre()
842 ? ARM_AM::add : ARM_AM::sub; in SelectAddrMode2OffsetImmPre()
845 if (AddSub == ARM_AM::sub) Val *= -1; in SelectAddrMode2OffsetImmPre()
861 ARM_AM::AddrOpc AddSub = (AM == ISD::PRE_INC || AM == ISD::POST_INC) in SelectAddrMode2OffsetImm()
862 ? ARM_AM::add : ARM_AM::sub; in SelectAddrMode2OffsetImm()
866 Opc = CurDAG->getTargetConstant(ARM_AM::getAM2Opc(AddSub, Val, in SelectAddrMode2OffsetImm()
867 ARM_AM::no_shift), in SelectAddrMode2OffsetImm()
887 Opc = CurDAG->getTargetConstant(ARM_AM::getAM3Opc(ARM_AM::sub, 0),MVT::i32); in SelectAddrMode3()
898 Opc = CurDAG->getTargetConstant(ARM_AM::getAM3Opc(ARM_AM::add, 0),MVT::i32); in SelectAddrMode3()
913 ARM_AM::AddrOpc AddSub = ARM_AM::add; in SelectAddrMode3()
915 AddSub = ARM_AM::sub; in SelectAddrMode3()
918 Opc = CurDAG->getTargetConstant(ARM_AM::getAM3Opc(AddSub, RHSC),MVT::i32); in SelectAddrMode3()
924 Opc = CurDAG->getTargetConstant(ARM_AM::getAM3Opc(ARM_AM::add, 0), MVT::i32); in SelectAddrMode3()
934 ARM_AM::AddrOpc AddSub = (AM == ISD::PRE_INC || AM == ISD::POST_INC) in SelectAddrMode3Offset()
935 ? ARM_AM::add : ARM_AM::sub; in SelectAddrMode3Offset()
939 Opc = CurDAG->getTargetConstant(ARM_AM::getAM3Opc(AddSub, Val), MVT::i32); in SelectAddrMode3Offset()
944 Opc = CurDAG->getTargetConstant(ARM_AM::getAM3Opc(AddSub, 0), MVT::i32); in SelectAddrMode3Offset()
959 Offset = CurDAG->getTargetConstant(ARM_AM::getAM5Opc(ARM_AM::add, 0), in SelectAddrMode5()
974 ARM_AM::AddrOpc AddSub = ARM_AM::add; in SelectAddrMode5()
976 AddSub = ARM_AM::sub; in SelectAddrMode5()
979 Offset = CurDAG->getTargetConstant(ARM_AM::getAM5Opc(AddSub, RHSC), in SelectAddrMode5()
985 Offset = CurDAG->getTargetConstant(ARM_AM::getAM5Opc(ARM_AM::add, 0), in SelectAddrMode5()
1248 ARM_AM::ShiftOpc ShOpcVal = ARM_AM::getShiftOpcForNode(N.getOpcode()); in SelectT2ShifterOperandReg()
1252 if (ShOpcVal == ARM_AM::no_shift) return false; in SelectT2ShifterOperandReg()
1258 Opc = getI32Imm(ARM_AM::getSORegOpc(ShOpcVal, ShImmVal)); in SelectT2ShifterOperandReg()
1382 ARM_AM::ShiftOpc ShOpcVal = ARM_AM::getShiftOpcForNode(OffReg.getOpcode()); in SelectT2AddrModeSoReg()
1383 if (ShOpcVal != ARM_AM::lsl) { in SelectT2AddrModeSoReg()
1384 ShOpcVal = ARM_AM::getShiftOpcForNode(Base.getOpcode()); in SelectT2AddrModeSoReg()
1385 if (ShOpcVal == ARM_AM::lsl) in SelectT2AddrModeSoReg()
1389 if (ShOpcVal == ARM_AM::lsl) { in SelectT2AddrModeSoReg()
2327 ARM_AM::ShiftOpc ShOpcVal = ARM_AM::getShiftOpcForNode(ISD::SRL); in SelectV6T2BitfieldExtractOp()
2329 CurDAG->getTargetConstant(ARM_AM::getSORegOpc(ShOpcVal, LSB), in SelectV6T2BitfieldExtractOp()
2471 !ARM_AM::isThumbImmShiftedVal(Val) && // MOV + LSL in Select()
2474 UseCP = (ARM_AM::getSOImmVal(Val) == -1 && // MOV in Select()
2475 ARM_AM::getSOImmVal(~Val) == -1 && // MVN in Select()
2476 !ARM_AM::isSOImmTwoPartVal(Val) && // two instrs. in Select()
2551 ShImm = ARM_AM::getSORegOpc(ARM_AM::lsl, ShImm); in Select()
2567 ShImm = ARM_AM::getSORegOpc(ARM_AM::lsl, ShImm); in Select()