Home
last modified time | relevance | path

Searched refs:RHSC (Results 1 – 25 of 29) sorted by relevance

12

/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/ARC/
H A DARCISelDAGToDAG.cpp106 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()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMISelDAGToDAG.cpp693 RHSC = -RHSC; in SelectAddrModeImm12()
723 RHSC = RHSC & ~1; in SelectLdStSOReg()
727 RHSC = - RHSC; in SelectLdStSOReg()
944 RHSC = -RHSC; in SelectAddrMode3()
1014 RHSC = -RHSC; in IsAddressingMode5()
1258 RHSC = -RHSC; in SelectTAddrModeImm7()
1313 RHSC = -RHSC; in SelectT2AddrModeImm12()
1347 RHSC = -RHSC; in SelectT2AddrModeImm8()
1370 RHSC = -RHSC; in SelectT2AddrModeImm8()
1419 RHSC = -RHSC; in SelectT2AddrModeImm7()
[all …]
H A DARMISelLowering.cpp4626 unsigned C = RHSC->getZExtValue(); in getARMCmp()
17157 (RHSC && RHSC->getZExtValue() == 0)) { in PerformBRCONDCombine()
17228 (RHSC && RHSC->getZExtValue() == 0)) { in PerformCMOVCombine()
18523 if (RHSC < 0 && RHSC > -256) { in getARMIndexedAddressParts()
18537 if (RHSC < 0 && RHSC > -0x1000) { in getARMIndexedAddressParts()
18580 if (RHSC < 0 && RHSC > -0x100) { // 8 bits. in getT2IndexedAddressParts()
18585 } else if (RHSC > 0 && RHSC < 0x100) { // 8 bit, no zero. in getT2IndexedAddressParts()
18613 if (RHSC < 0 && RHSC > -Limit * Scale && RHSC % Scale == 0) { in getMVEIndexedAddressParts()
18618 } else if (RHSC > 0 && RHSC < Limit * Scale && RHSC % Scale == 0) { in getMVEIndexedAddressParts()
18633 if (IsInRange(RHSC, 0x80, 1)) in getMVEIndexedAddressParts()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineAndOrXor.cpp1271 ConstantInt *LHSC, *RHSC; in foldAndOfICmps() local
1299 SmallC = RHSC; in foldAndOfICmps()
1304 BigC = RHSC; in foldAndOfICmps()
1349 std::swap(LHSC, RHSC); in foldAndOfICmps()
1399 if (RHSC->isMaxValue(false)) in foldAndOfICmps()
1417 if (RHSC->isMaxValue(true)) in foldAndOfICmps()
2514 if (!LHSC || !RHSC) in foldOrOfICmps()
2552 std::swap(LHSC, RHSC); in foldOrOfICmps()
2596 if (RHSC->isMaxValue(false)) in foldOrOfICmps()
2612 if (RHSC->isMaxValue(true)) in foldOrOfICmps()
[all …]
H A DInstCombineCompares.cpp3300 Constant *RHSC = dyn_cast<Constant>(Op1); in foldICmpInstWithConstantNotInt() local
3302 if (!RHSC || !LHSI) in foldICmpInstWithConstantNotInt()
3308 if (RHSC->isNullValue() && in foldICmpInstWithConstantNotInt()
3333 } else if (RHSC->isNullValue()) { in foldICmpInstWithConstantNotInt()
3382 if (RHSC->isNullValue() && in foldICmpInstWithConstantNotInt()
4069 if (RHSC->isNotMinSignedValue()) in foldICmpBinOp()
6081 ? ConstantExpr::getFPToUI(RHSC, IntTy) in foldFCmpIntToFPConst()
6085 ? ConstantExpr::getUIToFP(RHSInt, RHSC->getType()) == RHSC in foldFCmpIntToFPConst()
6086 : ConstantExpr::getSIToFP(RHSInt, RHSC->getType()) == RHSC; in foldFCmpIntToFPConst()
6180 if (!match(RHSC, m_AnyZeroFP())) in foldFCmpReciprocalAndZero()
[all …]
H A DInstCombineInternal.h644 Constant *RHSC);
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AVR/
H A DAVRISelDAGToDAG.cpp85 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 DAVRISelLowering.cpp920 int RHSC = RHS->getSExtValue(); in getPreIndexedAddressParts() local
922 RHSC = -RHSC; in getPreIndexedAddressParts()
924 if ((VT == MVT::i16 && RHSC != -2) || (VT == MVT::i8 && RHSC != -1)) { in getPreIndexedAddressParts()
929 Offset = DAG.getConstant(RHSC, DL, MVT::i8); in getPreIndexedAddressParts()
971 int RHSC = RHS->getSExtValue(); in getPostIndexedAddressParts() local
973 RHSC = -RHSC; in getPostIndexedAddressParts()
974 if ((VT == MVT::i16 && RHSC != 2) || (VT == MVT::i8 && RHSC != 1)) { in getPostIndexedAddressParts()
979 Offset = DAG.getConstant(RHSC, DL, MVT::i8); in getPostIndexedAddressParts()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Lanai/
H A DLanaiISelLowering.cpp813 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-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelDAGToDAG.cpp885 int64_t RHSC = RHS->getSExtValue(); in SelectAddrModeIndexedBitWidth() local
889 if ((RHSC & (Size - 1)) == 0 && RHSC >= -(Range << Scale) && in SelectAddrModeIndexedBitWidth()
890 RHSC < (Range << Scale)) { in SelectAddrModeIndexedBitWidth()
901 uint64_t RHSC = RHS->getZExtValue(); in SelectAddrModeIndexedBitWidth() local
905 if ((RHSC & (Size - 1)) == 0 && RHSC < (Range << Scale)) { in SelectAddrModeIndexedBitWidth()
956 int64_t RHSC = (int64_t)RHS->getZExtValue(); in SelectAddrModeIndexed() local
958 if ((RHSC & (Size - 1)) == 0 && RHSC >= 0 && RHSC < (0x1000 << Scale)) { in SelectAddrModeIndexed()
995 int64_t RHSC = RHS->getSExtValue(); in SelectAddrModeUnscaled() local
997 if ((RHSC & (Size - 1)) == 0 && RHSC >= 0 && in SelectAddrModeUnscaled()
998 RHSC < (0x1000 << Log2_32(Size))) in SelectAddrModeUnscaled()
[all …]
H A DAArch64ISelLowering.cpp2868 uint64_t C = RHSC->getZExtValue(); in getAArch64Cmp()
2944 const ConstantSDNode *RHSC = cast<ConstantSDNode>(RHS); in getAArch64Cmp() local
2978 if (!Cmp && (RHSC->isNullValue() || RHSC->isOne())) { in getAArch64Cmp()
2980 if ((CC == ISD::SETNE) ^ RHSC->isNullValue()) in getAArch64Cmp()
6911 if (RHSC && RHSC->getZExtValue() == 0 && ProduceNonFlagSettingCondBr) { in LowerBR_CC()
6954 if (RHSC && RHSC->getSExtValue() == -1 && CC == ISD::SETGT && in LowerBR_CC()
7313 ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS); in LowerSELECT_CC() local
7317 if (CC == ISD::SETGT && RHSC && RHSC->isAllOnesValue() && CTVal && CFVal && in LowerSELECT_CC()
16999 int64_t RHSC = RHS->getSExtValue(); in getIndexedAddressParts() local
17001 RHSC = -(uint64_t)RHSC; in getIndexedAddressParts()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/MC/
H A DMCExpr.cpp129 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()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/MSP430/
H A DMSP430ISelLowering.cpp1152 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()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64InstructionSelector.cpp5729 int64_t RHSC; in selectAddrModeUnscaled() local
5733 RHSC = RHSOp1.getCImm()->getSExtValue(); in selectAddrModeUnscaled()
5736 if ((RHSC & (Size - 1)) == 0 && RHSC >= 0 && RHSC < (0x1000 << Log2_32(Size))) in selectAddrModeUnscaled()
5738 if (RHSC >= -256 && RHSC < 256) { in selectAddrModeUnscaled()
5742 [=](MachineInstrBuilder &MIB) { MIB.addImm(RHSC); }, in selectAddrModeUnscaled()
5819 int64_t RHSC = (int64_t)RHSDef->getOperand(1).getCImm()->getZExtValue(); in selectAddrModeIndexed() local
5821 if ((RHSC & (Size - 1)) == 0 && RHSC >= 0 && RHSC < (0x1000 << Scale)) { in selectAddrModeIndexed()
5825 [=](MachineInstrBuilder &MIB) { MIB.addImm(RHSC >> Scale); }, in selectAddrModeIndexed()
5830 [=](MachineInstrBuilder &MIB) { MIB.addImm(RHSC >> Scale); }, in selectAddrModeIndexed()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DScalarEvolution.cpp3245 if (RHSC->getValue()->isOne()) in getURemExpr()
3249 if (RHSC->getAPInt().isPowerOf2()) { in getURemExpr()
3286 if (RHSC->getValue()->isOne()) in getUDivExpr()
3291 if (!RHSC->getValue()->isZero()) { in getUDivExpr()
3300 if (!RHSC->getAPInt().isPowerOf2()) in getUDivExpr()
3309 const APInt &DivInt = RHSC->getAPInt(); in getUDivExpr()
3360 const SCEV *Div = getUDivExpr(Op, RHSC); in getUDivExpr()
3405 Constant *RHSCV = RHSC->getValue(); in getUDivExpr()
4818 if (RHSC->getValue().isSignMask()) in MatchBinaryOp()
13927 if (Predicate == CmpInst::ICMP_EQ && RHSC && in applyLoopGuards()
[all …]
H A DBasicAliasAnalysis.cpp316 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(BOp->getOperand(1))) { in GetLinearExpression() local
317 APInt RHS = Val.evaluateWith(RHSC->getValue()); in GetLinearExpression()
337 if (!MaskedValueIsZero(BOp->getOperand(0), RHSC->getValue(), DL, 0, AC, in GetLinearExpression()
H A DInstructionSimplify.cpp3445 if (Constant *RHSC = dyn_cast<Constant>(RHS)) { in SimplifyICmpInst() local
3448 ConstantExpr::getIntToPtr(RHSC, SrcTy), in SimplifyICmpInst()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp2133 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()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyCFG.cpp523 const APInt *RHSC; in matchInstruction() local
570 m_And(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction()
571 APInt Mask = ~*RHSC; in matchInstruction()
593 m_Or(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction()
594 APInt Mask = *RHSC; in matchInstruction()
624 if (match(I->getOperand(0), m_Add(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction()
625 Span = Span.subtract(*RHSC); in matchInstruction()
H A DSimplifyLibCalls.cpp984 if (auto *RHSC = dyn_cast<Constant>(RHS)) { in optimizeMemCmpConstantSize() local
985 RHSC = ConstantExpr::getBitCast(RHSC, IntType->getPointerTo()); in optimizeMemCmpConstantSize()
986 RHSV = ConstantFoldLoadFromConstPtr(RHSC, IntType, DL); in optimizeMemCmpConstantSize()
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.cpp247 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(RHS)) in ExtractConstantBytes() local
248 if (RHSC->isMinusOne()) in ExtractConstantBytes()
249 return RHSC; in ExtractConstantBytes()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FastISel.cpp1385 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()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/M68k/
H A DM68kISelLowering.cpp1515 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()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp1183 if (ConstantSDNode *RHSC = isConstOrConstSplat(Op1)) { in SimplifyDemandedBits() local
1188 (~RHSC->getAPIntValue() & DemandedBits)) in SimplifyDemandedBits()
1203 LHSKnown.One == ~RHSC->getAPIntValue()) { in SimplifyDemandedBits()
4274 if (auto *RHSC = dyn_cast<ConstantSDNode>(N1)) { in SimplifySetCC() local
4279 DAG.getConstant(RHSC->getAPIntValue()- in SimplifySetCC()
4292 RHSC->getAPIntValue(), in SimplifySetCC()
4303 RHSC->getAPIntValue(), in SimplifySetCC()
4310 if (RHSC->getValueType(0).getSizeInBits() <= 64) in SimplifySetCC()
4311 LegalRHSImm = isLegalICmpImmediate(RHSC->getSExtValue()); in SimplifySetCC()
8431 if (ConstantSDNode *RHSC = isConstOrConstSplat(RHS)) { in expandMULO() local
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DASTContext.cpp6488 const Type *RHSC = getCanonicalType(RHS).getTypePtr(); in getIntegerTypeOrder() local
6493 if (const auto *ET = dyn_cast<EnumType>(RHSC)) in getIntegerTypeOrder()
6494 RHSC = getIntegerTypeForEnum(ET); in getIntegerTypeOrder()
6496 if (LHSC == RHSC) return 0; in getIntegerTypeOrder()
6499 bool RHSUnsigned = RHSC->isUnsignedIntegerType(); in getIntegerTypeOrder()
6502 unsigned RHSRank = getIntegerRank(RHSC); in getIntegerTypeOrder()

12