• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/

Lines Matching defs:N1

2966                                         SDValue N1, MutableArrayRef<int> Mask,
2970 std::swap(N0, N1);
2978 return DAG.getVectorShuffle(VT, DL, N0, N1, Mask);
3079 SDValue TargetLowering::foldSetCCWithAnd(EVT VT, SDValue N0, SDValue N1,
3085 if (N1.getOpcode() == ISD::AND && N0.getOpcode() != ISD::AND)
3086 std::swap(N0, N1);
3094 if (N0.getOperand(0) == N1) {
3097 } else if (N0.getOperand(1) == N1) {
3149 EVT SCCVT, SDValue N0, SDValue N1, ISD::CondCode Cond, DAGCombinerInfo &DCI,
3153 if (!(C1 = dyn_cast<ConstantSDNode>(N1)))
3308 /// the 1st operand (N0). Callers are expected to swap the N0/N1 parameters to
3310 SDValue TargetLowering::foldSetCCWithBinOp(EVT VT, SDValue N0, SDValue N1,
3325 if (X == N1)
3328 if (Y != N1)
3344 SDValue YShl1 = DAG.getNode(ISD::SHL, DL, N1.getValueType(), Y, One);
3352 SDValue TargetLowering::SimplifySetCC(EVT VT, SDValue N0, SDValue N1,
3361 if (SDValue Fold = DAG.FoldSetCC(VT, N0, N1, Cond, dl))
3370 return DAG.getSetCC(dl, VT, N1, N0, SwappedCC);
3376 if (!isConstOrConstSplat(N0) && !isConstOrConstSplat(N1) &&
3379 DAG.getNodeIfExists(ISD::SUB, DAG.getVTList(OpVT), { N1, N0 } ) &&
3380 !DAG.getNodeIfExists(ISD::SUB, DAG.getVTList(OpVT), { N0, N1 } ))
3381 return DAG.getSetCC(dl, VT, N1, N0, SwappedCC);
3383 if (auto *N1C = dyn_cast<ConstantSDNode>(N1.getNode())) {
3723 return DAG.getSetCC(dl, VT, Val, N1,
3781 return DAG.getSetCC(dl, VT, N0.getOperand(0), N1, Cond);
3785 optimizeSetCCOfSignedTruncationCheck(VT, N0, N1, Cond, DCI, dl))
3791 if (auto *N1C = isConstOrConstSplat(N1)) {
3819 DAG.getConstant(C, dl, N1.getValueType()),
3839 DAG.getConstant(C, dl, N1.getValueType()),
3853 return DAG.getSetCC(dl, VT, N0, N1, ISD::SETNE);
3871 return DAG.getSetCC(dl, VT, N0, N1, ISD::SETNE);
3885 VT, N0, N1, Cond, DCI, dl))
3897 DAG.getConstant(0, dl, N1.getValueType()),
3905 N1.getValueType());
3913 if (auto *N1C = dyn_cast<ConstantSDNode>(N1.getNode())) {
3997 if (!isa<ConstantFPSDNode>(N0) && isa<ConstantFPSDNode>(N1)) {
3998 auto *CFP = cast<ConstantFPSDNode>(N1);
4013 SDValue NegN1 = DAG.getNode(ISD::FNEG, dl, N0.getValueType(), N1);
4036 return DAG.getSetCC(dl, VT, N0, N1, NewCond);
4041 if (N0 == N1) {
4059 return DAG.getSetCC(dl, VT, N0, N1, NewCond);
4067 if (N0.getOpcode() == N1.getOpcode()) {
4068 if (N0.getOperand(0) == N1.getOperand(0))
4069 return DAG.getSetCC(dl, VT, N0.getOperand(1), N1.getOperand(1), Cond);
4070 if (N0.getOperand(1) == N1.getOperand(1))
4071 return DAG.getSetCC(dl, VT, N0.getOperand(0), N1.getOperand(0), Cond);
4074 if (N0.getOperand(0) == N1.getOperand(1))
4075 return DAG.getSetCC(dl, VT, N0.getOperand(1), N1.getOperand(0),
4077 if (N0.getOperand(1) == N1.getOperand(0))
4078 return DAG.getSetCC(dl, VT, N0.getOperand(0), N1.getOperand(1),
4087 if (auto *RHSC = dyn_cast<ConstantSDNode>(N1)) {
4132 if (SDValue V = foldSetCCWithBinOp(VT, N0, N1, Cond, dl, DCI))
4136 if (N1.getOpcode() == ISD::ADD || N1.getOpcode() == ISD::SUB ||
4137 N1.getOpcode() == ISD::XOR)
4138 if (SDValue V = foldSetCCWithBinOp(VT, N1, N0, Cond, dl, DCI))
4141 if (SDValue V = foldSetCCWithAnd(VT, N0, N1, Cond, dl, DCI))
4154 if (SDValue Folded = buildUREMEqFold(VT, N0, N1, Cond, DCI, dl))
4157 if (SDValue Folded = buildSREMEqFold(VT, N0, N1, Cond, DCI, dl))
4169 Temp = DAG.getNode(ISD::XOR, dl, OpVT, N0, N1);
4175 N0 = DAG.getNode(ISD::XOR, dl, OpVT, N0, N1);
4180 N0 = DAG.getNode(ISD::AND, dl, OpVT, N1, Temp);
4186 Temp = DAG.getNOT(dl, N1, OpVT);
4194 N0 = DAG.getNode(ISD::OR, dl, OpVT, N1, Temp);
4200 Temp = DAG.getNOT(dl, N1, OpVT);
4232 SDValue N1 = N->getOperand(0);
4234 if (isGAPlusOffset(N1.getNode(), GA, Offset)) {
4240 if (auto *V = dyn_cast<ConstantSDNode>(N1)) {
4978 SDValue N1 = N->getOperand(1);
4981 if (!ISD::matchUnaryPredicate(N1, BuildSDIVPattern))
5096 SDValue N1 = N->getOperand(1);
5099 if (!ISD::matchUnaryPredicate(N1, BuildUDIVPattern))
5160 SDValue IsOne = DAG.getSetCC(dl, VT, N1, One, ISD::SETEQ);