/external/llvm/unittests/Transforms/Utils/ |
D | IntegerDivision.cpp | 109 Instruction* Remainder = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0)); in TEST() local 110 EXPECT_TRUE(Remainder && Remainder->getOpcode() == Instruction::Sub); in TEST() 139 Instruction* Remainder = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0)); in TEST() local 140 EXPECT_TRUE(Remainder && Remainder->getOpcode() == Instruction::Sub); in TEST() 230 Instruction* Remainder = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0)); in TEST() local 231 EXPECT_TRUE(Remainder && Remainder->getOpcode() == Instruction::Sub); in TEST() 260 Instruction* Remainder = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0)); in TEST() local 261 EXPECT_TRUE(Remainder && Remainder->getOpcode() == Instruction::Sub); in TEST()
|
/external/llvm/lib/Support/ |
D | APInt.cpp | 1673 APInt *Quotient, APInt *Remainder) in divide() argument 1695 if ((Remainder?4:3)*n+2*m+1 <= 128) { in divide() 1699 if (Remainder) in divide() 1705 if (Remainder) in divide() 1728 if (Remainder) in divide() 1810 if (Remainder) { in divide() 1812 if (Remainder->BitWidth != RHS.BitWidth) { in divide() 1813 if (Remainder->isSingleWord()) in divide() 1814 Remainder->VAL = 0; in divide() 1816 delete [] Remainder->pVal; in divide() [all …]
|
D | ScaledNumber.cpp | 70 uint64_t Remainder = Dividend64 % Divisor; in divide32() local 77 return getRounded<uint32_t>(Quotient, Shift, Remainder >= getHalf(Divisor)); in divide32()
|
/external/llvm/lib/Target/Mips/ |
D | Mips16InstrInfo.cpp | 216 int64_t Remainder = FrameSize - Base; in makeFrame() local 218 if (isInt<16>(-Remainder)) in makeFrame() 219 BuildAddiuSpImm(MBB, I, -Remainder); in makeFrame() 221 adjustStackPtrBig(SP, -Remainder, MBB, I, Mips::V0, Mips::V1); in makeFrame() 240 int64_t Remainder = FrameSize - Base; in restoreFrame() local 244 if (isInt<16>(Remainder)) in restoreFrame() 245 BuildAddiuSpImm(MBB, I, Remainder); in restoreFrame() 247 adjustStackPtrBig(SP, Remainder, MBB, I, Mips::A0, Mips::A1); in restoreFrame()
|
/external/mesa3d/src/gallium/drivers/radeon/ |
D | AMDGPUISelLowering.cpp | 230 SDValue Remainder = DAG.getNode(ISD::SUB, DL, VT, Num, Num_S_Remainder); in LowerUDIVREM() local 233 SDValue Remainder_GE_Den = DAG.getSelectCC(DL, Remainder, Den, in LowerUDIVREM() 238 SDValue Remainder_GE_Zero = DAG.getSelectCC(DL, Remainder, in LowerUDIVREM() 268 SDValue Remainder_S_Den = DAG.getNode(ISD::SUB, DL, VT, Remainder, Den); in LowerUDIVREM() 271 SDValue Remainder_A_Den = DAG.getNode(ISD::ADD, DL, VT, Remainder, Den); in LowerUDIVREM() 275 Remainder, Remainder_S_Den, ISD::SETEQ); in LowerUDIVREM()
|
/external/llvm/lib/Transforms/Utils/ |
D | IntegerDivision.cpp | 91 Value *Remainder = Builder.CreateSub(Dividend, Product); in generatedUnsignedRemainderCode() local 96 return Remainder; in generatedUnsignedRemainderCode() 394 Value *Remainder = generateSignedRemainderCode(Rem->getOperand(0), in expandRemainder() local 397 Rem->replaceAllUsesWith(Remainder); in expandRemainder() 411 Value *Remainder = generatedUnsignedRemainderCode(Rem->getOperand(0), in expandRemainder() local 415 Rem->replaceAllUsesWith(Remainder); in expandRemainder()
|
D | BypassSlowDivision.cpp | 40 PHINode *Remainder; member 43 : Quotient(InQuotient), Remainder(InRemainder) {} in DivPhiNodes() 210 J->replaceAllUsesWith(Value.Remainder); in reuseOrInsertFastDiv()
|
/external/llvm/lib/Analysis/ |
D | DependenceAnalysis.cpp | 1070 APInt Remainder = ConstDelta; in strongSIVtest() local 1071 APInt::sdivrem(ConstDelta, ConstCoeff, Distance, Remainder); in strongSIVtest() 1073 DEBUG(dbgs() << "\t Remainder = " << Remainder << "\n"); in strongSIVtest() 1075 if (Remainder != 0) { in strongSIVtest() 1264 APInt Remainder = APDelta; in weakCrossingSIVtest() local 1265 APInt::sdivrem(APDelta, APCoeff, Distance, Remainder); in weakCrossingSIVtest() 1266 DEBUG(dbgs() << "\t Remainder = " << Remainder << "\n"); in weakCrossingSIVtest() 1267 if (Remainder != 0) { in weakCrossingSIVtest() 1277 Remainder = Distance.srem(Two); in weakCrossingSIVtest() 1278 DEBUG(dbgs() << "\t Remainder = " << Remainder << "\n"); in weakCrossingSIVtest() [all …]
|
D | ScalarEvolutionExpander.cpp | 209 static bool FactorOutConstant(const SCEV *&S, const SCEV *&Remainder, in FactorOutConstant() argument 239 Remainder = in FactorOutConstant() 240 SE.getAddExpr(Remainder, in FactorOutConstant() 273 if (!FactorOutConstant(Start, Remainder, Factor, SE, DL)) in FactorOutConstant() 405 const SCEV *Remainder = SE.getConstant(Ty, 0); in expandAddToGEP() local 406 if (FactorOutConstant(Op, Remainder, ElSize, SE, DL)) { in expandAddToGEP() 409 if (!Remainder->isZero()) in expandAddToGEP() 410 NewOps.push_back(Remainder); in expandAddToGEP()
|
D | ScalarEvolution.cpp | 710 const SCEV **Remainder) { in divide() 719 *Remainder = D.Zero; in divide() 725 *Remainder = D.Zero; in divide() 741 *Remainder = Numerator; in divide() 745 *Remainder = D.Zero; in divide() 751 *Remainder = D.Remainder; in divide() 781 Remainder = SE.getConstant(RemainderVal); in visitConstant() 793 Remainder = SE.getAddRecExpr(StartR, StepR, Numerator->getLoop(), in visitAddRecExpr() 808 Remainder = Numerator; in visitAddExpr() 818 Remainder = Rs[0]; in visitAddExpr() [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopStrengthReduce.cpp | 3215 const SCEV *Remainder = CollectSubexprs(*I, C, Ops, L, SE, Depth+1); in CollectSubexprs() local 3216 if (Remainder) in CollectSubexprs() 3217 Ops.push_back(C ? SE.getMulExpr(C, Remainder) : Remainder); in CollectSubexprs() 3225 const SCEV *Remainder = CollectSubexprs(AR->getStart(), in CollectSubexprs() local 3229 if (Remainder && (AR->getLoop() == L || !isa<SCEVAddRecExpr>(Remainder))) { in CollectSubexprs() 3230 Ops.push_back(C ? SE.getMulExpr(C, Remainder) : Remainder); in CollectSubexprs() 3231 Remainder = nullptr; in CollectSubexprs() 3233 if (Remainder != AR->getStart()) { in CollectSubexprs() 3234 if (!Remainder) in CollectSubexprs() 3235 Remainder = SE.getConstant(AR->getType(), 0); in CollectSubexprs() [all …]
|
/external/llvm/include/llvm/ADT/ |
D | BitVector.h | 143 if (unsigned Remainder = Size % BITWORD_SIZE) in all() local 144 return Bits[Size / BITWORD_SIZE] == (1UL << Remainder) - 1; in all()
|
D | APInt.h | 181 unsigned rhsWords, APInt *Quotient, APInt *Remainder); 943 APInt &Remainder); 946 APInt &Remainder);
|
/external/llvm/test/CodeGen/R600/ |
D | sdiv.ll | 10 ; selectcc Remainder -1, 0, -1, SETGT
|
D | udivrem.ll | 41 ; SI-DAG: v_sub_i32_e32 [[Remainder:v[0-9]+]], {{[vs][0-9]+}}, [[Num_S_Remainder]]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineMulDivRem.cpp | 98 APInt Remainder(C1.getBitWidth(), /*Val=*/0ULL, IsSigned); in IsMultiple() local 100 APInt::sdivrem(C1, C2, Quotient, Remainder); in IsMultiple() 102 APInt::udivrem(C1, C2, Quotient, Remainder); in IsMultiple() 104 return Remainder.isMinValue(); in IsMultiple()
|
D | InstructionCombining.cpp | 994 APInt Quotient(Scale), Remainder(Scale); // Init ensures right bitwidth. in Descale() local 995 APInt::sdivrem(CI->getValue(), Scale, Quotient, Remainder); in Descale() 996 if (!Remainder.isMinValue()) in Descale()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCISelDAGToDAG.cpp | 538 unsigned Remainder = 0; in SelectInt64CountDirect() local 553 Remainder = Imm; in SelectInt64CountDirect() 586 if ((Hi = (Remainder >> 16) & 0xFFFF)) in SelectInt64CountDirect() 588 if ((Lo = Remainder & 0xFFFF)) in SelectInt64CountDirect() 627 unsigned Remainder = 0; in SelectInt64Direct() local 642 Remainder = Imm; in SelectInt64Direct() 687 if ((Hi = (Remainder >> 16) & 0xFFFF)) { in SelectInt64Direct() 691 if ((Lo = Remainder & 0xFFFF)) { in SelectInt64Direct()
|
D | PPCFastISel.cpp | 2010 unsigned Remainder = 0; in PPCMaterialize64BitInt() local 2022 Remainder = Imm; in PPCMaterialize64BitInt() 2045 if ((Hi = (Remainder >> 16) & 0xFFFF)) { in PPCMaterialize64BitInt() 2052 if ((Lo = Remainder & 0xFFFF)) { in PPCMaterialize64BitInt()
|
/external/llvm/lib/Target/R600/ |
D | AMDGPUISelLowering.cpp | 1777 SDValue Remainder = DAG.getNode(ISD::SUB, DL, VT, Num, Num_S_Remainder); in LowerUDIVREM() local 1780 SDValue Remainder_GE_Den = DAG.getSelectCC(DL, Remainder, Den, in LowerUDIVREM() 1815 SDValue Remainder_S_Den = DAG.getNode(ISD::SUB, DL, VT, Remainder, Den); in LowerUDIVREM() 1818 SDValue Remainder_A_Den = DAG.getNode(ISD::ADD, DL, VT, Remainder, Den); in LowerUDIVREM() 1822 Remainder, Remainder_S_Den, ISD::SETEQ); in LowerUDIVREM()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64SchedA57.td | 538 // Remainder
|