| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/ARC/ |
| H A 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()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/ARM/ |
| H A D | ARMISelDAGToDAG.cpp | 681 int RHSC = (int)RHS->getSExtValue(); in SelectAddrModeImm12() local 683 RHSC = -RHSC; in SelectAddrModeImm12() 685 if (RHSC > -0x1000 && RHSC < 0x1000) { // 12 bits in SelectAddrModeImm12() 692 OffImm = CurDAG->getTargetConstant(RHSC, SDLoc(N), MVT::i32); in SelectAddrModeImm12() 711 int RHSC = (int)RHS->getZExtValue(); in SelectLdStSOReg() local 712 if (RHSC & 1) { in SelectLdStSOReg() 713 RHSC = RHSC & ~1; in SelectLdStSOReg() 715 if (RHSC < 0) { in SelectLdStSOReg() 717 RHSC = - RHSC; in SelectLdStSOReg() 719 if (isPowerOf2_32(RHSC)) { in SelectLdStSOReg() [all …]
|
| H A D | ARMISelLowering.cpp | 4498 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS.getNode())) { in getARMCmp() local 4499 unsigned C = RHSC->getZExtValue(); in getARMCmp() 4568 auto *RHSC = cast<ConstantSDNode>(RHS.getNode()); in getARMCmp() local 4569 uint64_t RHSV = RHSC->getZExtValue(); in getARMCmp() 16719 auto *RHSC = dyn_cast<ConstantSDNode>(RHS); in PerformBRCONDCombine() local 16723 (RHSC && RHSC->getZExtValue() == 0)) { in PerformBRCONDCombine() 16791 auto *RHSC = dyn_cast<ConstantSDNode>(RHS); in PerformCMOVCombine() local 16794 (RHSC && RHSC->getZExtValue() == 0)) { in PerformCMOVCombine() 17804 int RHSC = (int)RHS->getZExtValue(); in getARMIndexedAddressParts() local 17805 if (RHSC < 0 && RHSC > -256) { in getARMIndexedAddressParts() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineAndOrXor.cpp | 1271 ConstantInt *LHSC, *RHSC; in foldAndOfICmps() local 1273 !match(RHS->getOperand(1), m_ConstantInt(RHSC))) in foldAndOfICmps() 1276 if (LHSC == RHSC && PredL == PredR) { in foldAndOfICmps() 1299 SmallC = RHSC; in foldAndOfICmps() 1304 BigC = RHSC; in foldAndOfICmps() 1343 ShouldSwap = LHSC->getValue().sgt(RHSC->getValue()); in foldAndOfICmps() 1345 ShouldSwap = LHSC->getValue().ugt(RHSC->getValue()); in foldAndOfICmps() 1349 std::swap(LHSC, RHSC); in foldAndOfICmps() 1359 assert(LHSC != RHSC && "Compares not folded above?"); in foldAndOfICmps() 1370 if (LHSC->getValue() == (RHSC->getValue() - 1)) in foldAndOfICmps() [all …]
|
| H A D | InstCombineCompares.cpp | 3242 Constant *RHSC = dyn_cast<Constant>(Op1); in foldICmpInstWithConstantNotInt() local 3244 if (!RHSC || !LHSI) in foldICmpInstWithConstantNotInt() 3250 if (RHSC->isNullValue() && in foldICmpInstWithConstantNotInt() 3271 Op1 = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in foldICmpInstWithConstantNotInt() 3275 Op2 = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in foldICmpInstWithConstantNotInt() 3303 Op1 = Builder.CreateICmp(I.getPredicate(), LHSI->getOperand(1), RHSC, in foldICmpInstWithConstantNotInt() 3306 Op2 = Builder.CreateICmp(I.getPredicate(), LHSI->getOperand(2), RHSC, in foldICmpInstWithConstantNotInt() 3314 if (RHSC->isNullValue() && in foldICmpInstWithConstantNotInt() 3315 DL.getIntPtrType(RHSC->getType()) == LHSI->getOperand(0)->getType()) in foldICmpInstWithConstantNotInt() 4000 if (Constant *RHSC = dyn_cast<Constant>(Op1)) in foldICmpBinOp() local [all …]
|
| H A D | InstCombineInternal.h | 651 Constant *RHSC);
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AVR/ |
| H A 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()
|
| H A D | AVRISelLowering.cpp | 910 int RHSC = RHS->getSExtValue(); in getPreIndexedAddressParts() local 912 RHSC = -RHSC; in getPreIndexedAddressParts() 914 if ((VT == MVT::i16 && RHSC != -2) || (VT == MVT::i8 && RHSC != -1)) { in getPreIndexedAddressParts() 919 Offset = DAG.getConstant(RHSC, DL, MVT::i8); in getPreIndexedAddressParts() 961 int RHSC = RHS->getSExtValue(); in getPostIndexedAddressParts() local 963 RHSC = -RHSC; in getPostIndexedAddressParts() 964 if ((VT == MVT::i16 && RHSC != 2) || (VT == MVT::i8 && RHSC != 1)) { in getPostIndexedAddressParts() 969 Offset = DAG.getConstant(RHSC, DL, MVT::i8); in getPostIndexedAddressParts()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Lanai/ |
| H A 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()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/ |
| H A D | AArch64ISelDAGToDAG.cpp | 851 int64_t RHSC = RHS->getSExtValue(); in SelectAddrModeIndexedBitWidth() local 855 if ((RHSC & (Size - 1)) == 0 && RHSC >= -(Range << Scale) && in SelectAddrModeIndexedBitWidth() 856 RHSC < (Range << Scale)) { in SelectAddrModeIndexedBitWidth() 862 OffImm = CurDAG->getTargetConstant(RHSC >> Scale, dl, MVT::i64); in SelectAddrModeIndexedBitWidth() 867 uint64_t RHSC = RHS->getZExtValue(); in SelectAddrModeIndexedBitWidth() local 871 if ((RHSC & (Size - 1)) == 0 && RHSC < (Range << Scale)) { in SelectAddrModeIndexedBitWidth() 877 OffImm = CurDAG->getTargetConstant(RHSC >> Scale, dl, MVT::i64); in SelectAddrModeIndexedBitWidth() 922 int64_t RHSC = (int64_t)RHS->getZExtValue(); in SelectAddrModeIndexed() local 924 if ((RHSC & (Size - 1)) == 0 && RHSC >= 0 && RHSC < (0x1000 << Scale)) { in SelectAddrModeIndexed() 930 OffImm = CurDAG->getTargetConstant(RHSC >> Scale, dl, MVT::i64); in SelectAddrModeIndexed() [all …]
|
| H A D | AArch64ISelLowering.cpp | 2788 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS.getNode())) { in getAArch64Cmp() local 2790 uint64_t C = RHSC->getZExtValue(); in getAArch64Cmp() 2866 const ConstantSDNode *RHSC = cast<ConstantSDNode>(RHS); in getAArch64Cmp() local 2884 if ((RHSC->getZExtValue() >> 16 == 0) && isa<LoadSDNode>(LHS) && in getAArch64Cmp() 2900 if (!Cmp && (RHSC->isNullValue() || RHSC->isOne())) { in getAArch64Cmp() 2902 if ((CC == ISD::SETNE) ^ RHSC->isNullValue()) in getAArch64Cmp() 6641 const ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS); in LowerBR_CC() local 6642 if (RHSC && RHSC->getZExtValue() == 0 && ProduceNonFlagSettingCondBr) { in LowerBR_CC() 6685 if (RHSC && RHSC->getSExtValue() == -1 && CC == ISD::SETGT && in LowerBR_CC() 6994 ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS); in LowerSELECT_CC() local [all …]
|
| /netbsd-src/external/apache2/llvm/dist/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()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/MSP430/ |
| H A D | MSP430ISelLowering.cpp | 1152 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) { in LowerSETCC() local 1153 if (RHSC->isNullValue() && LHS.hasOneUse() && in LowerSETCC() 1352 uint64_t RHSC = RHS->getZExtValue(); in getPostIndexedAddressParts() local 1353 if ((VT == MVT::i16 && RHSC != 2) || in getPostIndexedAddressParts() 1354 (VT == MVT::i8 && RHSC != 1)) in getPostIndexedAddressParts() 1358 Offset = DAG.getConstant(RHSC, SDLoc(N), VT); in getPostIndexedAddressParts()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/GISel/ |
| H A D | AArch64InstructionSelector.cpp | 5569 int64_t RHSC; in selectAddrModeUnscaled() local 5573 RHSC = RHSOp1.getCImm()->getSExtValue(); in selectAddrModeUnscaled() 5576 if ((RHSC & (Size - 1)) == 0 && RHSC >= 0 && RHSC < (0x1000 << Log2_32(Size))) in selectAddrModeUnscaled() 5578 if (RHSC >= -256 && RHSC < 256) { in selectAddrModeUnscaled() 5582 [=](MachineInstrBuilder &MIB) { MIB.addImm(RHSC); }, in selectAddrModeUnscaled() 5659 int64_t RHSC = (int64_t)RHSDef->getOperand(1).getCImm()->getZExtValue(); in selectAddrModeIndexed() local 5661 if ((RHSC & (Size - 1)) == 0 && RHSC >= 0 && RHSC < (0x1000 << Scale)) { in selectAddrModeIndexed() 5665 [=](MachineInstrBuilder &MIB) { MIB.addImm(RHSC >> Scale); }, in selectAddrModeIndexed() 5670 [=](MachineInstrBuilder &MIB) { MIB.addImm(RHSC >> Scale); }, in selectAddrModeIndexed()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/ |
| H A D | ScalarEvolution.cpp | 2335 while (const SCEVConstant *RHSC = dyn_cast<SCEVConstant>(Ops[Idx])) { in getAddExpr() local 2337 Ops[0] = getConstant(LHSC->getAPInt() + RHSC->getAPInt()); in getAddExpr() 2851 while (const SCEVConstant *RHSC = dyn_cast<SCEVConstant>(Ops[Idx])) { in getMulExpr() local 2853 Ops[0] = getConstant(LHSC->getAPInt() * RHSC->getAPInt()); in getMulExpr() 3100 if (const SCEVConstant *RHSC = dyn_cast<SCEVConstant>(RHS)) { in getURemExpr() local 3102 if (RHSC->getValue()->isOne()) in getURemExpr() 3106 if (RHSC->getAPInt().isPowerOf2()) { in getURemExpr() 3109 IntegerType::get(getContext(), RHSC->getAPInt().logBase2()); in getURemExpr() 3136 if (const SCEVConstant *RHSC = dyn_cast<SCEVConstant>(RHS)) { in getUDivExpr() local 3137 if (RHSC->getValue()->isOne()) in getUDivExpr() [all …]
|
| H A D | BasicAliasAnalysis.cpp | 313 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(BOp->getOperand(1))) { in GetLinearExpression() local 314 APInt RHS = Val.evaluateWith(RHSC->getValue()); in GetLinearExpression() 333 if (!MaskedValueIsZero(BOp->getOperand(0), RHSC->getValue(), DL, 0, AC, in GetLinearExpression()
|
| H A D | InstructionSimplify.cpp | 3405 if (Constant *RHSC = dyn_cast<Constant>(RHS)) { in SimplifyICmpInst() local 3408 ConstantExpr::getIntToPtr(RHSC, SrcTy), in SimplifyICmpInst()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXAsmPrinter.cpp | 2133 if (const MCConstantExpr *RHSC = dyn_cast<MCConstantExpr>(BE.getRHS())) { in printMCExpr() local 2134 if (RHSC->getValue() < 0) { in printMCExpr() 2135 OS << RHSC->getValue(); in printMCExpr()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyCFG.cpp | 529 const APInt *RHSC; in matchInstruction() local 576 m_And(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction() 577 APInt Mask = ~*RHSC; in matchInstruction() 599 m_Or(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction() 600 APInt Mask = *RHSC; in matchInstruction() 630 if (match(I->getOperand(0), m_Add(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction() 631 Span = Span.subtract(*RHSC); in matchInstruction()
|
| H A D | SimplifyLibCalls.cpp | 983 if (auto *RHSC = dyn_cast<Constant>(RHS)) { in optimizeMemCmpConstantSize() local 984 RHSC = ConstantExpr::getBitCast(RHSC, IntType->getPointerTo()); in optimizeMemCmpConstantSize() 985 RHSV = ConstantFoldLoadFromConstPtr(RHSC, IntType, DL); in optimizeMemCmpConstantSize()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/X86/ |
| H A D | X86FastISel.cpp | 1385 static unsigned X86ChooseCmpImmediateOpcode(EVT VT, const ConstantInt *RHSC) { in X86ChooseCmpImmediateOpcode() argument 1386 int64_t Val = RHSC->getSExtValue(); in X86ChooseCmpImmediateOpcode() 1490 const auto *RHSC = dyn_cast<ConstantFP>(RHS); in X86SelectCmp() local 1491 if (RHSC && RHSC->isNullValue()) in X86SelectCmp()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/M68k/ |
| H A D | M68kISelLowering.cpp | 1515 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) { in TranslateM68kCC() local 1516 if (SetCCOpcode == ISD::SETGT && RHSC->isAllOnesValue()) { in TranslateM68kCC() 1521 if (SetCCOpcode == ISD::SETLT && RHSC->isNullValue()) { in TranslateM68kCC() 1525 if (SetCCOpcode == ISD::SETLT && RHSC->getZExtValue() == 1) { in TranslateM68kCC()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/ |
| H A D | ConstantFold.cpp | 246 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(RHS)) in ExtractConstantBytes() local 247 if (RHSC->isMinusOne()) in ExtractConstantBytes() 248 return RHSC; in ExtractConstantBytes()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | TargetLowering.cpp | 1192 if (ConstantSDNode *RHSC = isConstOrConstSplat(Op1)) { in SimplifyDemandedBits() local 1197 (~RHSC->getAPIntValue() & DemandedBits)) in SimplifyDemandedBits() 1212 LHSKnown.One == ~RHSC->getAPIntValue()) { in SimplifyDemandedBits() 4249 if (auto *RHSC = dyn_cast<ConstantSDNode>(N1)) { in SimplifySetCC() local 4254 DAG.getConstant(RHSC->getAPIntValue()- in SimplifySetCC() 4267 RHSC->getAPIntValue(), in SimplifySetCC() 4278 RHSC->getAPIntValue(), in SimplifySetCC() 4285 if (RHSC->getValueType(0).getSizeInBits() <= 64) in SimplifySetCC() 4286 LegalRHSImm = isLegalICmpImmediate(RHSC->getSExtValue()); in SimplifySetCC() 8381 if (ConstantSDNode *RHSC = isConstOrConstSplat(RHS)) { in expandMULO() local [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/AST/ |
| H A D | ASTContext.cpp | 6469 const Type *RHSC = getCanonicalType(RHS).getTypePtr(); in getIntegerTypeOrder() local 6474 if (const auto *ET = dyn_cast<EnumType>(RHSC)) in getIntegerTypeOrder() 6475 RHSC = getIntegerTypeForEnum(ET); in getIntegerTypeOrder() 6477 if (LHSC == RHSC) return 0; in getIntegerTypeOrder() 6480 bool RHSUnsigned = RHSC->isUnsignedIntegerType(); in getIntegerTypeOrder() 6483 unsigned RHSRank = getIntegerRank(RHSC); in getIntegerTypeOrder()
|