• Home
  • Raw
  • Download

Lines Matching refs:getOperand

273     ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op.getOperand(1));  in ShrinkDemandedConstant()
283 SDValue New = DAG.getNode(Op.getOpcode(), dl, VT, Op.getOperand(0), in ShrinkDemandedConstant()
330 Op.getNode()->getOperand(0)), in ShrinkDemandedOp()
332 Op.getNode()->getOperand(1))); in ShrinkDemandedOp()
396 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(Op.getOperand(1))) { in SimplifyDemandedBits()
399 TLO.DAG.ComputeMaskedBits(Op.getOperand(0), LHSZero, LHSOne, Depth); in SimplifyDemandedBits()
402 return TLO.CombineTo(Op, Op.getOperand(0)); in SimplifyDemandedBits()
409 if (SimplifyDemandedBits(Op.getOperand(1), NewMask, KnownZero, in SimplifyDemandedBits()
413 if (SimplifyDemandedBits(Op.getOperand(0), ~KnownZero & NewMask, in SimplifyDemandedBits()
421 return TLO.CombineTo(Op, Op.getOperand(0)); in SimplifyDemandedBits()
423 return TLO.CombineTo(Op, Op.getOperand(1)); in SimplifyDemandedBits()
440 if (SimplifyDemandedBits(Op.getOperand(1), NewMask, KnownZero, in SimplifyDemandedBits()
444 if (SimplifyDemandedBits(Op.getOperand(0), ~KnownOne & NewMask, in SimplifyDemandedBits()
452 return TLO.CombineTo(Op, Op.getOperand(0)); in SimplifyDemandedBits()
454 return TLO.CombineTo(Op, Op.getOperand(1)); in SimplifyDemandedBits()
458 return TLO.CombineTo(Op, Op.getOperand(0)); in SimplifyDemandedBits()
460 return TLO.CombineTo(Op, Op.getOperand(1)); in SimplifyDemandedBits()
474 if (SimplifyDemandedBits(Op.getOperand(1), NewMask, KnownZero, in SimplifyDemandedBits()
478 if (SimplifyDemandedBits(Op.getOperand(0), NewMask, KnownZero2, in SimplifyDemandedBits()
486 return TLO.CombineTo(Op, Op.getOperand(0)); in SimplifyDemandedBits()
488 return TLO.CombineTo(Op, Op.getOperand(1)); in SimplifyDemandedBits()
498 Op.getOperand(0), in SimplifyDemandedBits()
499 Op.getOperand(1))); in SimplifyDemandedBits()
516 Op.getOperand(0), ANDC)); in SimplifyDemandedBits()
523 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op.getOperand(1))) { in SimplifyDemandedBits()
529 SDValue New = TLO.DAG.getNode(Op.getOpcode(), dl,VT, Op.getOperand(0), in SimplifyDemandedBits()
544 if (SimplifyDemandedBits(Op.getOperand(2), NewMask, KnownZero, in SimplifyDemandedBits()
547 if (SimplifyDemandedBits(Op.getOperand(1), NewMask, KnownZero2, in SimplifyDemandedBits()
562 if (SimplifyDemandedBits(Op.getOperand(3), NewMask, KnownZero, in SimplifyDemandedBits()
565 if (SimplifyDemandedBits(Op.getOperand(2), NewMask, KnownZero2, in SimplifyDemandedBits()
580 if (ConstantSDNode *SA = dyn_cast<ConstantSDNode>(Op.getOperand(1))) { in SimplifyDemandedBits()
582 SDValue InOp = Op.getOperand(0); in SimplifyDemandedBits()
592 isa<ConstantSDNode>(InOp.getOperand(1))) { in SimplifyDemandedBits()
594 unsigned C1= cast<ConstantSDNode>(InOp.getOperand(1))->getZExtValue(); in SimplifyDemandedBits()
603 TLO.DAG.getConstant(Diff, Op.getOperand(1).getValueType()); in SimplifyDemandedBits()
606 InOp.getOperand(0), NewSA)); in SimplifyDemandedBits()
617 SDValue InnerOp = InOp.getNode()->getOperand(0); in SimplifyDemandedBits()
642 if (ConstantSDNode *SA = dyn_cast<ConstantSDNode>(Op.getOperand(1))) { in SimplifyDemandedBits()
646 SDValue InOp = Op.getOperand(0); in SimplifyDemandedBits()
656 isa<ConstantSDNode>(InOp.getOperand(1))) { in SimplifyDemandedBits()
658 unsigned C1= cast<ConstantSDNode>(InOp.getOperand(1))->getZExtValue(); in SimplifyDemandedBits()
667 TLO.DAG.getConstant(Diff, Op.getOperand(1).getValueType()); in SimplifyDemandedBits()
669 InOp.getOperand(0), NewSA)); in SimplifyDemandedBits()
693 Op.getOperand(0), Op.getOperand(1))); in SimplifyDemandedBits()
695 if (ConstantSDNode *SA = dyn_cast<ConstantSDNode>(Op.getOperand(1))) { in SimplifyDemandedBits()
711 if (SimplifyDemandedBits(Op.getOperand(0), InDemandedMask, in SimplifyDemandedBits()
725 Op.getOperand(0), in SimplifyDemandedBits()
726 Op.getOperand(1))); in SimplifyDemandedBits()
733 EVT ExVT = cast<VTSDNode>(Op.getOperand(1))->getVT(); in SimplifyDemandedBits()
739 SDValue InOp = Op.getOperand(0); in SimplifyDemandedBits()
760 return TLO.CombineTo(Op, Op.getOperand(0)); in SimplifyDemandedBits()
773 if (SimplifyDemandedBits(Op.getOperand(0), InputDemandedBits, in SimplifyDemandedBits()
784 TLO.DAG.getZeroExtendInReg(Op.getOperand(0),dl,ExVT)); in SimplifyDemandedBits()
797 Op.getOperand(0).getValueType().getScalarType().getSizeInBits(); in SimplifyDemandedBits()
806 Op.getOperand(0))); in SimplifyDemandedBits()
808 if (SimplifyDemandedBits(Op.getOperand(0), InMask, in SimplifyDemandedBits()
818 EVT InVT = Op.getOperand(0).getValueType(); in SimplifyDemandedBits()
828 Op.getOperand(0))); in SimplifyDemandedBits()
836 if (SimplifyDemandedBits(Op.getOperand(0), InDemandedBits, KnownZero, in SimplifyDemandedBits()
846 Op.getOperand(0))); in SimplifyDemandedBits()
860 Op.getOperand(0).getValueType().getScalarType().getSizeInBits(); in SimplifyDemandedBits()
862 if (SimplifyDemandedBits(Op.getOperand(0), InMask, in SimplifyDemandedBits()
874 Op.getOperand(0).getValueType().getScalarType().getSizeInBits(); in SimplifyDemandedBits()
876 if (SimplifyDemandedBits(Op.getOperand(0), TruncMask, in SimplifyDemandedBits()
884 if (Op.getOperand(0).getNode()->hasOneUse()) { in SimplifyDemandedBits()
885 SDValue In = Op.getOperand(0); in SimplifyDemandedBits()
896 ConstantSDNode *ShAmt = dyn_cast<ConstantSDNode>(In.getOperand(1)); in SimplifyDemandedBits()
899 SDValue Shift = In.getOperand(1); in SimplifyDemandedBits()
915 In.getOperand(0)); in SimplifyDemandedBits()
931 EVT VT = cast<VTSDNode>(Op.getOperand(1))->getVT(); in SimplifyDemandedBits()
934 if (SimplifyDemandedBits(Op.getOperand(0), ~InMask | NewMask, in SimplifyDemandedBits()
947 !Op.getOperand(0).getValueType().isVector() && in SimplifyDemandedBits()
949 Op.getOperand(0).getValueType().isFloatingPoint()) { in SimplifyDemandedBits()
956 SDValue Sign = TLO.DAG.getNode(ISD::FGETSIGN, dl, Ty, Op.getOperand(0)); in SimplifyDemandedBits()
975 if (SimplifyDemandedBits(Op.getOperand(0), LoMask, KnownZero2, in SimplifyDemandedBits()
978 if (SimplifyDemandedBits(Op.getOperand(1), LoMask, KnownZero2, in SimplifyDemandedBits()
1040 dyn_cast<ConstantSDNode>(Val.getNode()->getOperand(0))) in ValueHasExactlyOneBitSet()
1048 dyn_cast<ConstantSDNode>(Val.getNode()->getOperand(0))) in ValueHasExactlyOneBitSet()
1093 N0.getOperand(0).getOpcode() == ISD::CTLZ && in SimplifySetCC()
1094 N0.getOperand(1).getOpcode() == ISD::Constant) { in SimplifySetCC()
1096 = cast<ConstantSDNode>(N0.getOperand(1))->getAPIntValue(); in SimplifySetCC()
1109 return DAG.getSetCC(dl, VT, N0.getOperand(0).getOperand(0), in SimplifySetCC()
1117 CTPOP = N0.getOperand(0); in SimplifySetCC()
1123 SDValue CTOp = CTPOP.getOperand(0); in SimplifySetCC()
1145 MinBits = N0->getOperand(0).getValueSizeInBits(); in SimplifySetCC()
1146 PreZExt = N0->getOperand(0); in SimplifySetCC()
1149 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(N0->getOperand(1))) in SimplifySetCC()
1152 PreZExt = N0->getOperand(0); in SimplifySetCC()
1180 isa<LoadSDNode>(N0.getOperand(0)) && in SimplifySetCC()
1181 N0.getOperand(0).getNode()->hasOneUse() && in SimplifySetCC()
1182 isa<ConstantSDNode>(N0.getOperand(1))) { in SimplifySetCC()
1183 LoadSDNode *Lod = cast<LoadSDNode>(N0.getOperand(0)); in SimplifySetCC()
1194 cast<ConstantSDNode>(N0.getOperand(1))->getAPIntValue(); in SimplifySetCC()
1214 EVT PtrType = Lod->getOperand(1).getValueType(); in SimplifySetCC()
1234 unsigned InSize = N0.getOperand(0).getValueType().getSizeInBits(); in SimplifySetCC()
1268 EVT newVT = N0.getOperand(0).getValueType(); in SimplifySetCC()
1272 return DAG.getSetCC(dl, VT, N0.getOperand(0), in SimplifySetCC()
1282 EVT ExtSrcTy = cast<VTSDNode>(N0.getOperand(1))->getVT(); in SimplifySetCC()
1293 EVT Op0Ty = N0.getOperand(0).getValueType(); in SimplifySetCC()
1295 ZextOp = N0.getOperand(0); in SimplifySetCC()
1298 ZextOp = DAG.getNode(ISD::AND, dl, Op0Ty, N0.getOperand(0), in SimplifySetCC()
1319 ISD::CondCode CC = cast<CondCodeSDNode>(N0.getOperand(2))->get(); in SimplifySetCC()
1321 N0.getOperand(0).getValueType().isInteger()); in SimplifySetCC()
1322 return DAG.getSetCC(dl, VT, N0.getOperand(0), N0.getOperand(1), CC); in SimplifySetCC()
1327 N0.getOperand(0).getOpcode() == ISD::XOR && in SimplifySetCC()
1328 N0.getOperand(1) == N0.getOperand(0).getOperand(1))) && in SimplifySetCC()
1329 isa<ConstantSDNode>(N0.getOperand(1)) && in SimplifySetCC()
1330 cast<ConstantSDNode>(N0.getOperand(1))->getAPIntValue() == 1) { in SimplifySetCC()
1340 Val = N0.getOperand(0); in SimplifySetCC()
1343 N0.getOperand(0).getOpcode() == ISD::XOR); in SimplifySetCC()
1346 N0.getOperand(0).getOperand(0), in SimplifySetCC()
1347 N0.getOperand(1)); in SimplifySetCC()
1358 Op0 = Op0.getOperand(0); in SimplifySetCC()
1361 Op0.getOperand(0).getOpcode() == ISD::SETCC && in SimplifySetCC()
1362 Op0.getOperand(1).getOpcode() == ISD::SETCC) { in SimplifySetCC()
1365 return DAG.getSetCC(dl, VT, Op0.getOperand(0), Op0.getOperand(1), in SimplifySetCC()
1369 isa<ConstantSDNode>(Op0.getOperand(1)) && in SimplifySetCC()
1370 cast<ConstantSDNode>(Op0.getOperand(1))->getAPIntValue() == 1) { in SimplifySetCC()
1374 DAG.getNode(ISD::TRUNCATE, dl, VT, Op0.getOperand(0)), in SimplifySetCC()
1378 DAG.getNode(ISD::ANY_EXTEND, dl, VT, Op0.getOperand(0)), in SimplifySetCC()
1386 cast<VTSDNode>(Op0.getOperand(1))->getVT() == MVT::i1) in SimplifySetCC()
1472 dyn_cast<ConstantSDNode>(N0.getOperand(1))) { in SimplifySetCC()
1499 dyn_cast<ConstantSDNode>(N0.getOperand(1))) { in SimplifySetCC()
1506 SDValue Shift = DAG.getNode(ISD::SRL, dl, CmpTy, N0.getOperand(0), in SimplifySetCC()
1645 if (N0.getOperand(0) == N1.getOperand(0)) in SimplifySetCC()
1646 return DAG.getSetCC(dl, VT, N0.getOperand(1), N1.getOperand(1), Cond); in SimplifySetCC()
1647 if (N0.getOperand(1) == N1.getOperand(1)) in SimplifySetCC()
1648 return DAG.getSetCC(dl, VT, N0.getOperand(0), N1.getOperand(0), Cond); in SimplifySetCC()
1651 if (N0.getOperand(0) == N1.getOperand(1)) in SimplifySetCC()
1652 return DAG.getSetCC(dl, VT, N0.getOperand(1), N1.getOperand(0), in SimplifySetCC()
1654 if (N0.getOperand(1) == N1.getOperand(0)) in SimplifySetCC()
1655 return DAG.getSetCC(dl, VT, N0.getOperand(0), N1.getOperand(1), in SimplifySetCC()
1665 if (ConstantSDNode *LHSR = dyn_cast<ConstantSDNode>(N0.getOperand(1))) { in SimplifySetCC()
1668 return DAG.getSetCC(dl, VT, N0.getOperand(0), in SimplifySetCC()
1678 if (DAG.MaskedValueIsZero(N0.getOperand(0), ~LHSR->getAPIntValue())) in SimplifySetCC()
1680 DAG.getSetCC(dl, VT, N0.getOperand(0), in SimplifySetCC()
1688 if (ConstantSDNode *SUBC = dyn_cast<ConstantSDNode>(N0.getOperand(0))) { in SimplifySetCC()
1691 DAG.getSetCC(dl, VT, N0.getOperand(1), in SimplifySetCC()
1709 if (N0.getOperand(0) == N1) in SimplifySetCC()
1710 return DAG.getSetCC(dl, VT, N0.getOperand(1), in SimplifySetCC()
1712 if (N0.getOperand(1) == N1) { in SimplifySetCC()
1714 return DAG.getSetCC(dl, VT, N0.getOperand(0), in SimplifySetCC()
1723 return DAG.getSetCC(dl, VT, N0.getOperand(0), SH, Cond); in SimplifySetCC()
1732 if (N1.getOperand(0) == N0) in SimplifySetCC()
1733 return DAG.getSetCC(dl, VT, N1.getOperand(1), in SimplifySetCC()
1735 if (N1.getOperand(1) == N0) { in SimplifySetCC()
1737 return DAG.getSetCC(dl, VT, N1.getOperand(0), in SimplifySetCC()
1746 return DAG.getSetCC(dl, VT, SH, N1.getOperand(0), Cond); in SimplifySetCC()
1756 if (N0.getOperand(0) == N1 || N0.getOperand(1) == N1) { in SimplifySetCC()
1764 if (N1.getOperand(0) == N0 || N1.getOperand(1) == N0) { in SimplifySetCC()
1839 SDValue N1 = N->getOperand(0); in isGAPlusOffset()
1840 SDValue N2 = N->getOperand(1); in isGAPlusOffset()
1952 C = dyn_cast<ConstantSDNode>(Op.getOperand(1)); in LowerAsmOperandForConstraint()
1953 GA = dyn_cast<GlobalAddressSDNode>(Op.getOperand(0)); in LowerAsmOperandForConstraint()
1955 C = dyn_cast<ConstantSDNode>(Op.getOperand(0)); in LowerAsmOperandForConstraint()
1956 GA = dyn_cast<GlobalAddressSDNode>(Op.getOperand(1)); in LowerAsmOperandForConstraint()
2479 APInt d = cast<ConstantSDNode>(N->getOperand(1))->getAPIntValue(); in BuildSDIV()
2487 Q = DAG.getNode(ISD::MULHS, dl, VT, N->getOperand(0), in BuildSDIV()
2492 N->getOperand(0), in BuildSDIV()
2498 Q = DAG.getNode(ISD::ADD, dl, VT, Q, N->getOperand(0)); in BuildSDIV()
2504 Q = DAG.getNode(ISD::SUB, dl, VT, Q, N->getOperand(0)); in BuildSDIV()
2541 const APInt &N1C = cast<ConstantSDNode>(N->getOperand(1))->getAPIntValue(); in BuildUDIV()
2544 SDValue Q = N->getOperand(0); in BuildUDIV()
2580 SDValue NPQ = DAG.getNode(ISD::SUB, dl, VT, N->getOperand(0), Q); in BuildUDIV()