/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/ |
D | DAGCombiner.cpp | 1319 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in visitADD() local 1334 if (N0C && N1C) in visitADD() 1335 return DAG.FoldConstantArithmetic(ISD::ADD, VT, N0C, N1C); in visitADD() 1337 if (N0C && !N1C) in visitADD() 1340 if (N1C && N1C->isNullValue()) in visitADD() 1344 if (!LegalOperations && TLI.isOffsetFoldingLegal(GA) && N1C && in visitADD() 1346 return DAG.getGlobalAddress(GA->getGlobal(), N1C->getDebugLoc(), VT, in visitADD() 1348 (uint64_t)N1C->getSExtValue()); in visitADD() 1350 if (N1C && N0.getOpcode() == ISD::SUB) in visitADD() 1353 DAG.getConstant(N1C->getAPIntValue()+ in visitADD() [all …]
|
D | TargetLowering.cpp | 1927 if (ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1.getNode())) { in SimplifySetCC() local 1928 const APInt &C1 = N1C->getAPIntValue(); in SimplifySetCC() 2151 } else if ((N1C->isNullValue() || N1C->getAPIntValue() == 1) && in SimplifySetCC() 2156 bool TrueWhenTrue = (Cond == ISD::SETEQ) ^ (N1C->getAPIntValue() != 1); in SimplifySetCC() 2194 } else if (N1C->getAPIntValue() == 1 && in SimplifySetCC() 2229 unsigned OperandBitSize = N1C->getValueType(0).getSizeInBits(); in SimplifySetCC() 3314 const APInt &N1C = cast<ConstantSDNode>(N->getOperand(1))->getAPIntValue(); in BuildUDIV() local 3315 APInt::mu magics = N1C.magicu(); in BuildUDIV() 3321 if (magics.a != 0 && !N1C[0]) { in BuildUDIV() 3322 unsigned Shift = N1C.countTrailingZeros(); in BuildUDIV() [all …]
|
D | SelectionDAG.cpp | 1508 if (ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1.getNode())) { in FoldSetCC() local 1509 const APInt &C1 = N1C->getAPIntValue(); in FoldSetCC() 1526 if (ConstantFPSDNode *N1C = dyn_cast<ConstantFPSDNode>(N1.getNode())) { in FoldSetCC() local 1529 if (N1C->getValueType(0) == MVT::ppcf128) in FoldSetCC() 1532 APFloat::cmpResult R = N1C->getValueAPF().compare(N2C->getValueAPF()); in FoldSetCC() 2677 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1.getNode()); in getNode() local 2841 if (N1C) { in getNode() 2842 APInt Val = N1C->getAPIntValue(); in getNode() 2953 if (N1C) { in getNode() 2955 SDValue SV = FoldConstantArithmetic(Opcode, VT, N1C, N2C); in getNode() [all …]
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | DAGCombiner.cpp | 1667 if (ConstantSDNode *N1C = getAsNonOpaqueConstant(N1)) { in visitADD() local 1672 DAG.getConstant(N1C->getAPIntValue()+ in visitADD() 1793 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in visitADDC() local 1794 if (N0C && !N1C) in visitADDC() 1828 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in visitADDE() local 1829 if (N0C && !N1C) in visitADDE() 1878 ConstantSDNode *N1C = getAsNonOpaqueConstant(N1); in visitSUB() local 1880 if (N1C) { in visitSUB() 1883 DAG.getConstant(-N1C->getAPIntValue(), DL, VT)); in visitSUB() 1937 if (N1C && GA->getOpcode() == ISD::GlobalAddress) in visitSUB() [all …]
|
D | TargetLowering.cpp | 1371 if (auto *N1C = dyn_cast<ConstantSDNode>(N1.getNode())) { in SimplifySetCC() local 1372 const APInt &C1 = N1C->getAPIntValue(); in SimplifySetCC() 1489 (isConstFalseVal(N1C) || in SimplifySetCC() 1490 isExtendedTrueVal(N1C, N0->getValueType(0), SExt))) { in SimplifySetCC() 1492 bool Inverse = (N1C->isNullValue() && Cond == ISD::SETEQ) || in SimplifySetCC() 1493 (!N1C->isNullValue() && Cond == ISD::SETNE); in SimplifySetCC() 1651 } else if ((N1C->isNullValue() || N1C->getAPIntValue() == 1) && in SimplifySetCC() 1656 bool TrueWhenTrue = (Cond == ISD::SETEQ) ^ (N1C->getAPIntValue() != 1); in SimplifySetCC() 1696 } else if (N1C->getAPIntValue() == 1 && in SimplifySetCC() 1738 unsigned OperandBitSize = N1C->getValueType(0).getSizeInBits(); in SimplifySetCC() [all …]
|
D | SelectionDAG.cpp | 1923 if (ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1)) { in FoldSetCC() local 1924 const APInt &C1 = N1C->getAPIntValue(); in FoldSetCC() 1941 if (ConstantFPSDNode *N1C = dyn_cast<ConstantFPSDNode>(N1)) { in FoldSetCC() local 1943 APFloat::cmpResult R = N1C->getValueAPF().compare(N2C->getValueAPF()); in FoldSetCC() 3463 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in getNode() local 3470 if (N1C && !N2C) { in getNode() 3471 std::swap(N1C, N2C); in getNode() 3651 if (N1C) { in getNode() 3652 const APInt &Val = N1C->getAPIntValue(); in getNode() 3747 if (N1C) { in getNode() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Target/XCore/ |
D | XCoreISelLowering.cpp | 1335 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in PerformDAGCombine() local 1339 if (N0C && !N1C) in PerformDAGCombine() 1343 if (N0C && N0C->isNullValue() && N1C && N1C->isNullValue()) { in PerformDAGCombine() 1353 if (N1C && N1C->isNullValue() && N->hasNUsesOfValue(0, 0)) { in PerformDAGCombine() 1372 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in PerformDAGCombine() local 1376 if (N0C && N0C->isNullValue() && N1C && N1C->isNullValue()) { in PerformDAGCombine() 1392 if (N1C && N1C->isNullValue() && N->hasNUsesOfValue(0, 0)) { in PerformDAGCombine() 1412 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in PerformDAGCombine() local 1416 if ((N0C && !N1C) || in PerformDAGCombine() 1417 (N0C && N1C && N0C->getZExtValue() < N1C->getZExtValue())) in PerformDAGCombine() [all …]
|
/external/llvm/lib/Target/XCore/ |
D | XCoreISelLowering.cpp | 1653 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in PerformDAGCombine() local 1657 if (N0C && !N1C) in PerformDAGCombine() 1661 if (N0C && N0C->isNullValue() && N1C && N1C->isNullValue()) { in PerformDAGCombine() 1671 if (N1C && N1C->isNullValue() && N->hasNUsesOfValue(0, 1)) { in PerformDAGCombine() 1690 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in PerformDAGCombine() local 1694 if (N0C && N0C->isNullValue() && N1C && N1C->isNullValue()) { in PerformDAGCombine() 1710 if (N1C && N1C->isNullValue() && N->hasNUsesOfValue(0, 1)) { in PerformDAGCombine() 1730 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in PerformDAGCombine() local 1734 if ((N0C && !N1C) || in PerformDAGCombine() 1735 (N0C && N1C && N0C->getZExtValue() < N1C->getZExtValue())) in PerformDAGCombine() [all …]
|
/external/llvm/lib/Target/ARM/ |
D | ARMISelDAGToDAG.cpp | 2817 auto *N1C = dyn_cast<ConstantSDNode>(N->getOperand(1)); in Select() local 2818 if (N1C && N1C->hasOneUse() && Subtarget->isThumb()) { in Select() 2819 uint32_t Imm = (uint32_t) N1C->getZExtValue(); in Select() 2833 CurDAG->getConstant(~N1C->getZExtValue(), dl, MVT::i32); in Select() 2870 N1C = dyn_cast<ConstantSDNode>(N1); in Select() 2871 if (!N1C) in Select() 2878 unsigned N1CVal = N1C->getZExtValue(); in Select()
|
D | ARMISelLowering.cpp | 9378 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in PerformORCombine() local 9379 if (N1C) { in PerformORCombine() 9380 unsigned Val = N1C->getZExtValue(); in PerformORCombine()
|
/external/swiftshader/third_party/LLVM/lib/Target/PowerPC/ |
D | PPCISelDAGToDAG.cpp | 1010 if (ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N->getOperand(1))) in Select() local 1013 if (N1C->isNullValue() && N3C->isNullValue() && in Select()
|
/external/swiftshader/third_party/LLVM/lib/Target/ARM/ |
D | ARMISelDAGToDAG.cpp | 2533 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in Select() local 2534 if (!N1C) in Select() 2541 unsigned N1CVal = N1C->getZExtValue(); in Select()
|
D | ARMISelLowering.cpp | 6802 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in PerformORCombine() local 6803 if (N1C) { in PerformORCombine() 6804 unsigned Val = N1C->getZExtValue(); in PerformORCombine()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCISelDAGToDAG.cpp | 2776 if (ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N->getOperand(1))) in Select() local 2779 if (N1C->isNullValue() && N3C->isNullValue() && in Select()
|
/external/swiftshader/third_party/LLVM/lib/Target/X86/ |
D | X86ISelLowering.cpp | 8767 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(Op.getOperand(1)); in isXor1OfSetCC() local 8768 if (N1C && N1C->getAPIntValue() == 1) { in isXor1OfSetCC() 13068 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in PerformSHLCombine() local 13073 if (N1C && N0.getOpcode() == ISD::AND && in PerformSHLCombine() 13081 APInt ShAmt = N1C->getAPIntValue(); in PerformSHLCombine()
|
/external/llvm/lib/Target/X86/ |
D | X86ISelLowering.cpp | 27688 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in combineShiftLeft() local 27694 N1C && N0.getOpcode() == ISD::AND && in combineShiftLeft() 27698 const APInt &ShAmt = N1C->getAPIntValue(); in combineShiftLeft()
|