| /openbsd-src/gnu/llvm/llvm/lib/Target/ARC/ |
| H A D | ARCISelDAGToDAG.cpp | 107 int32_t RHSC = RHS->getSExtValue(); in SelectAddrModeS9() local 109 RHSC = -RHSC; in SelectAddrModeS9() 112 if (!isInt<9>(RHSC)) in SelectAddrModeS9() 120 Offset = CurDAG->getTargetConstant(RHSC, SDLoc(Addr), MVT::i32); in SelectAddrModeS9() 136 int32_t RHSC = RHS->getSExtValue(); in SelectAddrModeFar() local 138 RHSC = -RHSC; in SelectAddrModeFar() 140 Offset = CurDAG->getTargetConstant(RHSC, SDLoc(Addr), MVT::i32); in SelectAddrModeFar()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/ARM/ |
| H A D | ARMISelDAGToDAG.cpp | 697 int RHSC = (int)RHS->getSExtValue(); in SelectAddrModeImm12() local 699 RHSC = -RHSC; in SelectAddrModeImm12() 701 if (RHSC > -0x1000 && RHSC < 0x1000) { // 12 bits in SelectAddrModeImm12() 708 OffImm = CurDAG->getTargetConstant(RHSC, SDLoc(N), MVT::i32); in SelectAddrModeImm12() 727 int RHSC = (int)RHS->getZExtValue(); in SelectLdStSOReg() local 728 if (RHSC & 1) { in SelectLdStSOReg() 729 RHSC = RHSC & ~1; in SelectLdStSOReg() 731 if (RHSC < 0) { in SelectLdStSOReg() 733 RHSC = - RHSC; in SelectLdStSOReg() 735 if (isPowerOf2_32(RHSC)) { in SelectLdStSOReg() [all …]
|
| H A D | ARMISelLowering.cpp | 4718 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS.getNode())) { in getARMCmp() local 4719 unsigned C = RHSC->getZExtValue(); in getARMCmp() 4788 auto *RHSC = cast<ConstantSDNode>(RHS.getNode()); in getARMCmp() local 4789 uint64_t RHSV = RHSC->getZExtValue(); in getARMCmp() 18138 auto *RHSC = dyn_cast<ConstantSDNode>(RHS); in PerformBRCONDCombine() local 18142 (RHSC && RHSC->getZExtValue() == 0)) { in PerformBRCONDCombine() 18210 auto *RHSC = dyn_cast<ConstantSDNode>(RHS); in PerformCMOVCombine() local 18213 (RHSC && RHSC->getZExtValue() == 0)) { in PerformCMOVCombine() 19560 int RHSC = (int)RHS->getZExtValue(); in getARMIndexedAddressParts() local 19561 if (RHSC < 0 && RHSC > -256) { in getARMIndexedAddressParts() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AVR/ |
| H A D | AVRISelDAGToDAG.cpp | 94 int RHSC = (int)RHS->getZExtValue(); in SelectAddr() local 98 RHSC = -RHSC; in SelectAddr() 109 Disp = CurDAG->getTargetConstant(RHSC, dl, MVT::i16); in SelectAddr() 119 if (isUInt<6>(RHSC) && (VT == MVT::i8 || VT == MVT::i16)) { in SelectAddr() 121 Disp = CurDAG->getTargetConstant(RHSC, dl, MVT::i8); in SelectAddr()
|
| H A D | AVRISelLowering.cpp | 1072 int RHSC = RHS->getSExtValue(); in getPreIndexedAddressParts() local 1074 RHSC = -RHSC; in getPreIndexedAddressParts() 1076 if ((VT == MVT::i16 && RHSC != -2) || (VT == MVT::i8 && RHSC != -1)) { in getPreIndexedAddressParts() 1081 Offset = DAG.getConstant(RHSC, DL, MVT::i8); in getPreIndexedAddressParts() 1123 int RHSC = RHS->getSExtValue(); in getPostIndexedAddressParts() local 1125 RHSC = -RHSC; in getPostIndexedAddressParts() 1126 if ((VT == MVT::i16 && RHSC != 2) || (VT == MVT::i8 && RHSC != 1)) { in getPostIndexedAddressParts() 1131 Offset = DAG.getConstant(RHSC, DL, MVT::i8); in getPostIndexedAddressParts()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/Lanai/ |
| H A D | LanaiISelLowering.cpp | 814 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) in IntCondCCodeToICC() local 815 if (RHSC->getZExtValue() == 0xFFFFFFFF) { in IntCondCCodeToICC() 824 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) in IntCondCCodeToICC() local 825 if (RHSC->getZExtValue() == 0) in IntCondCCodeToICC() 832 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) in IntCondCCodeToICC() local 833 if (RHSC->getZExtValue() == 0xFFFFFFFF) { in IntCondCCodeToICC() 842 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) in IntCondCCodeToICC() local 843 if (RHSC->getZExtValue() == 0) in IntCondCCodeToICC()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCompares.cpp | 3487 Constant *RHSC = dyn_cast<Constant>(Op1); in foldICmpInstWithConstantNotInt() local 3489 if (!RHSC || !LHSI) in foldICmpInstWithConstantNotInt() 3495 if (RHSC->isNullValue() && in foldICmpInstWithConstantNotInt() 3511 if (RHSC->isNullValue() && in foldICmpInstWithConstantNotInt() 3512 DL.getIntPtrType(RHSC->getType()) == LHSI->getOperand(0)->getType()) in foldICmpInstWithConstantNotInt() 4313 if (Constant *RHSC = dyn_cast<Constant>(Op1)) in foldICmpBinOp() local 4314 if (RHSC->isNotMinSignedValue()) in foldICmpBinOp() 4316 ConstantExpr::getNeg(RHSC)); in foldICmpBinOp() 4978 } else if (auto *RHSC = dyn_cast<Constant>(ICmp.getOperand(1))) { in foldICmpWithCastOp() local 4979 NewOp1 = ConstantExpr::getIntToPtr(RHSC, SrcTy); in foldICmpWithCastOp() [all …]
|
| H A D | InstCombineAndOrXor.cpp | 2769 const APInt *LHSC = nullptr, *RHSC = nullptr; in foldAndOrOfICmps() local 2771 match(RHS1, m_APInt(RHSC)); in foldAndOrOfICmps() 2862 if (!LHSC || !RHSC) in foldAndOrOfICmps() 2878 SmallC = RHSC; in foldAndOrOfICmps() 2883 BigC = RHSC; in foldAndOrOfICmps() 2908 isSignBitCheck(PredR, *RHSC, TrueIfSignedR) && in foldAndOrOfICmps() 4132 const APInt *RHSC; in visitXor() local 4133 if (match(Op1, m_APInt(RHSC))) { in visitXor() 4137 if (RHSC->isSignMask() && match(Op0, m_Sub(m_APInt(C), m_Value(X)))) in visitXor() 4138 return BinaryOperator::CreateSub(ConstantInt::get(Ty, *C + *RHSC), X); in visitXor() [all …]
|
| H A D | InstCombineInternal.h | 558 Constant *RHSC);
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/ |
| H A D | AArch64ISelDAGToDAG.cpp | 670 ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(N.getOperand(1)); in SelectShiftedRegisterFromAnd() local 671 if (!RHSC) in SelectShiftedRegisterFromAnd() 674 APInt AndMask = RHSC->getAPIntValue(); in SelectShiftedRegisterFromAnd() 1090 int64_t RHSC = RHS->getSExtValue(); in SelectAddrModeIndexedBitWidth() local 1094 if ((RHSC & (Size - 1)) == 0 && RHSC >= -(Range << Scale) && in SelectAddrModeIndexedBitWidth() 1095 RHSC < (Range << Scale)) { in SelectAddrModeIndexedBitWidth() 1101 OffImm = CurDAG->getTargetConstant(RHSC >> Scale, dl, MVT::i64); in SelectAddrModeIndexedBitWidth() 1106 uint64_t RHSC = RHS->getZExtValue(); in SelectAddrModeIndexedBitWidth() local 1110 if ((RHSC & (Size - 1)) == 0 && RHSC < (Range << Scale)) { in SelectAddrModeIndexedBitWidth() 1116 OffImm = CurDAG->getTargetConstant(RHSC >> Scale, dl, MVT::i64); in SelectAddrModeIndexedBitWidth() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/MC/ |
| H A D | MCExpr.cpp | 129 if (const MCConstantExpr *RHSC = dyn_cast<MCConstantExpr>(BE.getRHS())) { in print() local 130 if (RHSC->getValue() < 0) { in print() 131 OS << RHSC->getValue(); in print()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/MSP430/ |
| H A D | MSP430ISelLowering.cpp | 1153 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) { in LowerSETCC() local 1154 if (RHSC->isZero() && LHS.hasOneUse() && in LowerSETCC() 1355 uint64_t RHSC = RHS->getZExtValue(); in getPostIndexedAddressParts() local 1356 if ((VT == MVT::i16 && RHSC != 2) || in getPostIndexedAddressParts() 1357 (VT == MVT::i8 && RHSC != 1)) in getPostIndexedAddressParts() 1361 Offset = DAG.getConstant(RHSC, SDLoc(N), VT); in getPostIndexedAddressParts()
|
| /openbsd-src/gnu/llvm/llvm/lib/Analysis/ |
| H A D | ScalarEvolution.cpp | 2385 auto *RHSC = dyn_cast<SCEVConstant>(RHS); in willNotOverflow() local 2387 if (!RHSC) in willNotOverflow() 2389 APInt C = RHSC->getAPInt(); in willNotOverflow() 2562 while (const SCEVConstant *RHSC = dyn_cast<SCEVConstant>(Ops[Idx])) { in getAddExpr() local 2564 Ops[0] = getConstant(LHSC->getAPInt() + RHSC->getAPInt()); in getAddExpr() 3155 while (const SCEVConstant *RHSC = dyn_cast<SCEVConstant>(Ops[Idx])) { in getMulExpr() local 3157 Ops[0] = getConstant(LHSC->getAPInt() * RHSC->getAPInt()); in getMulExpr() 3405 if (const SCEVConstant *RHSC = dyn_cast<SCEVConstant>(RHS)) { in getURemExpr() local 3407 if (RHSC->getValue()->isOne()) in getURemExpr() 3411 if (RHSC->getAPInt().isPowerOf2()) { in getURemExpr() [all …]
|
| H A D | BasicAliasAnalysis.cpp | 357 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(BOp->getOperand(1))) { in GetLinearExpression() local 358 APInt RHS = Val.evaluateWith(RHSC->getValue()); in GetLinearExpression() 383 if (!MaskedValueIsZero(BOp->getOperand(0), RHSC->getValue(), DL, 0, AC, in GetLinearExpression()
|
| H A D | ValueTracking.cpp | 1558 const APInt *RHSC; in computeKnownBitsFromOperator() local 1562 m_Br(m_c_ICmp(Pred, m_Specific(IncValue), m_APInt(RHSC)), in computeKnownBitsFromOperator() 1572 Known2 = KnownBits::makeConstant(*RHSC); in computeKnownBitsFromOperator() 1575 Known2.Zero.setHighBits(RHSC->countLeadingZeros()); in computeKnownBitsFromOperator() 1578 Known2.Zero.setHighBits((*RHSC - 1).countLeadingZeros()); in computeKnownBitsFromOperator()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/GISel/ |
| H A D | AArch64InstructionSelector.cpp | 6448 int64_t RHSC; in selectAddrModeUnscaled() local 6452 RHSC = RHSOp1.getCImm()->getSExtValue(); in selectAddrModeUnscaled() 6455 if ((RHSC & (Size - 1)) == 0 && RHSC >= 0 && RHSC < (0x1000 << Log2_32(Size))) in selectAddrModeUnscaled() 6457 if (RHSC >= -256 && RHSC < 256) { in selectAddrModeUnscaled() 6461 [=](MachineInstrBuilder &MIB) { MIB.addImm(RHSC); }, in selectAddrModeUnscaled() 6535 int64_t RHSC = (int64_t)RHSDef->getOperand(1).getCImm()->getZExtValue(); in selectAddrModeIndexed() local 6537 if ((RHSC & (Size - 1)) == 0 && RHSC >= 0 && RHSC < (0x1000 << Scale)) { in selectAddrModeIndexed() 6541 [=](MachineInstrBuilder &MIB) { MIB.addImm(RHSC >> Scale); }, in selectAddrModeIndexed() 6546 [=](MachineInstrBuilder &MIB) { MIB.addImm(RHSC >> Scale); }, in selectAddrModeIndexed()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXAsmPrinter.cpp | 2110 if (const MCConstantExpr *RHSC = dyn_cast<MCConstantExpr>(BE.getRHS())) { in printMCExpr() local 2111 if (RHSC->getValue() < 0) { in printMCExpr() 2112 OS << RHSC->getValue(); in printMCExpr()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/ |
| H A D | BasicTTIImpl.h | 1503 if (auto *RHSC = dyn_cast<ConstantInt>(Args[1])) { in getIntrinsicInstrCost() local 1505 if (getTLI()->isBeneficialToExpandPowI(RHSC->getSExtValue(), in getIntrinsicInstrCost() 1509 APInt Exponent = RHSC->getValue().abs(); in getIntrinsicInstrCost() 1515 if (RHSC->getSExtValue() < 0) in getIntrinsicInstrCost()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/IPO/ |
| H A D | IROutliner.cpp | 183 const ConstantInt *RHSC = dyn_cast<ConstantInt>(RHS); in getSortedConstantKeys() local 184 assert(RHSC && "Not a constant integer in return value?"); in getSortedConstantKeys() 187 return LHSC->getLimitedValue() < RHSC->getLimitedValue(); in getSortedConstantKeys()
|
| /openbsd-src/gnu/llvm/llvm/lib/IR/ |
| H A D | ConstantFold.cpp | 245 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(RHS)) in ExtractConstantBytes() local 246 if (RHSC->isMinusOne()) in ExtractConstantBytes() 247 return RHSC; in ExtractConstantBytes()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyCFG.cpp | 572 const APInt *RHSC; in matchInstruction() local 619 m_And(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction() 620 APInt Mask = ~*RHSC; in matchInstruction() 642 m_Or(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction() 643 APInt Mask = *RHSC; in matchInstruction() 673 if (match(I->getOperand(0), m_Add(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction() 674 Span = Span.subtract(*RHSC); in matchInstruction()
|
| H A D | SimplifyLibCalls.cpp | 1489 if (auto *RHSC = dyn_cast<Constant>(RHS)) { in optimizeMemCmpConstantSize() local 1490 RHSC = ConstantExpr::getBitCast(RHSC, IntType->getPointerTo()); in optimizeMemCmpConstantSize() 1491 RHSV = ConstantFoldLoadFromConstPtr(RHSC, IntType, DL); in optimizeMemCmpConstantSize()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/X86/ |
| H A D | X86FastISel.cpp | 1378 static unsigned X86ChooseCmpImmediateOpcode(EVT VT, const ConstantInt *RHSC) { in X86ChooseCmpImmediateOpcode() argument 1379 int64_t Val = RHSC->getSExtValue(); in X86ChooseCmpImmediateOpcode() 1483 const auto *RHSC = dyn_cast<ConstantFP>(RHS); in X86SelectCmp() local 1484 if (RHSC && RHSC->isNullValue()) in X86SelectCmp()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/M68k/ |
| H A D | M68kISelLowering.cpp | 1555 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) { in TranslateM68kCC() local 1556 if (SetCCOpcode == ISD::SETGT && RHSC->isAllOnesValue()) { in TranslateM68kCC() 1561 if (SetCCOpcode == ISD::SETLT && RHSC->isNullValue()) { in TranslateM68kCC() 1565 if (SetCCOpcode == ISD::SETLT && RHSC->getZExtValue() == 1) { in TranslateM68kCC()
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | TargetLowering.cpp | 1348 if (ConstantSDNode *RHSC = isConstOrConstSplat(Op1)) { in SimplifyDemandedBits() local 1353 (~RHSC->getAPIntValue() & DemandedBits)) in SimplifyDemandedBits() 1368 LHSKnown.One == ~RHSC->getAPIntValue()) { in SimplifyDemandedBits() 5005 if (auto *RHSC = dyn_cast<ConstantSDNode>(N1)) { in SimplifySetCC() local 5011 DAG.getConstant(RHSC->getAPIntValue() - LHSR->getAPIntValue(), in SimplifySetCC() 5019 DAG.getConstant(LHSR->getAPIntValue() ^ RHSC->getAPIntValue(), in SimplifySetCC() 5029 DAG.getConstant(SUBC->getAPIntValue() - RHSC->getAPIntValue(), in SimplifySetCC() 5034 if (RHSC->getValueType(0).getSizeInBits() <= 64) in SimplifySetCC() 5035 LegalRHSImm = isLegalICmpImmediate(RHSC->getSExtValue()); in SimplifySetCC() 9976 if (ConstantSDNode *RHSC = isConstOrConstSplat(RHS)) { in expandMULO() local [all …]
|