Home | History | Annotate | Download | only in PowerPC

Lines Matching refs:CurDAG

64       return CurDAG->getTargetConstant(Imm, MVT::i32);
70 return CurDAG->getTargetConstant(Imm, MVT::i64);
75 return CurDAG->getTargetConstant(Imm, PPCLowering.getPointerTy());
108 return PPCLowering.SelectAddressRegImm(N, Disp, Base, *CurDAG);
123 return PPCLowering.SelectAddressRegReg(N, Base, Index, *CurDAG);
129 return PPCLowering.SelectAddressRegRegOnly(N, Base, Index, *CurDAG);
136 return PPCLowering.SelectAddressRegImmShift(N, Disp, Base, *CurDAG);
251 return CurDAG->getRegister(GlobalBaseReg,
381 CurDAG->ComputeMaskedBits(Op0, APInt::getAllOnesValue(32), LKZ, LKO);
382 CurDAG->ComputeMaskedBits(Op1, APInt::getAllOnesValue(32), RKZ, RKO);
438 return CurDAG->getMachineNode(PPC::RLWIMI, dl, MVT::i32, Ops, 5);
457 return SDValue(CurDAG->getMachineNode(PPC::CMPLWI, dl, MVT::i32, LHS,
461 return SDValue(CurDAG->getMachineNode(PPC::CMPWI, dl, MVT::i32, LHS,
473 SDValue Xor(CurDAG->getMachineNode(PPC::XORIS, dl, MVT::i32, LHS,
475 return SDValue(CurDAG->getMachineNode(PPC::CMPLWI, dl, MVT::i32, Xor,
481 return SDValue(CurDAG->getMachineNode(PPC::CMPLWI, dl, MVT::i32, LHS,
487 return SDValue(CurDAG->getMachineNode(PPC::CMPWI, dl, MVT::i32, LHS,
498 return SDValue(CurDAG->getMachineNode(PPC::CMPLDI, dl, MVT::i64, LHS,
502 return SDValue(CurDAG->getMachineNode(PPC::CMPDI, dl, MVT::i64, LHS,
515 SDValue Xor(CurDAG->getMachineNode(PPC::XORIS8, dl, MVT::i64, LHS,
517 return SDValue(CurDAG->getMachineNode(PPC::CMPLDI, dl, MVT::i64, Xor,
524 return SDValue(CurDAG->getMachineNode(PPC::CMPLDI, dl, MVT::i64, LHS,
530 return SDValue(CurDAG->getMachineNode(PPC::CMPDI, dl, MVT::i64, LHS,
541 return SDValue(CurDAG->getMachineNode(Opc, dl, MVT::i32, LHS, RHS), 0);
613 EVT PtrVT = CurDAG->getTargetLoweringInfo().getPointerTy();
625 Op = SDValue(CurDAG->getMachineNode(PPC::CNTLZW, dl, MVT::i32, Op), 0);
627 return CurDAG->SelectNodeTo(N, PPC::RLWINM, MVT::i32, Ops, 4);
632 SDValue(CurDAG->getMachineNode(PPC::ADDIC, dl, MVT::i32, MVT::Glue,
634 return CurDAG->SelectNodeTo(N, PPC::SUBFE, MVT::i32, AD, Op,
639 return CurDAG->SelectNodeTo(N, PPC::RLWINM, MVT::i32, Ops, 4);
643 SDValue(CurDAG->getMachineNode(PPC::NEG, dl, MVT::i32, Op), 0);
644 T = SDValue(CurDAG->getMachineNode(PPC::ANDC, dl, MVT::i32, T, Op), 0);
646 return CurDAG->SelectNodeTo(N, PPC::RLWINM, MVT::i32, Ops, 4);
655 Op = SDValue(CurDAG->getMachineNode(PPC::ADDIC, dl, MVT::i32, MVT::Glue,
657 return CurDAG->SelectNodeTo(N, PPC::ADDZE, MVT::i32,
658 SDValue(CurDAG->getMachineNode(PPC::LI, dl,
664 Op = SDValue(CurDAG->getMachineNode(PPC::NOR, dl, MVT::i32, Op, Op), 0);
665 SDNode *AD = CurDAG->getMachineNode(PPC::ADDIC, dl, MVT::i32, MVT::Glue,
667 return CurDAG->SelectNodeTo(N, PPC::SUBFE, MVT::i32, SDValue(AD, 0),
671 SDValue AD = SDValue(CurDAG->getMachineNode(PPC::ADDI, dl, MVT::i32, Op,
673 SDValue AN = SDValue(CurDAG->getMachineNode(PPC::AND, dl, MVT::i32, AD,
676 return CurDAG->SelectNodeTo(N, PPC::RLWINM, MVT::i32, Ops, 4);
680 Op = SDValue(CurDAG->getMachineNode(PPC::RLWINM, dl, MVT::i32, Ops, 4),
682 return CurDAG->SelectNodeTo(N, PPC::XORI, MVT::i32, Op,
696 SDValue CR7Reg = CurDAG->getRegister(PPC::CR7, MVT::i32);
699 CCReg = CurDAG->getCopyToReg(CurDAG->getEntryNode(), dl, CR7Reg, CCReg,
703 IntCR = SDValue(CurDAG->getMachineNode(PPC::MFOCRF, dl, MVT::i32, CR7Reg,
706 IntCR = SDValue(CurDAG->getMachineNode(PPC::MFCRpseud, dl, MVT::i32,
712 return CurDAG->SelectNodeTo(N, PPC::RLWINM, MVT::i32, Ops, 4);
716 SDValue(CurDAG->getMachineNode(PPC::RLWINM, dl, MVT::i32, Ops, 4), 0);
719 return CurDAG->SelectNodeTo(N, PPC::XORI, MVT::i32, Tmp, getI32Imm(1));
728 SDValue(CurDAG->getMachineNode(PPC::RLWINM, dl, MVT::i32, Ops, 4), 0);
730 return CurDAG->SelectNodeTo(N, PPC::OR, MVT::i32, Tmp, OtherCond);
780 Result = CurDAG->getMachineNode(PPC::LI8, dl, MVT::i64, getI32Imm(Lo));
784 Result = CurDAG->getMachineNode(OpC, dl, MVT::i64, getI32Imm(Hi));
786 Result = CurDAG->getMachineNode(PPC::ORI8, dl, MVT::i64,
790 Result = CurDAG->getMachineNode(PPC::LIS8, dl, MVT::i64, getI32Imm(Hi));
798 Result = CurDAG->getMachineNode(PPC::RLDICR, dl, MVT::i64,
806 Result = CurDAG->getMachineNode(PPC::ORIS8, dl, MVT::i64,
810 Result = CurDAG->getMachineNode(PPC::ORI8, dl, MVT::i64,
826 SDValue TFI = CurDAG->getTargetFrameIndex(FI, N->getValueType(0));
829 return CurDAG->SelectNodeTo(N, Opc, N->getValueType(0), TFI,
831 return CurDAG->getMachineNode(Opc, dl, N->getValueType(0), TFI,
839 return CurDAG->getMachineNode(PPC::MFOCRF, dl, MVT::i32,
842 return CurDAG->getMachineNode(PPC::MFCRpseud, dl, MVT::i32,
857 CurDAG->getMachineNode(PPC::SRAWI, dl, MVT::i32, MVT::Glue,
859 return CurDAG->SelectNodeTo(N, PPC::ADDZE, MVT::i32,
863 CurDAG->getMachineNode(PPC::SRAWI, dl, MVT::i32, MVT::Glue,
866 SDValue(CurDAG->getMachineNode(PPC::ADDZE, dl, MVT::i32,
869 return CurDAG->SelectNodeTo(N, PPC::NEG, MVT::i32, PT);
921 return CurDAG->getMachineNode(Opcode, dl, LD->getValueType(0),
938 return CurDAG->SelectNodeTo(N, PPC::RLWINM, MVT::i32, Ops, 4);
947 return CurDAG->SelectNodeTo(N, PPC::RLWINM, MVT::i32, Ops, 4);
965 return CurDAG->getMachineNode(PPC::RLWIMI, dl, MVT::i32, Ops, 5);
985 return CurDAG->SelectNodeTo(N, PPC::RLWINM, MVT::i32, Ops, 4);
997 return CurDAG->SelectNodeTo(N, PPC::RLWINM, MVT::i32, Ops, 4);
1005 EVT PtrVT = CurDAG->getTargetLoweringInfo().getPointerTy();
1018 CurDAG->getMachineNode(PPC::ADDIC, dl, MVT::i32, MVT::Glue,
1020 return CurDAG->SelectNodeTo(N, PPC::SUBFE, MVT::i32,
1042 return CurDAG->SelectNodeTo(N, SelectCCOp, N->getValueType(0), Ops, 4);
1055 return CurDAG->SelectNodeTo(N, PPC::BCC, MVT::Other, Ops, 5);
1062 return CurDAG->SelectNodeTo(N, PPC::BCC, MVT::Other, Ops, 4);
1070 Chain = SDValue(CurDAG->getMachineNode(Opc, dl, MVT::Other, Target,
1072 return CurDAG->SelectNodeTo(N, Reg, MVT::Other, Chain);