/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 | 1663 APInt *Quotient, APInt *Remainder) in divide() argument 1685 if ((Remainder?4:3)*n+2*m+1 <= 128) { in divide() 1689 if (Remainder) in divide() 1695 if (Remainder) in divide() 1718 if (Remainder) in divide() 1800 if (Remainder) { in divide() 1802 if (Remainder->BitWidth != RHS.BitWidth) { in divide() 1803 if (Remainder->isSingleWord()) in divide() 1804 Remainder->VAL = 0; in divide() 1806 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/test/CodeGen/ARM/ |
D | div.ll | 46 ; EABI MODE = Remainder in R1, quotient in R0 61 ; EABI MODE = Remainder in R1, quotient in R0 76 ; EABI MODE = Remainder in R2-R3, quotient in R0-R1 91 ; EABI MODE = Remainder in R2-R3, quotient in R0-R1
|
/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 | BypassSlowDivision.cpp | 40 PHINode *Remainder; member 43 : Quotient(InQuotient), Remainder(InRemainder) {} in DivPhiNodes() 210 J->replaceAllUsesWith(Value.Remainder); in reuseOrInsertFastDiv()
|
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()
|
/external/llvm/lib/Analysis/ |
D | DependenceAnalysis.cpp | 1121 APInt Remainder = ConstDelta; in strongSIVtest() local 1122 APInt::sdivrem(ConstDelta, ConstCoeff, Distance, Remainder); in strongSIVtest() 1124 DEBUG(dbgs() << "\t Remainder = " << Remainder << "\n"); in strongSIVtest() 1126 if (Remainder != 0) { in strongSIVtest() 1313 APInt Remainder = APDelta; in weakCrossingSIVtest() local 1314 APInt::sdivrem(APDelta, APCoeff, Distance, Remainder); in weakCrossingSIVtest() 1315 DEBUG(dbgs() << "\t Remainder = " << Remainder << "\n"); in weakCrossingSIVtest() 1316 if (Remainder != 0) { in weakCrossingSIVtest() 1326 Remainder = Distance.srem(Two); in weakCrossingSIVtest() 1327 DEBUG(dbgs() << "\t Remainder = " << Remainder << "\n"); in weakCrossingSIVtest() [all …]
|
D | ScalarEvolutionExpander.cpp | 228 static bool FactorOutConstant(const SCEV *&S, const SCEV *&Remainder, in FactorOutConstant() argument 256 Remainder = SE.getAddExpr( in FactorOutConstant() 257 Remainder, SE.getConstant(C->getAPInt().srem(FC->getAPInt()))); in FactorOutConstant() 287 if (!FactorOutConstant(Start, Remainder, Factor, SE, DL)) in FactorOutConstant() 418 const SCEV *Remainder = SE.getConstant(Ty, 0); in expandAddToGEP() local 419 if (FactorOutConstant(Op, Remainder, ElSize, SE, DL)) { in expandAddToGEP() 422 if (!Remainder->isZero()) in expandAddToGEP() 423 NewOps.push_back(Remainder); in expandAddToGEP()
|
D | ScalarEvolution.cpp | 699 const SCEV **Remainder) { in divide() 708 *Remainder = D.Zero; in divide() 714 *Remainder = D.Zero; in divide() 721 *Remainder = D.Zero; in divide() 737 *Remainder = Numerator; in divide() 741 *Remainder = D.Zero; in divide() 747 *Remainder = D.Remainder; in divide() 777 Remainder = SE.getConstant(RemainderVal); in visitConstant() 795 Remainder = SE.getAddRecExpr(StartR, StepR, Numerator->getLoop(), in visitAddRecExpr() 817 Remainder = Rs[0]; in visitAddExpr() [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopStrengthReduce.cpp | 3190 const SCEV *Remainder = CollectSubexprs(S, C, Ops, L, SE, Depth+1); in CollectSubexprs() local 3191 if (Remainder) in CollectSubexprs() 3192 Ops.push_back(C ? SE.getMulExpr(C, Remainder) : Remainder); in CollectSubexprs() 3200 const SCEV *Remainder = CollectSubexprs(AR->getStart(), in CollectSubexprs() local 3204 if (Remainder && (AR->getLoop() == L || !isa<SCEVAddRecExpr>(Remainder))) { in CollectSubexprs() 3205 Ops.push_back(C ? SE.getMulExpr(C, Remainder) : Remainder); in CollectSubexprs() 3206 Remainder = nullptr; in CollectSubexprs() 3208 if (Remainder != AR->getStart()) { in CollectSubexprs() 3209 if (!Remainder) in CollectSubexprs() 3210 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/AMDGPU/ |
D | sdiv.ll | 10 ; selectcc Remainder -1, 0, -1, SETGT
|
D | udivrem.ll | 41 ; SI-DAG: v_sub_i32_e32 [[Remainder:v[0-9]+]], vcc, {{[vs][0-9]+}}, [[Num_S_Remainder]]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineMulDivRem.cpp | 105 APInt Remainder(C1.getBitWidth(), /*Val=*/0ULL, IsSigned); in IsMultiple() local 107 APInt::sdivrem(C1, C2, Quotient, Remainder); in IsMultiple() 109 APInt::udivrem(C1, C2, Quotient, Remainder); in IsMultiple() 111 return Remainder.isMinValue(); in IsMultiple()
|
D | InstructionCombining.cpp | 1054 APInt Quotient(Scale), Remainder(Scale); // Init ensures right bitwidth. in Descale() local 1055 APInt::sdivrem(CI->getValue(), Scale, Quotient, Remainder); in Descale() 1056 if (!Remainder.isMinValue()) in Descale()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCISelDAGToDAG.cpp | 599 unsigned Remainder = 0; in SelectInt64CountDirect() local 614 Remainder = Imm; in SelectInt64CountDirect() 646 if ((Remainder >> 16) & 0xFFFF) in SelectInt64CountDirect() 648 if (Remainder & 0xFFFF) in SelectInt64CountDirect() 687 unsigned Remainder = 0; in SelectInt64Direct() local 702 Remainder = Imm; in SelectInt64Direct() 747 if ((Hi = (Remainder >> 16) & 0xFFFF)) { in SelectInt64Direct() 751 if ((Lo = Remainder & 0xFFFF)) { in SelectInt64Direct()
|
D | PPCFastISel.cpp | 2025 unsigned Remainder = 0; in PPCMaterialize64BitInt() local 2037 Remainder = Imm; in PPCMaterialize64BitInt() 2060 if ((Hi = (Remainder >> 16) & 0xFFFF)) { in PPCMaterialize64BitInt() 2067 if ((Lo = Remainder & 0xFFFF)) { in PPCMaterialize64BitInt()
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUISelLowering.cpp | 1783 SDValue Remainder = DAG.getNode(ISD::SUB, DL, VT, Num, Num_S_Remainder); in LowerUDIVREM() local 1786 SDValue Remainder_GE_Den = DAG.getSelectCC(DL, Remainder, Den, in LowerUDIVREM() 1821 SDValue Remainder_S_Den = DAG.getNode(ISD::SUB, DL, VT, Remainder, Den); in LowerUDIVREM() 1824 SDValue Remainder_A_Den = DAG.getNode(ISD::ADD, DL, VT, Remainder, Den); in LowerUDIVREM() 1828 Remainder, Remainder_S_Den, ISD::SETEQ); in LowerUDIVREM()
|
/external/llvm/test/Analysis/ScalarEvolution/ |
D | flags-from-poison.ll | 288 ; Remainder of poison by non-poison divisor does not trigger UB.
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64SchedA57.td | 538 // Remainder
|