Home
last modified time | relevance | path

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

123

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARC/
DARCISelDAGToDAG.cpp107 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()
/external/swiftshader/third_party/LLVM/lib/Target/ARM/
DARMISelDAGToDAG.cpp468 int RHSC = (int)RHS->getZExtValue(); in SelectAddrModeImm12() local
470 RHSC = -RHSC; in SelectAddrModeImm12()
472 if (RHSC >= 0 && RHSC < 0x1000) { // 12 bits (unsigned) in SelectAddrModeImm12()
478 OffImm = CurDAG->getTargetConstant(RHSC, MVT::i32); in SelectAddrModeImm12()
497 int RHSC = (int)RHS->getZExtValue(); in SelectLdStSOReg() local
498 if (RHSC & 1) { in SelectLdStSOReg()
499 RHSC = RHSC & ~1; in SelectLdStSOReg()
501 if (RHSC < 0) { in SelectLdStSOReg()
503 RHSC = - RHSC; in SelectLdStSOReg()
505 if (isPowerOf2_32(RHSC)) { in SelectLdStSOReg()
[all …]
/external/llvm/lib/Target/ARM/
DARMISelDAGToDAG.cpp627 int RHSC = (int)RHS->getSExtValue(); in SelectAddrModeImm12() local
629 RHSC = -RHSC; in SelectAddrModeImm12()
631 if (RHSC > -0x1000 && RHSC < 0x1000) { // 12 bits in SelectAddrModeImm12()
638 OffImm = CurDAG->getTargetConstant(RHSC, SDLoc(N), MVT::i32); in SelectAddrModeImm12()
657 int RHSC = (int)RHS->getZExtValue(); in SelectLdStSOReg() local
658 if (RHSC & 1) { in SelectLdStSOReg()
659 RHSC = RHSC & ~1; in SelectLdStSOReg()
661 if (RHSC < 0) { in SelectLdStSOReg()
663 RHSC = - RHSC; in SelectLdStSOReg()
665 if (isPowerOf2_32(RHSC)) { in SelectLdStSOReg()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp876 ConstantInt *RHSC = dyn_cast<ConstantInt>(RHS->getOperand(1)); in foldAndOrOfICmpsOfAndWithPow2() local
877 if (!LHSC || !RHSC || !LHSC->isZero() || !RHSC->isZero()) in foldAndOrOfICmpsOfAndWithPow2()
943 ConstantInt *RHSC = dyn_cast<ConstantInt>(RHS->getOperand(1)); in foldAndOfICmps() local
944 if (!LHSC || !RHSC) in foldAndOfICmps()
947 if (LHSC == RHSC && PredL == PredR) { in foldAndOfICmps()
970 SmallC = RHSC; in foldAndOfICmps()
975 BigC = RHSC; in foldAndOfICmps()
1014 ShouldSwap = LHSC->getValue().sgt(RHSC->getValue()); in foldAndOfICmps()
1016 ShouldSwap = LHSC->getValue().ugt(RHSC->getValue()); in foldAndOfICmps()
1020 std::swap(LHSC, RHSC); in foldAndOfICmps()
[all …]
DInstCombineCompares.cpp2774 Constant *RHSC = dyn_cast<Constant>(Op1); in foldICmpInstWithConstantNotInt() local
2776 if (!RHSC || !LHSI) in foldICmpInstWithConstantNotInt()
2782 if (RHSC->isNullValue() && in foldICmpInstWithConstantNotInt()
2803 Op1 = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in foldICmpInstWithConstantNotInt()
2807 Op2 = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in foldICmpInstWithConstantNotInt()
2835 Op1 = Builder.CreateICmp(I.getPredicate(), LHSI->getOperand(1), RHSC, in foldICmpInstWithConstantNotInt()
2838 Op2 = Builder.CreateICmp(I.getPredicate(), LHSI->getOperand(2), RHSC, in foldICmpInstWithConstantNotInt()
2846 if (RHSC->isNullValue() && in foldICmpInstWithConstantNotInt()
2847 DL.getIntPtrType(RHSC->getType()) == LHSI->getOperand(0)->getType()) in foldICmpInstWithConstantNotInt()
3240 if (Constant *RHSC = dyn_cast<Constant>(Op1)) in foldICmpBinOp() local
[all …]
DInstCombineAddSub.cpp1292 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(RHS)) { in visitAdd() local
1295 ConstantExpr::getTrunc(RHSC, LHSConv->getOperand(0)->getType()); in visitAdd()
1296 if (ConstantExpr::getSExt(CI, Ty) == RHSC && in visitAdd()
1328 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(RHS)) { in visitAdd() local
1331 ConstantExpr::getTrunc(RHSC, LHSConv->getOperand(0)->getType()); in visitAdd()
1332 if (ConstantExpr::getZExt(CI, Ty) == RHSC && in visitAdd()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/
DARMISelDAGToDAG.cpp613 int RHSC = (int)RHS->getSExtValue(); in SelectAddrModeImm12() local
615 RHSC = -RHSC; in SelectAddrModeImm12()
617 if (RHSC > -0x1000 && RHSC < 0x1000) { // 12 bits in SelectAddrModeImm12()
624 OffImm = CurDAG->getTargetConstant(RHSC, SDLoc(N), MVT::i32); in SelectAddrModeImm12()
643 int RHSC = (int)RHS->getZExtValue(); in SelectLdStSOReg() local
644 if (RHSC & 1) { in SelectLdStSOReg()
645 RHSC = RHSC & ~1; in SelectLdStSOReg()
647 if (RHSC < 0) { in SelectLdStSOReg()
649 RHSC = - RHSC; in SelectLdStSOReg()
651 if (isPowerOf2_32(RHSC)) { in SelectLdStSOReg()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineCompares.cpp1531 if (Constant *RHSC = dyn_cast<Constant>(ICI.getOperand(1))) { in visitICmpInstWithCastAndCast() local
1532 RHSOp = ConstantExpr::getIntToPtr(RHSC, SrcTy); in visitICmpInstWithCastAndCast()
1533 } else if (PtrToIntInst *RHSC = dyn_cast<PtrToIntInst>(ICI.getOperand(1))) { in visitICmpInstWithCastAndCast() local
1534 RHSOp = RHSC->getOperand(0); in visitICmpInstWithCastAndCast()
2150 if (Constant *RHSC = dyn_cast<Constant>(Op1)) { in visitICmpInst() local
2155 if (RHSC->isNullValue() && in visitICmpInst()
2174 Op1 = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in visitICmpInst()
2176 Op2 = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in visitICmpInst()
2187 RHSC, I.getName()); in visitICmpInst()
2190 RHSC, I.getName()); in visitICmpInst()
[all …]
DInstCombineAddSub.cpp291 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(RHS)) { in visitAdd() local
293 ConstantExpr::getTrunc(RHSC, LHSConv->getOperand(0)->getType()); in visitAdd()
295 ConstantExpr::getSExt(CI, I.getType()) == RHSC && in visitAdd()
328 if (Constant *RHSC = dyn_cast<Constant>(RHS)) { in visitFAdd() local
330 if (ConstantFP *CFP = dyn_cast<ConstantFP>(RHSC)) { in visitFAdd()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AVR/
DAVRISelDAGToDAG.cpp86 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()
DAVRISelLowering.cpp799 int RHSC = RHS->getSExtValue(); in getPreIndexedAddressParts() local
801 RHSC = -RHSC; in getPreIndexedAddressParts()
803 if ((VT == MVT::i16 && RHSC != -2) || (VT == MVT::i8 && RHSC != -1)) { in getPreIndexedAddressParts()
808 Offset = DAG.getConstant(RHSC, DL, MVT::i8); in getPreIndexedAddressParts()
850 int RHSC = RHS->getSExtValue(); in getPostIndexedAddressParts() local
852 RHSC = -RHSC; in getPostIndexedAddressParts()
853 if ((VT == MVT::i16 && RHSC != 2) || (VT == MVT::i8 && RHSC != 1)) { in getPostIndexedAddressParts()
858 Offset = DAG.getConstant(RHSC, DL, MVT::i8); in getPostIndexedAddressParts()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp2387 if (auto *RHSC = dyn_cast<PtrToIntOperator>(ICmp.getOperand(1))) { in visitICmpInstWithCastAndCast() local
2388 Value *RHSCIOp = RHSC->getOperand(0); in visitICmpInstWithCastAndCast()
2391 RHSOp = RHSC->getOperand(0); in visitICmpInstWithCastAndCast()
2396 } else if (auto *RHSC = dyn_cast<Constant>(ICmp.getOperand(1))) { in visitICmpInstWithCastAndCast() local
2397 RHSOp = ConstantExpr::getIntToPtr(RHSC, SrcTy); in visitICmpInstWithCastAndCast()
3639 if (Constant *RHSC = dyn_cast<Constant>(Op1)) { in visitICmpInst() local
3644 if (RHSC->isNullValue() && in visitICmpInst()
3664 Op1 = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in visitICmpInst()
3668 Op2 = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in visitICmpInst()
3697 RHSC, I.getName()); in visitICmpInst()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/
DAArch64InstructionSelector.cpp1608 int64_t RHSC; in selectAddrModeUnscaled() local
1612 RHSC = RHSOp1.getCImm()->getSExtValue(); in selectAddrModeUnscaled()
1615 if ((RHSC & (Size - 1)) == 0 && RHSC >= 0 && RHSC < (0x1000 << Log2_32(Size))) in selectAddrModeUnscaled()
1617 if (RHSC >= -256 && RHSC < 256) { in selectAddrModeUnscaled()
1621 [=](MachineInstrBuilder &MIB) { MIB.addImm(RHSC); }, in selectAddrModeUnscaled()
1656 int64_t RHSC = (int64_t)RHSDef->getOperand(1).getCImm()->getZExtValue(); in selectAddrModeIndexed() local
1658 if ((RHSC & (Size - 1)) == 0 && RHSC >= 0 && RHSC < (0x1000 << Scale)) { in selectAddrModeIndexed()
1662 [=](MachineInstrBuilder &MIB) { MIB.addImm(RHSC >> Scale); }, in selectAddrModeIndexed()
1667 [=](MachineInstrBuilder &MIB) { MIB.addImm(RHSC >> Scale); }, in selectAddrModeIndexed()
DAArch64ISelDAGToDAG.cpp700 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()
769 OffImm = CurDAG->getTargetConstant(RHSC >> Scale, dl, MVT::i64); 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()
[all …]
/external/swiftshader/third_party/LLVM/lib/Analysis/
DBasicAliasAnalysis.cpp190 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(BOp->getOperand(1))) { in GetLinearExpression() local
196 if (!MaskedValueIsZero(BOp->getOperand(0), RHSC->getValue(), &TD)) in GetLinearExpression()
202 Offset += RHSC->getValue(); in GetLinearExpression()
207 Offset *= RHSC->getValue(); in GetLinearExpression()
208 Scale *= RHSC->getValue(); in GetLinearExpression()
213 Offset <<= RHSC->getValue().getLimitedValue(); in GetLinearExpression()
214 Scale <<= RHSC->getValue().getLimitedValue(); in GetLinearExpression()
DScalarEvolution.cpp1482 while (const SCEVConstant *RHSC = dyn_cast<SCEVConstant>(Ops[Idx])) { in getAddExpr() local
1485 RHSC->getValue()->getValue()); in getAddExpr()
1893 while (const SCEVConstant *RHSC = dyn_cast<SCEVConstant>(Ops[Idx])) { in getMulExpr() local
1897 RHSC->getValue()->getValue()); in getMulExpr()
2113 if (const SCEVConstant *RHSC = dyn_cast<SCEVConstant>(RHS)) { in getUDivExpr() local
2114 if (RHSC->getValue()->equalsInt(1)) in getUDivExpr()
2119 if (!RHSC->getValue()->isZero()) { in getUDivExpr()
2124 unsigned LZ = RHSC->getValue()->getValue().countLeadingZeros(); in getUDivExpr()
2128 if (!RHSC->getValue()->getValue().isPowerOf2()) in getUDivExpr()
2137 const APInt &DivInt = RHSC->getValue()->getValue(); in getUDivExpr()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/InstCombine/
Dmemcmp-1.ll39 ; CHECK-NEXT: [[RHSC:%.*]] = load i8, i8* %mem2, align 1
40 ; CHECK-NEXT: [[RHSV:%.*]] = zext i8 [[RHSC]] to i32
/external/swiftshader/third_party/LLVM/lib/MC/
DMCExpr.cpp97 if (const MCConstantExpr *RHSC = dyn_cast<MCConstantExpr>(BE.getRHS())) { in print() local
98 if (RHSC->getValue() < 0) { in print()
99 OS << RHSC->getValue(); in print()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Lanai/
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()
/external/llvm/lib/Target/Lanai/
DLanaiISelLowering.cpp802 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) in IntCondCCodeToICC() local
803 if (RHSC->getZExtValue() == 0xFFFFFFFF) { in IntCondCCodeToICC()
812 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) in IntCondCCodeToICC() local
813 if (RHSC->getZExtValue() == 0) in IntCondCCodeToICC()
820 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) in IntCondCCodeToICC() local
821 if (RHSC->getZExtValue() == 0xFFFFFFFF) { in IntCondCCodeToICC()
830 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) in IntCondCCodeToICC() local
831 if (RHSC->getZExtValue() == 0) in IntCondCCodeToICC()
/external/swiftshader/third_party/LLVM/lib/Target/MSP430/
DMSP430ISelLowering.cpp775 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) { in LowerSETCC() local
776 if (RHSC->isNullValue() && LHS.hasOneUse() && in LowerSETCC()
958 uint64_t RHSC = RHS->getZExtValue(); in getPostIndexedAddressParts() local
959 if ((VT == MVT::i16 && RHSC != 2) || in getPostIndexedAddressParts()
960 (VT == MVT::i8 && RHSC != 1)) in getPostIndexedAddressParts()
964 Offset = DAG.getConstant(RHSC, VT); in getPostIndexedAddressParts()
/external/llvm/lib/MC/
DMCExpr.cpp88 if (const MCConstantExpr *RHSC = dyn_cast<MCConstantExpr>(BE.getRHS())) { in print() local
89 if (RHSC->getValue() < 0) { in print()
90 OS << RHSC->getValue(); in print()
/external/llvm/lib/Target/AArch64/
DAArch64ISelDAGToDAG.cpp645 int64_t RHSC = RHS->getSExtValue(); in SelectAddrModeIndexed7S() local
647 if ((RHSC & (Size - 1)) == 0 && RHSC >= -(0x40 << Scale) && in SelectAddrModeIndexed7S()
648 RHSC < (0x40 << Scale)) { in SelectAddrModeIndexed7S()
654 OffImm = CurDAG->getTargetConstant(RHSC >> Scale, dl, MVT::i64); in SelectAddrModeIndexed7S()
704 int64_t RHSC = (int64_t)RHS->getZExtValue(); in SelectAddrModeIndexed() local
706 if ((RHSC & (Size - 1)) == 0 && RHSC >= 0 && RHSC < (0x1000 << Scale)) { in SelectAddrModeIndexed()
712 OffImm = CurDAG->getTargetConstant(RHSC >> Scale, dl, MVT::i64); in SelectAddrModeIndexed()
743 int64_t RHSC = RHS->getSExtValue(); in SelectAddrModeUnscaled() local
745 if ((RHSC & (Size - 1)) == 0 && RHSC >= 0 && in SelectAddrModeUnscaled()
746 RHSC < (0x1000 << Log2_32(Size))) in SelectAddrModeUnscaled()
[all …]
/external/llvm/lib/Target/MSP430/
DMSP430ISelLowering.cpp896 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) { in LowerSETCC() local
897 if (RHSC->isNullValue() && LHS.hasOneUse() && in LowerSETCC()
1100 uint64_t RHSC = RHS->getZExtValue(); in getPostIndexedAddressParts() local
1101 if ((VT == MVT::i16 && RHSC != 2) || in getPostIndexedAddressParts()
1102 (VT == MVT::i8 && RHSC != 1)) in getPostIndexedAddressParts()
1106 Offset = DAG.getConstant(RHSC, SDLoc(N), VT); in getPostIndexedAddressParts()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/MC/
DMCExpr.cpp100 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()

123