| /freebsd-12.1/contrib/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()
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineAndOrXor.cpp | 877 if (!LHSC || !RHSC || !LHSC->isZero() || !RHSC->isZero()) in foldAndOrOfICmpsOfAndWithPow2() 1071 if (!LHSC || !RHSC) in foldAndOfICmps() 1074 if (LHSC == RHSC && PredL == PredR) { in foldAndOfICmps() 1097 SmallC = RHSC; in foldAndOfICmps() 1102 BigC = RHSC; in foldAndOfICmps() 1147 std::swap(LHSC, RHSC); in foldAndOfICmps() 2062 else if (PredR == ICmpInst::ICMP_EQ && RHSC && RHSC->isZero()) { in foldOrOfICmps() 2087 if (!LHSC || !RHSC) in foldOrOfICmps() 2133 std::swap(LHSC, RHSC); in foldOrOfICmps() 2794 const APInt *RHSC; in visitXor() local [all …]
|
| H A D | InstCombineCompares.cpp | 2829 Constant *RHSC = dyn_cast<Constant>(Op1); in foldICmpInstWithConstantNotInt() local 2831 if (!RHSC || !LHSI) in foldICmpInstWithConstantNotInt() 2837 if (RHSC->isNullValue() && in foldICmpInstWithConstantNotInt() 2901 if (RHSC->isNullValue() && in foldICmpInstWithConstantNotInt() 3318 if (RHSC->isNotMinSignedValue()) in foldICmpBinOp() 3719 RHSOp = RHSC->getOperand(0); in foldICmpWithCastAndCast() 5210 ? ConstantExpr::getFPToUI(RHSC, IntTy) in foldFCmpIntToFPConst() 5214 ? ConstantExpr::getUIToFP(RHSInt, RHSC->getType()) == RHSC in foldFCmpIntToFPConst() 5215 : ConstantExpr::getSIToFP(RHSInt, RHSC->getType()) == RHSC; in foldFCmpIntToFPConst() 5309 if (!match(RHSC, m_AnyZeroFP())) in foldFCmpReciprocalAndZero() [all …]
|
| H A D | InstCombineInternal.h | 855 Constant *RHSC);
|
| /freebsd-12.1/contrib/llvm/lib/Target/ARM/ |
| H A D | ARMISelDAGToDAG.cpp | 615 RHSC = -RHSC; in SelectAddrModeImm12() 645 RHSC = RHSC & ~1; in SelectLdStSOReg() 649 RHSC = - RHSC; in SelectLdStSOReg() 852 int RHSC; in SelectAddrMode3() local 866 RHSC = -RHSC; in SelectAddrMode3() 922 int RHSC; in IsAddressingMode5() local 936 RHSC = -RHSC; in IsAddressingMode5() 1187 RHSC = -RHSC; in SelectT2AddrModeImm12() 1217 RHSC = -RHSC; in SelectT2AddrModeImm8() 1263 else if (RHSC < 0 && RHSC >= -255) // 8 bits in SelectT2AddrModeSoReg() [all …]
|
| H A D | ARMISelLowering.cpp | 3828 unsigned C = RHSC->getZExtValue(); in getARMCmp() 12613 auto *RHSC = dyn_cast<ConstantSDNode>(RHS); in PerformBRCONDCombine() local 12617 (RHSC && RHSC->getZExtValue() == 0)) { in PerformBRCONDCombine() 12688 (RHSC && RHSC->getZExtValue() == 0)) { in PerformCMOVCombine() 13373 int RHSC = (int)RHS->getZExtValue(); in getARMIndexedAddressParts() local 13374 if (RHSC < 0 && RHSC > -256) { in getARMIndexedAddressParts() 13387 int RHSC = (int)RHS->getZExtValue(); in getARMIndexedAddressParts() local 13388 if (RHSC < 0 && RHSC > -0x1000) { in getARMIndexedAddressParts() 13430 int RHSC = (int)RHS->getZExtValue(); in getT2IndexedAddressParts() local 13431 if (RHSC < 0 && RHSC > -0x100) { // 8 bits. in getT2IndexedAddressParts() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Target/AVR/ |
| H A D | AVRISelDAGToDAG.cpp | 86 int RHSC = (int)RHS->getZExtValue(); in SelectAddr() local 90 RHSC = -RHSC; in SelectAddr() 101 Disp = CurDAG->getTargetConstant(RHSC, dl, MVT::i16); in SelectAddr() 111 if (isUInt<6>(RHSC) && (VT == MVT::i8 || VT == MVT::i16)) { in SelectAddr() 113 Disp = CurDAG->getTargetConstant(RHSC, dl, MVT::i8); in SelectAddr()
|
| H A D | AVRISelLowering.cpp | 808 int RHSC = RHS->getSExtValue(); in getPreIndexedAddressParts() local 810 RHSC = -RHSC; in getPreIndexedAddressParts() 812 if ((VT == MVT::i16 && RHSC != -2) || (VT == MVT::i8 && RHSC != -1)) { in getPreIndexedAddressParts() 817 Offset = DAG.getConstant(RHSC, DL, MVT::i8); in getPreIndexedAddressParts() 859 int RHSC = RHS->getSExtValue(); in getPostIndexedAddressParts() local 861 RHSC = -RHSC; in getPostIndexedAddressParts() 862 if ((VT == MVT::i16 && RHSC != 2) || (VT == MVT::i8 && RHSC != 1)) { in getPostIndexedAddressParts() 867 Offset = DAG.getConstant(RHSC, DL, MVT::i8); in getPostIndexedAddressParts()
|
| /freebsd-12.1/contrib/llvm/lib/Target/AArch64/ |
| H A D | AArch64InstructionSelector.cpp | 1802 int64_t RHSC; in selectAddrModeUnscaled() local 1806 RHSC = RHSOp1.getCImm()->getSExtValue(); in selectAddrModeUnscaled() 1809 if ((RHSC & (Size - 1)) == 0 && RHSC >= 0 && RHSC < (0x1000 << Log2_32(Size))) in selectAddrModeUnscaled() 1811 if (RHSC >= -256 && RHSC < 256) { in selectAddrModeUnscaled() 1815 [=](MachineInstrBuilder &MIB) { MIB.addImm(RHSC); }, in selectAddrModeUnscaled() 1850 int64_t RHSC = (int64_t)RHSDef->getOperand(1).getCImm()->getZExtValue(); in selectAddrModeIndexed() local 1852 if ((RHSC & (Size - 1)) == 0 && RHSC >= 0 && RHSC < (0x1000 << Scale)) { in selectAddrModeIndexed() 1856 [=](MachineInstrBuilder &MIB) { MIB.addImm(RHSC >> Scale); }, in selectAddrModeIndexed() 1861 [=](MachineInstrBuilder &MIB) { MIB.addImm(RHSC >> Scale); }, in selectAddrModeIndexed()
|
| H A D | AArch64ISelDAGToDAG.cpp | 700 int64_t RHSC = RHS->getSExtValue(); in SelectAddrModeIndexed7S() local 702 if ((RHSC & (Size - 1)) == 0 && RHSC >= -(0x40 << Scale) && in SelectAddrModeIndexed7S() 703 RHSC < (0x40 << Scale)) { in SelectAddrModeIndexed7S() 709 OffImm = CurDAG->getTargetConstant(RHSC >> Scale, dl, MVT::i64); in SelectAddrModeIndexed7S() 761 int64_t RHSC = (int64_t)RHS->getZExtValue(); in SelectAddrModeIndexed() local 763 if ((RHSC & (Size - 1)) == 0 && RHSC >= 0 && RHSC < (0x1000 << Scale)) { in SelectAddrModeIndexed() 800 int64_t RHSC = RHS->getSExtValue(); in SelectAddrModeUnscaled() local 802 if ((RHSC & (Size - 1)) == 0 && RHSC >= 0 && in SelectAddrModeUnscaled() 803 RHSC < (0x1000 << Log2_32(Size))) in SelectAddrModeUnscaled() 805 if (RHSC >= -256 && RHSC < 256) { in SelectAddrModeUnscaled() [all …]
|
| H A D | AArch64ISelLowering.cpp | 1872 uint64_t C = RHSC->getZExtValue(); in getAArch64Cmp() 1948 const ConstantSDNode *RHSC = cast<ConstantSDNode>(RHS); in getAArch64Cmp() local 1966 if ((RHSC->getZExtValue() >> 16 == 0) && isa<LoadSDNode>(LHS) && in getAArch64Cmp() 1982 if (!Cmp && (RHSC->isNullValue() || RHSC->isOne())) { in getAArch64Cmp() 1984 if ((CC == ISD::SETNE) ^ RHSC->isNullValue()) in getAArch64Cmp() 4434 const ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS); in LowerBR_CC() local 4435 if (RHSC && RHSC->getZExtValue() == 0 && ProduceNonFlagSettingCondBr) { in LowerBR_CC() 4477 if (RHSC && RHSC->getSExtValue() == -1 && CC == ISD::SETGT && in LowerBR_CC() 11330 int64_t RHSC = RHS->getSExtValue(); in getIndexedAddressParts() local 11332 RHSC = -(uint64_t)RHSC; in getIndexedAddressParts() [all …]
|
| /freebsd-12.1/contrib/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()
|
| /freebsd-12.1/contrib/llvm/lib/MC/ |
| H A D | MCExpr.cpp | 100 if (const MCConstantExpr *RHSC = dyn_cast<MCConstantExpr>(BE.getRHS())) { in print() local 101 if (RHSC->getValue() < 0) { in print() 102 OS << RHSC->getValue(); in print()
|
| /freebsd-12.1/contrib/llvm/lib/Target/MSP430/ |
| H A D | MSP430ISelLowering.cpp | 1137 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) { in LowerSETCC() local 1138 if (RHSC->isNullValue() && LHS.hasOneUse() && in LowerSETCC() 1339 uint64_t RHSC = RHS->getZExtValue(); in getPostIndexedAddressParts() local 1340 if ((VT == MVT::i16 && RHSC != 2) || in getPostIndexedAddressParts() 1341 (VT == MVT::i8 && RHSC != 1)) in getPostIndexedAddressParts() 1345 Offset = DAG.getConstant(RHSC, SDLoc(N), VT); in getPostIndexedAddressParts()
|
| /freebsd-12.1/contrib/llvm/lib/Analysis/ |
| H A D | ScalarEvolution.cpp | 3126 if (RHSC->getValue()->isOne()) in getURemExpr() 3130 if (RHSC->getAPInt().isPowerOf2()) { in getURemExpr() 3153 if (RHSC->getValue()->isOne()) in getUDivExpr() 3158 if (!RHSC->getValue()->isZero()) { in getUDivExpr() 3163 unsigned LZ = RHSC->getAPInt().countLeadingZeros(); in getUDivExpr() 3167 if (!RHSC->getAPInt().isPowerOf2()) in getUDivExpr() 3176 const APInt &DivInt = RHSC->getAPInt(); in getUDivExpr() 3212 const SCEV *Div = getUDivExpr(Op, RHSC); in getUDivExpr() 3230 return getConstant(RHSC->getType(), 0, false); in getUDivExpr() 3258 Constant *RHSCV = RHSC->getValue(); in getUDivExpr() [all …]
|
| H A D | BasicAliasAnalysis.cpp | 264 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(BOp->getOperand(1))) { in GetLinearExpression() local 268 APInt RHS = RHSC->getValue().zextOrSelf(Offset.getBitWidth()); in GetLinearExpression() 280 if (!MaskedValueIsZero(BOp->getOperand(0), RHSC->getValue(), DL, 0, AC, in GetLinearExpression()
|
| H A D | InstructionSimplify.cpp | 2881 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(RHS)) { in simplifyICmpWithBinOp() local 2882 if (RHSC->getValue().isStrictlyPositive()) { in simplifyICmpWithBinOp() 2884 return ConstantInt::getTrue(RHSC->getContext()); in simplifyICmpWithBinOp() 2886 return ConstantInt::getFalse(RHSC->getContext()); in simplifyICmpWithBinOp() 2888 return ConstantInt::getFalse(RHSC->getContext()); in simplifyICmpWithBinOp() 2890 return ConstantInt::getTrue(RHSC->getContext()); in simplifyICmpWithBinOp() 2892 if (RHSC->getValue().isNonNegative()) { in simplifyICmpWithBinOp() 2894 return ConstantInt::getTrue(RHSC->getContext()); in simplifyICmpWithBinOp() 2896 return ConstantInt::getFalse(RHSC->getContext()); in simplifyICmpWithBinOp() 3374 if (Constant *RHSC = dyn_cast<Constant>(RHS)) { in SimplifyICmpInst() local [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXAsmPrinter.cpp | 2172 if (const MCConstantExpr *RHSC = dyn_cast<MCConstantExpr>(BE.getRHS())) { in printMCExpr() local 2173 if (RHSC->getValue() < 0) { in printMCExpr() 2174 OS << RHSC->getValue(); in printMCExpr()
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyCFG.cpp | 492 const APInt *RHSC; in matchInstruction() local 539 m_And(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction() 540 APInt Mask = ~*RHSC; in matchInstruction() 562 m_Or(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction() 563 APInt Mask = *RHSC; in matchInstruction() 593 if (match(I->getOperand(0), m_Add(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction() 594 Span = Span.subtract(*RHSC); in matchInstruction()
|
| H A D | SimplifyLibCalls.cpp | 869 if (auto *RHSC = dyn_cast<Constant>(RHS)) { in optimizeMemCmp() local 870 RHSC = ConstantExpr::getBitCast(RHSC, IntType->getPointerTo()); in optimizeMemCmp() 871 RHSV = ConstantFoldLoadFromConstPtr(RHSC, IntType, DL); in optimizeMemCmp()
|
| /freebsd-12.1/contrib/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | TargetLowering.cpp | 618 if (ConstantSDNode *RHSC = isConstOrConstSplat(Op1)) { in SimplifyDemandedBits() local 623 (~RHSC->getAPIntValue() & DemandedBits)) in SimplifyDemandedBits() 637 LHSKnown.One == ~RHSC->getAPIntValue()) { in SimplifyDemandedBits() 2932 if (auto *RHSC = dyn_cast<ConstantSDNode>(N1)) { in SimplifySetCC() local 2937 DAG.getConstant(RHSC->getAPIntValue()- in SimplifySetCC() 2950 RHSC->getAPIntValue(), in SimplifySetCC() 2961 RHSC->getAPIntValue(), in SimplifySetCC() 2968 if (RHSC->getValueType(0).getSizeInBits() <= 64) in SimplifySetCC() 2969 LegalRHSImm = isLegalICmpImmediate(RHSC->getSExtValue()); in SimplifySetCC()
|
| H A D | SelectionDAGBuilder.cpp | 4882 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) { in ExpandPowI() local 4884 unsigned Val = RHSC->getSExtValue(); in ExpandPowI() 4918 if (RHSC->getSExtValue() < 0) in ExpandPowI()
|
| /freebsd-12.1/contrib/llvm/lib/IR/ |
| H A 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()
|
| /freebsd-12.1/contrib/llvm/lib/Target/X86/ |
| H A D | X86FastISel.cpp | 1377 static unsigned X86ChooseCmpImmediateOpcode(EVT VT, const ConstantInt *RHSC) { in X86ChooseCmpImmediateOpcode() argument 1378 int64_t Val = RHSC->getSExtValue(); in X86ChooseCmpImmediateOpcode() 1479 const auto *RHSC = dyn_cast<ConstantFP>(RHS); in X86SelectCmp() local 1480 if (RHSC && RHSC->isNullValue()) in X86SelectCmp()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/AST/ |
| H A D | ASTContext.cpp | 5779 const Type *RHSC = getCanonicalType(RHS).getTypePtr(); in getIntegerTypeOrder() local 5784 if (const auto *ET = dyn_cast<EnumType>(RHSC)) in getIntegerTypeOrder() 5785 RHSC = getIntegerTypeForEnum(ET); in getIntegerTypeOrder() 5787 if (LHSC == RHSC) return 0; in getIntegerTypeOrder() 5790 bool RHSUnsigned = RHSC->isUnsignedIntegerType(); in getIntegerTypeOrder() 5793 unsigned RHSRank = getIntegerRank(RHSC); in getIntegerTypeOrder()
|