/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARC/ |
D | ARCISelDAGToDAG.cpp | 106 int32_t RHSC = RHS->getSExtValue(); in SelectAddrModeS9() local 108 RHSC = -RHSC; in SelectAddrModeS9() 111 if (!isInt<9>(RHSC)) in SelectAddrModeS9() 119 Offset = CurDAG->getTargetConstant(RHSC, SDLoc(Addr), MVT::i32); in SelectAddrModeS9() 135 int32_t RHSC = RHS->getSExtValue(); in SelectAddrModeFar() local 137 RHSC = -RHSC; in SelectAddrModeFar() 139 Offset = CurDAG->getTargetConstant(RHSC, SDLoc(Addr), MVT::i32); in SelectAddrModeFar()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAndOrXor.cpp | 873 ConstantInt *RHSC = dyn_cast<ConstantInt>(RHS->getOperand(1)); in foldAndOrOfICmpsOfAndWithPow2() local 874 if (!LHSC || !RHSC || !LHSC->isZero() || !RHSC->isZero()) in foldAndOrOfICmpsOfAndWithPow2() 1201 ConstantInt *RHSC = dyn_cast<ConstantInt>(RHS->getOperand(1)); in foldAndOfICmps() local 1202 if (!LHSC || !RHSC) in foldAndOfICmps() 1205 if (LHSC == RHSC && PredL == PredR) { in foldAndOfICmps() 1228 SmallC = RHSC; in foldAndOfICmps() 1233 BigC = RHSC; in foldAndOfICmps() 1272 ShouldSwap = LHSC->getValue().sgt(RHSC->getValue()); in foldAndOfICmps() 1274 ShouldSwap = LHSC->getValue().ugt(RHSC->getValue()); in foldAndOfICmps() 1278 std::swap(LHSC, RHSC); in foldAndOfICmps() [all …]
|
D | InstCombineCompares.cpp | 3170 Constant *RHSC = dyn_cast<Constant>(Op1); in foldICmpInstWithConstantNotInt() local 3172 if (!RHSC || !LHSI) in foldICmpInstWithConstantNotInt() 3178 if (RHSC->isNullValue() && in foldICmpInstWithConstantNotInt() 3199 Op1 = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in foldICmpInstWithConstantNotInt() 3203 Op2 = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in foldICmpInstWithConstantNotInt() 3231 Op1 = Builder.CreateICmp(I.getPredicate(), LHSI->getOperand(1), RHSC, in foldICmpInstWithConstantNotInt() 3234 Op2 = Builder.CreateICmp(I.getPredicate(), LHSI->getOperand(2), RHSC, in foldICmpInstWithConstantNotInt() 3242 if (RHSC->isNullValue() && in foldICmpInstWithConstantNotInt() 3243 DL.getIntPtrType(RHSC->getType()) == LHSI->getOperand(0)->getType()) in foldICmpInstWithConstantNotInt() 3926 if (Constant *RHSC = dyn_cast<Constant>(Op1)) in foldICmpBinOp() local [all …]
|
D | InstCombineInternal.h | 914 Constant *RHSC);
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/ |
D | ARMISelDAGToDAG.cpp | 655 int RHSC = (int)RHS->getSExtValue(); in SelectAddrModeImm12() local 657 RHSC = -RHSC; in SelectAddrModeImm12() 659 if (RHSC > -0x1000 && RHSC < 0x1000) { // 12 bits in SelectAddrModeImm12() 666 OffImm = CurDAG->getTargetConstant(RHSC, SDLoc(N), MVT::i32); in SelectAddrModeImm12() 685 int RHSC = (int)RHS->getZExtValue(); in SelectLdStSOReg() local 686 if (RHSC & 1) { in SelectLdStSOReg() 687 RHSC = RHSC & ~1; in SelectLdStSOReg() 689 if (RHSC < 0) { in SelectLdStSOReg() 691 RHSC = - RHSC; in SelectLdStSOReg() 693 if (isPowerOf2_32(RHSC)) { in SelectLdStSOReg() [all …]
|
D | ARMISelLowering.cpp | 4218 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS.getNode())) { in getARMCmp() local 4219 unsigned C = RHSC->getZExtValue(); in getARMCmp() 4288 auto *RHSC = cast<ConstantSDNode>(RHS.getNode()); in getARMCmp() local 4289 uint64_t RHSV = RHSC->getZExtValue(); in getARMCmp() 14423 auto *RHSC = dyn_cast<ConstantSDNode>(RHS); in PerformBRCONDCombine() local 14427 (RHSC && RHSC->getZExtValue() == 0)) { in PerformBRCONDCombine() 14495 auto *RHSC = dyn_cast<ConstantSDNode>(RHS); in PerformCMOVCombine() local 14498 (RHSC && RHSC->getZExtValue() == 0)) { in PerformCMOVCombine() 15373 int RHSC = (int)RHS->getZExtValue(); in getARMIndexedAddressParts() local 15374 if (RHSC < 0 && RHSC > -256) { in getARMIndexedAddressParts() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AVR/ |
D | AVRISelDAGToDAG.cpp | 85 int RHSC = (int)RHS->getZExtValue(); in SelectAddr() local 89 RHSC = -RHSC; in SelectAddr() 100 Disp = CurDAG->getTargetConstant(RHSC, dl, MVT::i16); in SelectAddr() 110 if (isUInt<6>(RHSC) && (VT == MVT::i8 || VT == MVT::i16)) { in SelectAddr() 112 Disp = CurDAG->getTargetConstant(RHSC, dl, MVT::i8); in SelectAddr()
|
D | AVRISelLowering.cpp | 807 int RHSC = RHS->getSExtValue(); in getPreIndexedAddressParts() local 809 RHSC = -RHSC; in getPreIndexedAddressParts() 811 if ((VT == MVT::i16 && RHSC != -2) || (VT == MVT::i8 && RHSC != -1)) { in getPreIndexedAddressParts() 816 Offset = DAG.getConstant(RHSC, DL, MVT::i8); in getPreIndexedAddressParts() 858 int RHSC = RHS->getSExtValue(); in getPostIndexedAddressParts() local 860 RHSC = -RHSC; in getPostIndexedAddressParts() 861 if ((VT == MVT::i16 && RHSC != 2) || (VT == MVT::i8 && RHSC != 1)) { in getPostIndexedAddressParts() 866 Offset = DAG.getConstant(RHSC, DL, MVT::i8); in getPostIndexedAddressParts()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Lanai/ |
D | LanaiISelLowering.cpp | 813 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) in IntCondCCodeToICC() local 814 if (RHSC->getZExtValue() == 0xFFFFFFFF) { in IntCondCCodeToICC() 823 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) in IntCondCCodeToICC() local 824 if (RHSC->getZExtValue() == 0) in IntCondCCodeToICC() 831 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) in IntCondCCodeToICC() local 832 if (RHSC->getZExtValue() == 0xFFFFFFFF) { in IntCondCCodeToICC() 841 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) in IntCondCCodeToICC() local 842 if (RHSC->getZExtValue() == 0) in IntCondCCodeToICC()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/ |
D | AArch64ISelDAGToDAG.cpp | 771 int64_t RHSC = RHS->getSExtValue(); in SelectAddrModeIndexedBitWidth() local 775 if ((RHSC & (Size - 1)) == 0 && RHSC >= -(Range << Scale) && in SelectAddrModeIndexedBitWidth() 776 RHSC < (Range << Scale)) { in SelectAddrModeIndexedBitWidth() 782 OffImm = CurDAG->getTargetConstant(RHSC >> Scale, dl, MVT::i64); in SelectAddrModeIndexedBitWidth() 787 uint64_t RHSC = RHS->getZExtValue(); in SelectAddrModeIndexedBitWidth() local 791 if ((RHSC & (Size - 1)) == 0 && RHSC < (Range << Scale)) { in SelectAddrModeIndexedBitWidth() 797 OffImm = CurDAG->getTargetConstant(RHSC >> Scale, dl, MVT::i64); in SelectAddrModeIndexedBitWidth() 849 int64_t RHSC = (int64_t)RHS->getZExtValue(); in SelectAddrModeIndexed() local 851 if ((RHSC & (Size - 1)) == 0 && RHSC >= 0 && RHSC < (0x1000 << Scale)) { in SelectAddrModeIndexed() 857 OffImm = CurDAG->getTargetConstant(RHSC >> Scale, dl, MVT::i64); in SelectAddrModeIndexed() [all …]
|
D | AArch64InstructionSelector.cpp | 4579 int64_t RHSC; in selectAddrModeUnscaled() local 4583 RHSC = RHSOp1.getCImm()->getSExtValue(); in selectAddrModeUnscaled() 4586 if ((RHSC & (Size - 1)) == 0 && RHSC >= 0 && RHSC < (0x1000 << Log2_32(Size))) in selectAddrModeUnscaled() 4588 if (RHSC >= -256 && RHSC < 256) { in selectAddrModeUnscaled() 4592 [=](MachineInstrBuilder &MIB) { MIB.addImm(RHSC); }, in selectAddrModeUnscaled() 4627 int64_t RHSC = (int64_t)RHSDef->getOperand(1).getCImm()->getZExtValue(); in selectAddrModeIndexed() local 4629 if ((RHSC & (Size - 1)) == 0 && RHSC >= 0 && RHSC < (0x1000 << Scale)) { in selectAddrModeIndexed() 4633 [=](MachineInstrBuilder &MIB) { MIB.addImm(RHSC >> Scale); }, in selectAddrModeIndexed() 4638 [=](MachineInstrBuilder &MIB) { MIB.addImm(RHSC >> Scale); }, in selectAddrModeIndexed()
|
D | AArch64ISelLowering.cpp | 2077 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS.getNode())) { in getAArch64Cmp() local 2079 uint64_t C = RHSC->getZExtValue(); in getAArch64Cmp() 2155 const ConstantSDNode *RHSC = cast<ConstantSDNode>(RHS); in getAArch64Cmp() local 2173 if ((RHSC->getZExtValue() >> 16 == 0) && isa<LoadSDNode>(LHS) && in getAArch64Cmp() 2189 if (!Cmp && (RHSC->isNullValue() || RHSC->isOne())) { in getAArch64Cmp() 2191 if ((CC == ISD::SETNE) ^ RHSC->isNullValue()) in getAArch64Cmp() 5002 const ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS); in LowerBR_CC() local 5003 if (RHSC && RHSC->getZExtValue() == 0 && ProduceNonFlagSettingCondBr) { in LowerBR_CC() 5045 if (RHSC && RHSC->getSExtValue() == -1 && CC == ISD::SETGT && in LowerBR_CC() 12738 int64_t RHSC = RHS->getSExtValue(); in getIndexedAddressParts() local [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/MC/ |
D | MCExpr.cpp | 105 if (const MCConstantExpr *RHSC = dyn_cast<MCConstantExpr>(BE.getRHS())) { in print() local 106 if (RHSC->getValue() < 0) { in print() 107 OS << RHSC->getValue(); in print()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/MSP430/ |
D | MSP430ISelLowering.cpp | 1155 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) { in LowerSETCC() local 1156 if (RHSC->isNullValue() && LHS.hasOneUse() && in LowerSETCC() 1357 uint64_t RHSC = RHS->getZExtValue(); in getPostIndexedAddressParts() local 1358 if ((VT == MVT::i16 && RHSC != 2) || in getPostIndexedAddressParts() 1359 (VT == MVT::i8 && RHSC != 1)) in getPostIndexedAddressParts() 1363 Offset = DAG.getConstant(RHSC, SDLoc(N), VT); in getPostIndexedAddressParts()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | ScalarEvolution.cpp | 2437 while (const SCEVConstant *RHSC = dyn_cast<SCEVConstant>(Ops[Idx])) { in getAddExpr() local 2439 Ops[0] = getConstant(LHSC->getAPInt() + RHSC->getAPInt()); in getAddExpr() 2958 while (const SCEVConstant *RHSC = dyn_cast<SCEVConstant>(Ops[Idx])) { in getMulExpr() local 2961 ConstantInt::get(getContext(), LHSC->getAPInt() * RHSC->getAPInt()); in getMulExpr() 3172 if (const SCEVConstant *RHSC = dyn_cast<SCEVConstant>(RHS)) { in getURemExpr() local 3174 if (RHSC->getValue()->isOne()) in getURemExpr() 3178 if (RHSC->getAPInt().isPowerOf2()) { in getURemExpr() 3181 IntegerType::get(getContext(), RHSC->getAPInt().logBase2()); in getURemExpr() 3200 if (const SCEVConstant *RHSC = dyn_cast<SCEVConstant>(RHS)) { in getUDivExpr() local 3201 if (RHSC->getValue()->isOne()) in getUDivExpr() [all …]
|
D | InstructionSimplify.cpp | 2833 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(RHS)) { in simplifyICmpWithBinOp() local 2834 if (RHSC->getValue().isStrictlyPositive()) { in simplifyICmpWithBinOp() 2836 return ConstantInt::getTrue(RHSC->getContext()); in simplifyICmpWithBinOp() 2838 return ConstantInt::getFalse(RHSC->getContext()); in simplifyICmpWithBinOp() 2840 return ConstantInt::getFalse(RHSC->getContext()); in simplifyICmpWithBinOp() 2842 return ConstantInt::getTrue(RHSC->getContext()); in simplifyICmpWithBinOp() 2844 if (RHSC->getValue().isNonNegative()) { in simplifyICmpWithBinOp() 2846 return ConstantInt::getTrue(RHSC->getContext()); in simplifyICmpWithBinOp() 2848 return ConstantInt::getFalse(RHSC->getContext()); in simplifyICmpWithBinOp() 3295 if (Constant *RHSC = dyn_cast<Constant>(RHS)) { in SimplifyICmpInst() local [all …]
|
D | BasicAliasAnalysis.cpp | 303 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(BOp->getOperand(1))) { in GetLinearExpression() local 307 APInt RHS = RHSC->getValue().zextOrSelf(Offset.getBitWidth()); in GetLinearExpression() 319 if (!MaskedValueIsZero(BOp->getOperand(0), RHSC->getValue(), DL, 0, AC, in GetLinearExpression()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/ |
D | NVPTXAsmPrinter.cpp | 2145 if (const MCConstantExpr *RHSC = dyn_cast<MCConstantExpr>(BE.getRHS())) { in printMCExpr() local 2146 if (RHSC->getValue() < 0) { in printMCExpr() 2147 OS << RHSC->getValue(); in printMCExpr()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | SimplifyCFG.cpp | 501 const APInt *RHSC; in matchInstruction() local 548 m_And(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction() 549 APInt Mask = ~*RHSC; in matchInstruction() 571 m_Or(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction() 572 APInt Mask = *RHSC; in matchInstruction() 602 if (match(I->getOperand(0), m_Add(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction() 603 Span = Span.subtract(*RHSC); in matchInstruction()
|
D | SimplifyLibCalls.cpp | 1021 if (auto *RHSC = dyn_cast<Constant>(RHS)) { in optimizeMemCmpConstantSize() local 1022 RHSC = ConstantExpr::getBitCast(RHSC, IntType->getPointerTo()); in optimizeMemCmpConstantSize() 1023 RHSV = ConstantFoldLoadFromConstPtr(RHSC, IntType, DL); in optimizeMemCmpConstantSize()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | ConstantFold.cpp | 244 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(RHS)) in ExtractConstantBytes() local 245 if (RHSC->isMinusOne()) in ExtractConstantBytes() 246 return RHSC; in ExtractConstantBytes()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/ |
D | X86FastISel.cpp | 1366 static unsigned X86ChooseCmpImmediateOpcode(EVT VT, const ConstantInt *RHSC) { in X86ChooseCmpImmediateOpcode() argument 1367 int64_t Val = RHSC->getSExtValue(); in X86ChooseCmpImmediateOpcode() 1468 const auto *RHSC = dyn_cast<ConstantFP>(RHS); in X86SelectCmp() local 1469 if (RHSC && RHSC->isNullValue()) in X86SelectCmp()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/ |
D | TargetLowering.cpp | 1062 if (ConstantSDNode *RHSC = isConstOrConstSplat(Op1)) { in SimplifyDemandedBits() local 1067 (~RHSC->getAPIntValue() & DemandedBits)) in SimplifyDemandedBits() 1081 LHSKnown.One == ~RHSC->getAPIntValue()) { in SimplifyDemandedBits() 3868 if (auto *RHSC = dyn_cast<ConstantSDNode>(N1)) { in SimplifySetCC() local 3873 DAG.getConstant(RHSC->getAPIntValue()- in SimplifySetCC() 3886 RHSC->getAPIntValue(), in SimplifySetCC() 3897 RHSC->getAPIntValue(), in SimplifySetCC() 3904 if (RHSC->getValueType(0).getSizeInBits() <= 64) in SimplifySetCC() 3905 LegalRHSImm = isLegalICmpImmediate(RHSC->getSExtValue()); in SimplifySetCC() 7471 if (ConstantSDNode *RHSC = isConstOrConstSplat(RHS)) { in expandMULO() local [all …]
|
D | SelectionDAG.cpp | 2201 if (auto *RHSC = dyn_cast<ConstantSDNode>(V.getOperand(1))) { in GetDemandedBits() local 2203 unsigned Amt = RHSC->getZExtValue(); in GetDemandedBits() 2218 if (ConstantSDNode *RHSC = isConstOrConstSplat(V.getOperand(1))) { in GetDemandedBits() local 2219 const APInt &AndVal = RHSC->getAPIntValue(); in GetDemandedBits()
|
D | SelectionDAGBuilder.cpp | 5417 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) { in ExpandPowI() local 5419 unsigned Val = RHSC->getSExtValue(); in ExpandPowI() 5453 if (RHSC->getSExtValue() < 0) in ExpandPowI()
|