Lines Matching refs:ARM_AM

89                              ARM_AM::ShiftOpc ShOpcVal, unsigned ShAmt);
177 return ARM_AM::getSOImmVal(Imm) != -1; in is_so_imm()
181 return ARM_AM::getSOImmVal(~Imm) != -1; in is_so_imm_not()
185 return ARM_AM::getT2SOImmVal(Imm) != -1; in is_t2_so_imm()
189 return ARM_AM::getT2SOImmVal(~Imm) != -1; in is_t2_so_imm_not()
464 ARM_AM::ShiftOpc ShOpcVal, in isShifterOpProfitable()
471 return ShOpcVal == ARM_AM::lsl && in isShifterOpProfitable()
481 if (ARM_AM::isThumbImmShiftedVal(Val)) return 2; // MOV + LSL in ConstantMaterializationCost()
483 if (ARM_AM::getSOImmVal(Val) != -1) return 1; // MOV in ConstantMaterializationCost()
484 if (ARM_AM::getSOImmVal(~Val) != -1) return 1; // MVN in ConstantMaterializationCost()
486 if (ARM_AM::isSOImmTwoPartVal(Val)) return 2; // two instrs in ConstantMaterializationCost()
547 Opc = CurDAG->getTargetConstant(ARM_AM::getSORegOpc(ARM_AM::lsl, in SelectImmShifterOperand()
554 ARM_AM::ShiftOpc ShOpcVal = ARM_AM::getShiftOpcForNode(N.getOpcode()); in SelectImmShifterOperand()
558 if (ShOpcVal == ARM_AM::no_shift) return false; in SelectImmShifterOperand()
565 Opc = CurDAG->getTargetConstant(ARM_AM::getSORegOpc(ShOpcVal, ShImmVal), in SelectImmShifterOperand()
578 ARM_AM::ShiftOpc ShOpcVal = ARM_AM::getShiftOpcForNode(N.getOpcode()); in SelectRegShifterOperand()
582 if (ShOpcVal == ARM_AM::no_shift) return false; in SelectRegShifterOperand()
592 Opc = CurDAG->getTargetConstant(ARM_AM::getSORegOpc(ShOpcVal, ShImmVal), in SelectRegShifterOperand()
660 ARM_AM::AddrOpc AddSub = ARM_AM::add; in SelectLdStSOReg()
662 AddSub = ARM_AM::sub; in SelectLdStSOReg()
668 Opc = CurDAG->getTargetConstant(ARM_AM::getAM2Opc(AddSub, ShAmt, in SelectLdStSOReg()
669 ARM_AM::lsl), in SelectLdStSOReg()
691 ARM_AM::AddrOpc AddSub = N.getOpcode() == ISD::SUB ? ARM_AM::sub:ARM_AM::add; in SelectLdStSOReg()
692 ARM_AM::ShiftOpc ShOpcVal = in SelectLdStSOReg()
693 ARM_AM::getShiftOpcForNode(N.getOperand(1).getOpcode()); in SelectLdStSOReg()
699 if (ShOpcVal != ARM_AM::no_shift) { in SelectLdStSOReg()
709 ShOpcVal = ARM_AM::no_shift; in SelectLdStSOReg()
712 ShOpcVal = ARM_AM::no_shift; in SelectLdStSOReg()
717 if (N.getOpcode() != ISD::SUB && ShOpcVal == ARM_AM::no_shift && in SelectLdStSOReg()
720 ShOpcVal = ARM_AM::getShiftOpcForNode(N.getOperand(0).getOpcode()); in SelectLdStSOReg()
721 if (ShOpcVal != ARM_AM::no_shift) { in SelectLdStSOReg()
732 ShOpcVal = ARM_AM::no_shift; in SelectLdStSOReg()
735 ShOpcVal = ARM_AM::no_shift; in SelectLdStSOReg()
748 ShOpcVal = ARM_AM::lsl; in SelectLdStSOReg()
752 Opc = CurDAG->getTargetConstant(ARM_AM::getAM2Opc(AddSub, ShAmt, ShOpcVal), in SelectLdStSOReg()
771 ARM_AM::AddrOpc AddSub = ARM_AM::add; in SelectAddrMode2Worker()
773 AddSub = ARM_AM::sub; in SelectAddrMode2Worker()
779 Opc = CurDAG->getTargetConstant(ARM_AM::getAM2Opc(AddSub, ShAmt, in SelectAddrMode2Worker()
780 ARM_AM::lsl), in SelectAddrMode2Worker()
803 Opc = CurDAG->getTargetConstant(ARM_AM::getAM2Opc(ARM_AM::add, 0, in SelectAddrMode2Worker()
804 ARM_AM::no_shift), in SelectAddrMode2Worker()
822 ARM_AM::AddrOpc AddSub = ARM_AM::add; in SelectAddrMode2Worker()
824 AddSub = ARM_AM::sub; in SelectAddrMode2Worker()
827 Opc = CurDAG->getTargetConstant(ARM_AM::getAM2Opc(AddSub, RHSC, in SelectAddrMode2Worker()
828 ARM_AM::no_shift), in SelectAddrMode2Worker()
838 Opc = CurDAG->getTargetConstant(ARM_AM::getAM2Opc(ARM_AM::add, 0, in SelectAddrMode2Worker()
839 ARM_AM::no_shift), in SelectAddrMode2Worker()
845 ARM_AM::AddrOpc AddSub = N.getOpcode() != ISD::SUB ? ARM_AM::add:ARM_AM::sub; in SelectAddrMode2Worker()
846 ARM_AM::ShiftOpc ShOpcVal = in SelectAddrMode2Worker()
847 ARM_AM::getShiftOpcForNode(N.getOperand(1).getOpcode()); in SelectAddrMode2Worker()
853 if (ShOpcVal != ARM_AM::no_shift) { in SelectAddrMode2Worker()
863 ShOpcVal = ARM_AM::no_shift; in SelectAddrMode2Worker()
866 ShOpcVal = ARM_AM::no_shift; in SelectAddrMode2Worker()
871 if (N.getOpcode() != ISD::SUB && ShOpcVal == ARM_AM::no_shift && in SelectAddrMode2Worker()
874 ShOpcVal = ARM_AM::getShiftOpcForNode(N.getOperand(0).getOpcode()); in SelectAddrMode2Worker()
875 if (ShOpcVal != ARM_AM::no_shift) { in SelectAddrMode2Worker()
886 ShOpcVal = ARM_AM::no_shift; in SelectAddrMode2Worker()
889 ShOpcVal = ARM_AM::no_shift; in SelectAddrMode2Worker()
894 Opc = CurDAG->getTargetConstant(ARM_AM::getAM2Opc(AddSub, ShAmt, ShOpcVal), in SelectAddrMode2Worker()
905 ARM_AM::AddrOpc AddSub = (AM == ISD::PRE_INC || AM == ISD::POST_INC) in SelectAddrMode2OffsetReg()
906 ? ARM_AM::add : ARM_AM::sub; in SelectAddrMode2OffsetReg()
912 ARM_AM::ShiftOpc ShOpcVal = ARM_AM::getShiftOpcForNode(N.getOpcode()); in SelectAddrMode2OffsetReg()
914 if (ShOpcVal != ARM_AM::no_shift) { in SelectAddrMode2OffsetReg()
923 ShOpcVal = ARM_AM::no_shift; in SelectAddrMode2OffsetReg()
926 ShOpcVal = ARM_AM::no_shift; in SelectAddrMode2OffsetReg()
930 Opc = CurDAG->getTargetConstant(ARM_AM::getAM2Opc(AddSub, ShAmt, ShOpcVal), in SelectAddrMode2OffsetReg()
941 ARM_AM::AddrOpc AddSub = (AM == ISD::PRE_INC || AM == ISD::POST_INC) in SelectAddrMode2OffsetImmPre()
942 ? ARM_AM::add : ARM_AM::sub; in SelectAddrMode2OffsetImmPre()
945 if (AddSub == ARM_AM::sub) Val *= -1; in SelectAddrMode2OffsetImmPre()
961 ARM_AM::AddrOpc AddSub = (AM == ISD::PRE_INC || AM == ISD::POST_INC) in SelectAddrMode2OffsetImm()
962 ? ARM_AM::add : ARM_AM::sub; in SelectAddrMode2OffsetImm()
966 Opc = CurDAG->getTargetConstant(ARM_AM::getAM2Opc(AddSub, Val, in SelectAddrMode2OffsetImm()
967 ARM_AM::no_shift), in SelectAddrMode2OffsetImm()
987 Opc = CurDAG->getTargetConstant(ARM_AM::getAM3Opc(ARM_AM::sub, 0), SDLoc(N), in SelectAddrMode3()
1000 Opc = CurDAG->getTargetConstant(ARM_AM::getAM3Opc(ARM_AM::add, 0), SDLoc(N), in SelectAddrMode3()
1017 ARM_AM::AddrOpc AddSub = ARM_AM::add; in SelectAddrMode3()
1019 AddSub = ARM_AM::sub; in SelectAddrMode3()
1022 Opc = CurDAG->getTargetConstant(ARM_AM::getAM3Opc(AddSub, RHSC), SDLoc(N), in SelectAddrMode3()
1029 Opc = CurDAG->getTargetConstant(ARM_AM::getAM3Opc(ARM_AM::add, 0), SDLoc(N), in SelectAddrMode3()
1040 ARM_AM::AddrOpc AddSub = (AM == ISD::PRE_INC || AM == ISD::POST_INC) in SelectAddrMode3Offset()
1041 ? ARM_AM::add : ARM_AM::sub; in SelectAddrMode3Offset()
1045 Opc = CurDAG->getTargetConstant(ARM_AM::getAM3Opc(AddSub, Val), SDLoc(Op), in SelectAddrMode3Offset()
1051 Opc = CurDAG->getTargetConstant(ARM_AM::getAM3Opc(AddSub, 0), SDLoc(Op), in SelectAddrMode3Offset()
1070 Offset = CurDAG->getTargetConstant(ARM_AM::getAM5Opc(ARM_AM::add, 0), in SelectAddrMode5()
1086 ARM_AM::AddrOpc AddSub = ARM_AM::add; in SelectAddrMode5()
1088 AddSub = ARM_AM::sub; in SelectAddrMode5()
1091 Offset = CurDAG->getTargetConstant(ARM_AM::getAM5Opc(AddSub, RHSC), in SelectAddrMode5()
1097 Offset = CurDAG->getTargetConstant(ARM_AM::getAM5Opc(ARM_AM::add, 0), in SelectAddrMode5()
1399 ARM_AM::ShiftOpc ShOpcVal = ARM_AM::getShiftOpcForNode(OffReg.getOpcode()); in SelectT2AddrModeSoReg()
1400 if (ShOpcVal != ARM_AM::lsl) { in SelectT2AddrModeSoReg()
1401 ShOpcVal = ARM_AM::getShiftOpcForNode(Base.getOpcode()); in SelectT2AddrModeSoReg()
1402 if (ShOpcVal == ARM_AM::lsl) in SelectT2AddrModeSoReg()
1406 if (ShOpcVal == ARM_AM::lsl) { in SelectT2AddrModeSoReg()
2370 ARM_AM::ShiftOpc ShOpcVal = ARM_AM::getShiftOpcForNode(ISD::SRL); in tryV6T2BitfieldExtractOp()
2372 CurDAG->getTargetConstant(ARM_AM::getSORegOpc(ShOpcVal, LSB), dl, in tryV6T2BitfieldExtractOp()
2774 ShImm = ARM_AM::getSORegOpc(ARM_AM::lsl, ShImm); in Select()
2793 ShImm = ARM_AM::getSORegOpc(ARM_AM::lsl, ShImm); in Select()