Home
last modified time | relevance | path

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

/external/llvm/lib/Target/ARM/
DARMISelDAGToDAG.cpp634 int RHSC = (int)RHS->getSExtValue(); in SelectAddrModeImm12() local
636 RHSC = -RHSC; in SelectAddrModeImm12()
638 if (RHSC > -0x1000 && RHSC < 0x1000) { // 12 bits in SelectAddrModeImm12()
645 OffImm = CurDAG->getTargetConstant(RHSC, SDLoc(N), MVT::i32); in SelectAddrModeImm12()
664 int RHSC = (int)RHS->getZExtValue(); in SelectLdStSOReg() local
665 if (RHSC & 1) { in SelectLdStSOReg()
666 RHSC = RHSC & ~1; in SelectLdStSOReg()
668 if (RHSC < 0) { in SelectLdStSOReg()
670 RHSC = - RHSC; in SelectLdStSOReg()
672 if (isPowerOf2_32(RHSC)) { in SelectLdStSOReg()
[all …]
DARMISelLowering.cpp3294 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS.getNode())) { in getARMCmp() local
3295 unsigned C = RHSC->getZExtValue(); in getARMCmp()
10999 int RHSC = (int)RHS->getZExtValue(); in getARMIndexedAddressParts() local
11000 if (RHSC < 0 && RHSC > -256) { in getARMIndexedAddressParts()
11003 Offset = DAG.getConstant(-RHSC, SDLoc(Ptr), RHS->getValueType(0)); in getARMIndexedAddressParts()
11013 int RHSC = (int)RHS->getZExtValue(); in getARMIndexedAddressParts() local
11014 if (RHSC < 0 && RHSC > -0x1000) { in getARMIndexedAddressParts()
11017 Offset = DAG.getConstant(-RHSC, SDLoc(Ptr), RHS->getValueType(0)); in getARMIndexedAddressParts()
11056 int RHSC = (int)RHS->getZExtValue(); in getT2IndexedAddressParts() local
11057 if (RHSC < 0 && RHSC > -0x100) { // 8 bits. in getT2IndexedAddressParts()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp2031 if (PtrToIntOperator *RHSC = dyn_cast<PtrToIntOperator>(ICI.getOperand(1))) { in visitICmpInstWithCastAndCast() local
2032 Value *RHSCIOp = RHSC->getOperand(0); in visitICmpInstWithCastAndCast()
2035 RHSOp = RHSC->getOperand(0); in visitICmpInstWithCastAndCast()
2040 } else if (Constant *RHSC = dyn_cast<Constant>(ICI.getOperand(1))) in visitICmpInstWithCastAndCast() local
2041 RHSOp = ConstantExpr::getIntToPtr(RHSC, SrcTy); in visitICmpInstWithCastAndCast()
3191 if (Constant *RHSC = dyn_cast<Constant>(Op1)) { in visitICmpInst() local
3196 if (RHSC->isNullValue() && in visitICmpInst()
3216 Op1 = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in visitICmpInst()
3220 Op2 = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in visitICmpInst()
3249 RHSC, I.getName()); in visitICmpInst()
[all …]
DInstCombineAddSub.cpp1231 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(RHS)) { in visitAdd() local
1233 ConstantExpr::getTrunc(RHSC, LHSConv->getOperand(0)->getType()); in visitAdd()
1235 ConstantExpr::getSExt(CI, I.getType()) == RHSC && in visitAdd()
DInstCombineInternal.h263 Constant *RHSC);
DInstCombineAndOrXor.cpp1133 if (ConstantFP *RHSC = dyn_cast<ConstantFP>(RHS->getOperand(1))) { in FoldAndOfFCmps() local
1136 if (LHSC->getValueAPF().isNaN() || RHSC->getValueAPF().isNaN()) in FoldAndOfFCmps()
2118 if (ConstantFP *RHSC = dyn_cast<ConstantFP>(RHS->getOperand(1))) { in FoldOrOfFCmps() local
2121 if (LHSC->getValueAPF().isNaN() || RHSC->getValueAPF().isNaN()) in FoldOrOfFCmps()
/external/llvm/lib/Target/AArch64/
DAArch64ISelDAGToDAG.cpp641 int64_t RHSC = RHS->getSExtValue(); in SelectAddrModeIndexed7S() local
643 if ((RHSC & (Size - 1)) == 0 && RHSC >= -(0x40 << Scale) && in SelectAddrModeIndexed7S()
644 RHSC < (0x40 << Scale)) { in SelectAddrModeIndexed7S()
650 OffImm = CurDAG->getTargetConstant(RHSC >> Scale, dl, MVT::i64); in SelectAddrModeIndexed7S()
700 int64_t RHSC = (int64_t)RHS->getZExtValue(); in SelectAddrModeIndexed() local
702 if ((RHSC & (Size - 1)) == 0 && RHSC >= 0 && RHSC < (0x1000 << Scale)) { in SelectAddrModeIndexed()
708 OffImm = CurDAG->getTargetConstant(RHSC >> Scale, dl, MVT::i64); in SelectAddrModeIndexed()
739 int64_t RHSC = RHS->getSExtValue(); in SelectAddrModeUnscaled() local
741 if ((RHSC & (Size - 1)) == 0 && RHSC >= 0 && in SelectAddrModeUnscaled()
742 RHSC < (0x1000 << Log2_32(Size))) in SelectAddrModeUnscaled()
[all …]
DAArch64ISelLowering.cpp1437 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS.getNode())) { in getAArch64Cmp() local
1439 uint64_t C = RHSC->getZExtValue(); in getAArch64Cmp()
1494 const ConstantSDNode *RHSC = cast<ConstantSDNode>(RHS); in getAArch64Cmp() local
1512 if ((RHSC->getZExtValue() >> 16 == 0) && isa<LoadSDNode>(LHS) && in getAArch64Cmp()
1528 if (!Cmp && (RHSC->isNullValue() || RHSC->isOne())) { in getAArch64Cmp()
1530 if ((CC == ISD::SETNE) ^ RHSC->isNullValue()) in getAArch64Cmp()
3630 const ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS); in LowerBR_CC() local
3631 if (RHSC && RHSC->getZExtValue() == 0) { in LowerBR_CC()
3673 if (RHSC && RHSC->getSExtValue() == -1 && CC == ISD::SETGT && in LowerBR_CC()
9750 int64_t RHSC = (int64_t)RHS->getZExtValue(); in getIndexedAddressParts() local
[all …]
/external/llvm/lib/MC/
DMCExpr.cpp87 if (const MCConstantExpr *RHSC = dyn_cast<MCConstantExpr>(BE.getRHS())) { in print() local
88 if (RHSC->getValue() < 0) { in print()
89 OS << RHSC->getValue(); in print()
/external/llvm/lib/Target/MSP430/
DMSP430ISelLowering.cpp919 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) { in LowerSETCC() local
920 if (RHSC->isNullValue() && LHS.hasOneUse() && in LowerSETCC()
1123 uint64_t RHSC = RHS->getZExtValue(); in getPostIndexedAddressParts() local
1124 if ((VT == MVT::i16 && RHSC != 2) || in getPostIndexedAddressParts()
1125 (VT == MVT::i8 && RHSC != 1)) in getPostIndexedAddressParts()
1129 Offset = DAG.getConstant(RHSC, SDLoc(N), VT); in getPostIndexedAddressParts()
/external/llvm/lib/Analysis/
DInstructionSimplify.cpp2434 if (Constant *RHSC = dyn_cast<Constant>(RHS)) { in SimplifyICmpInst() local
2437 ConstantExpr::getIntToPtr(RHSC, SrcTy), in SimplifyICmpInst()
2689 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(RHS)) { in SimplifyICmpInst() local
2690 if (RHSC->getValue().isStrictlyPositive()) { in SimplifyICmpInst()
2692 return ConstantInt::getTrue(RHSC->getContext()); in SimplifyICmpInst()
2694 return ConstantInt::getFalse(RHSC->getContext()); in SimplifyICmpInst()
2696 return ConstantInt::getFalse(RHSC->getContext()); in SimplifyICmpInst()
2698 return ConstantInt::getTrue(RHSC->getContext()); in SimplifyICmpInst()
2700 if (RHSC->getValue().isNonNegative()) { in SimplifyICmpInst()
2702 return ConstantInt::getTrue(RHSC->getContext()); in SimplifyICmpInst()
[all …]
DScalarEvolution.cpp2010 while (const SCEVConstant *RHSC = dyn_cast<SCEVConstant>(Ops[Idx])) { in getAddExpr() local
2012 Ops[0] = getConstant(LHSC->getAPInt() + RHSC->getAPInt()); in getAddExpr()
2429 while (const SCEVConstant *RHSC = dyn_cast<SCEVConstant>(Ops[Idx])) { in getMulExpr() local
2432 ConstantInt::get(getContext(), LHSC->getAPInt() * RHSC->getAPInt()); in getMulExpr()
2643 if (const SCEVConstant *RHSC = dyn_cast<SCEVConstant>(RHS)) { in getUDivExpr() local
2644 if (RHSC->getValue()->equalsInt(1)) in getUDivExpr()
2649 if (!RHSC->getValue()->isZero()) { in getUDivExpr()
2654 unsigned LZ = RHSC->getAPInt().countLeadingZeros(); in getUDivExpr()
2658 if (!RHSC->getAPInt().isPowerOf2()) in getUDivExpr()
2667 const APInt &DivInt = RHSC->getAPInt(); in getUDivExpr()
[all …]
DBasicAliasAnalysis.cpp206 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(BOp->getOperand(1))) { in GetLinearExpression() local
211 APInt RHS = RHSC->getValue().zextOrSelf(Offset.getBitWidth()); in GetLinearExpression()
223 if (!MaskedValueIsZero(BOp->getOperand(0), RHSC->getValue(), DL, 0, AC, in GetLinearExpression()
/external/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp435 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(Op.getOperand(1))) { in SimplifyDemandedBits() local
440 if ((LHSZero & NewMask) == (~RHSC->getAPIntValue() & NewMask)) in SimplifyDemandedBits()
1916 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(N1)) { in SimplifySetCC() local
1921 DAG.getConstant(RHSC->getAPIntValue()- in SimplifySetCC()
1934 RHSC->getAPIntValue(), in SimplifySetCC()
1945 RHSC->getAPIntValue(), in SimplifySetCC()
1952 if (RHSC->getValueType(0).getSizeInBits() <= 64) in SimplifySetCC()
1953 LegalRHSImm = isLegalICmpImmediate(RHSC->getSExtValue()); in SimplifySetCC()
DSelectionDAGBuilder.cpp4184 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) { in ExpandPowI() local
4186 unsigned Val = RHSC->getSExtValue(); in ExpandPowI()
4220 if (RHSC->getSExtValue() < 0) in ExpandPowI()
DDAGCombiner.cpp6702 if (ConstantSDNode *RHSC = getAsNonOpaqueConstant(V.getOperand(1))) { in GetDemandedBits() local
6704 unsigned Amt = RHSC->getZExtValue(); in GetDemandedBits()
/external/llvm/lib/Target/NVPTX/
DNVPTXAsmPrinter.cpp2184 if (const MCConstantExpr *RHSC = dyn_cast<MCConstantExpr>(BE.getRHS())) { in printMCExpr() local
2185 if (RHSC->getValue() < 0) { in printMCExpr()
2186 OS << RHSC->getValue(); in printMCExpr()
/external/llvm/lib/Target/X86/
DX86FastISel.cpp1178 static unsigned X86ChooseCmpImmediateOpcode(EVT VT, const ConstantInt *RHSC) { in X86ChooseCmpImmediateOpcode() argument
1179 int64_t Val = RHSC->getSExtValue(); in X86ChooseCmpImmediateOpcode()
1280 const auto *RHSC = dyn_cast<ConstantFP>(RHS); in X86SelectCmp() local
1281 if (RHSC && RHSC->isNullValue()) in X86SelectCmp()
DX86ISelLowering.cpp4066 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) { in TranslateX86CC() local
4067 if (SetCCOpcode == ISD::SETGT && RHSC->isAllOnesValue()) { in TranslateX86CC()
4072 if (SetCCOpcode == ISD::SETLT && RHSC->isNullValue()) { in TranslateX86CC()
4076 if (SetCCOpcode == ISD::SETLT && RHSC->getZExtValue() == 1) { in TranslateX86CC()
/external/llvm/lib/IR/
DConstantFold.cpp243 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(RHS)) in ExtractConstantBytes() local
244 if (RHSC->isAllOnesValue()) in ExtractConstantBytes()
245 return RHSC; in ExtractConstantBytes()
/external/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp417 ConstantInt *RHSC; in matchInstruction() local
424 m_And(m_Value(RHSVal), m_ConstantInt(RHSC)))) { in matchInstruction()
425 APInt Not = ~RHSC->getValue(); in matchInstruction()
455 if(match(I->getOperand(0), m_Add(m_Value(RHSVal), m_ConstantInt(RHSC)))) { in matchInstruction()
456 Span = Span.subtract(RHSC->getValue()); in matchInstruction()
/external/clang/lib/AST/
DASTContext.cpp4787 const Type *RHSC = getCanonicalType(RHS).getTypePtr(); in getIntegerTypeOrder() local
4792 if (const EnumType *ET = dyn_cast<EnumType>(RHSC)) in getIntegerTypeOrder()
4793 RHSC = getIntegerTypeForEnum(ET); in getIntegerTypeOrder()
4795 if (LHSC == RHSC) return 0; in getIntegerTypeOrder()
4798 bool RHSUnsigned = RHSC->isUnsignedIntegerType(); in getIntegerTypeOrder()
4801 unsigned RHSRank = getIntegerRank(RHSC); in getIntegerTypeOrder()