Home
last modified time | relevance | path

Searched refs:Rem (Results 1 – 25 of 35) sorted by relevance

12

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DIntegerDivision.cpp375 bool llvm::expandRemainder(BinaryOperator *Rem) { in expandRemainder() argument
376 assert((Rem->getOpcode() == Instruction::SRem || in expandRemainder()
377 Rem->getOpcode() == Instruction::URem) && in expandRemainder()
380 IRBuilder<> Builder(Rem); in expandRemainder()
382 assert(!Rem->getType()->isVectorTy() && "Div over vectors not supported"); in expandRemainder()
383 assert((Rem->getType()->getIntegerBitWidth() == 32 || in expandRemainder()
384 Rem->getType()->getIntegerBitWidth() == 64) && in expandRemainder()
388 if (Rem->getOpcode() == Instruction::SRem) { in expandRemainder()
389 Value *Remainder = generateSignedRemainderCode(Rem->getOperand(0), in expandRemainder()
390 Rem->getOperand(1), Builder); in expandRemainder()
[all …]
H A DSimplifyIndVar.cpp91 void simplifyIVRemainder(BinaryOperator *Rem, Value *IVOperand,
93 void replaceRemWithNumerator(BinaryOperator *Rem);
94 void replaceRemWithNumeratorOrZero(BinaryOperator *Rem);
95 void replaceSRemWithURem(BinaryOperator *Rem);
340 void SimplifyIndvar::replaceSRemWithURem(BinaryOperator *Rem) { in replaceSRemWithURem() argument
341 auto *N = Rem->getOperand(0), *D = Rem->getOperand(1); in replaceSRemWithURem()
343 Rem->getName() + ".urem", Rem); in replaceSRemWithURem()
344 Rem->replaceAllUsesWith(URem); in replaceSRemWithURem()
345 LLVM_DEBUG(dbgs() << "INDVARS: Simplified srem: " << *Rem << '\n'); in replaceSRemWithURem()
348 DeadInsts.emplace_back(Rem); in replaceSRemWithURem()
[all …]
/netbsd-src/external/gpl2/gettext/dist/djgpp/
H A Dconfig.bat4 Rem The SmallEnv tests protect against fixed and too small size
5 Rem of the environment in stock DOS shell.
7 Rem Find out if NLS is wanted or not,
8 Rem if dependency-tracking is wanted or not,
9 Rem if caching is wanted or not
10 Rem if static or shared libraries are wanted
11 Rem and where the sources are.
12 Rem We always default to NLS support,
13 Rem no dependency tracking, static library
14 Rem and to in place configuration.
[all …]
/netbsd-src/external/gpl2/groff/dist/arch/djgpp/
H A Dconfig.bat4 Rem The SmallEnv tests protect against fixed and too small size
5 Rem of the environment in stock DOS shell.
7 Rem Find out where the sources are
17 Rem Update configuration files
23 Rem Make sure they have a config.site file
27 Rem This is required because DOS/Windows are case-insensitive
28 Rem to file names, and "make install" will do nothing if Make
29 Rem finds a file called `install'.
32 Rem Set HOSTNAME so it shows in config.status
62 Rem install-sh is required by the configure script but clashes with the
[all …]
H A Dt-groff.bat2 Rem This script runs groff without requiring that it be installed.
3 Rem The current directory must be the build directory.
15 Rem chdir to src, to avoid overflowing the DOS limits with a long PATH.
21 Rem
25 Rem Make the following command pipe to Less if you have Less installed:
27 Rem
32 Rem Uncomment the following command if you have a PostScript printer:
34 Rem
39 Rem Uncomment the following command if you have a LaserJet4 printer:
41 Rem
[all …]
/netbsd-src/sys/external/bsd/gnu-efi/dist/lib/ia32/
H A Dmath.c150 UINT32 Rem; in DivU64x32() local
160 Rem = 0; in DivU64x32()
175 : "m"(Dividend), "m"(Divisor), "m"(Rem) in DivU64x32()
182 rcl dword ptr Rem, 1 in DivU64x32()
184 mov eax, Rem in DivU64x32()
185 cmp eax, Divisor ; Is Rem >= Divisor? in DivU64x32()
190 sub Rem, eax ; subtract divisor in DivU64x32()
196 *Remainder = Rem; in DivU64x32()
/netbsd-src/sys/external/bsd/gnu-efi/dist/lib/x86_64/
H A Dmath.c150 UINT32 Rem; in DivU64x32()
160 Rem = 0; in DivU64x32()
165 rcl dword ptr Rem, 1 in DivU64x32()
167 mov eax, Rem in DivU64x32()
168 cmp eax, Divisor ; Is Rem >= Divisor? in DivU64x32()
173 sub Rem, eax ; subtract divisor in DivU64x32()
178 *Remainder = Rem; in DivU64x32()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Support/
H A DBranchProbability.cpp91 uint64_t Rem = (uint64_t(Upper32) << 32) | Mid32; in scale() local
92 uint64_t UpperQ = Rem / D; in scale()
98 Rem = ((Rem % D) << 32) | Lower32; in scale()
99 uint64_t LowerQ = Rem / D; in scale()
H A DAPFixedPoint.cpp305 APInt Rem; in div() local
306 APInt::sdivrem(ThisVal, OtherVal, Result, Rem); in div()
309 if (ThisVal.isNegative() != OtherVal.isNegative() && !Rem.isNullValue()) in div()
H A DAPInt.cpp2824 APInt Quo, Rem; in RoundingUDiv() local
2825 APInt::udivrem(A, B, Quo, Rem); in RoundingUDiv()
2826 if (Rem == 0) in RoundingUDiv()
2839 APInt Quo, Rem; in RoundingSDiv() local
2840 APInt::sdivrem(A, B, Quo, Rem); in RoundingSDiv()
2841 if (Rem == 0) in RoundingSDiv()
2849 if (Rem.isNegative() != B.isNegative()) in RoundingSDiv()
2853 if (Rem.isNegative() != B.isNegative()) in RoundingSDiv()
3005 APInt Rem; in SolveQuadraticEquationWrap() local
3014 APInt::sdivrem(-B - (SQ+InexactSQ), TwoA, X, Rem); in SolveQuadraticEquationWrap()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/
H A DIntegerDivision.h32 bool expandRemainder(BinaryOperator *Rem);
49 bool expandRemainderUpTo32Bits(BinaryOperator *Rem);
55 bool expandRemainderUpTo64Bits(BinaryOperator *Rem);
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DMachineScheduler.cpp2044 Rem = rem; in init()
2238 unsigned OtherCritCount = Rem->RemIssueCount in getOtherResourceCount()
2244 unsigned OtherCount = getResourceCount(PIdx) + Rem->RemainingCounts[PIdx]; in getOtherResourceCount()
2353 assert(Rem->RemainingCounts[PIdx] >= Count && "resource double counted"); in countResource()
2354 Rem->RemainingCounts[PIdx] -= Count; in countResource()
2426 assert(Rem->RemIssueCount >= DecRemIssue && "MOps double counted"); in bumpNode()
2427 Rem->RemIssueCount -= DecRemIssue; in bumpNode()
2672 if (CurrZone.getCurrCycle() > Rem.CriticalPath) in shouldReduceLatency()
2682 return RemLatency + CurrZone.getCurrCycle() > Rem.CriticalPath; in shouldReduceLatency()
2719 << Rem.CriticalPath << "\n"); in setPolicy()
[all …]
H A DTargetSchedule.cpp50 unsigned Rem = Dividend % Divisor; in gcd() local
52 Divisor = Rem; in gcd()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPUPrintfRuntimeBinding.cpp258 size_t Rem = SizeStr % DWORD_ALIGN; in lowerPrintfForGpu() local
262 if (Rem) { in lowerPrintfForGpu()
263 NSizeStr = SizeStr + (DWORD_ALIGN - Rem); in lowerPrintfForGpu()
439 size_t Rem = SizeStr % DWORD_ALIGN; in lowerPrintfForGpu() local
441 if (Rem) { in lowerPrintfForGpu()
442 NSizeStr = SizeStr + (DWORD_ALIGN - Rem); in lowerPrintfForGpu()
H A DAMDGPULowerModuleLDSPass.cpp184 if (uint64_t Rem = CurrentOffset % DataAlignV) { in runOnModule() local
185 uint64_t Padding = DataAlignV - Rem; in runOnModule()
H A DAMDGPUISelLowering.cpp1749 SDValue Rem = DAG.getNode(ISD::MUL, DL, VT, Div, RHS); in LowerDIVREM24() local
1750 Rem = DAG.getNode(ISD::SUB, DL, VT, LHS, Rem); in LowerDIVREM24()
1757 Rem = DAG.getNode(ISD::SIGN_EXTEND_INREG, DL, VT, Rem, InRegSize); in LowerDIVREM24()
1761 Rem = DAG.getNode(ISD::AND, DL, VT, Rem, TruncMask); in LowerDIVREM24()
1764 return DAG.getMergeValues({ Div, Rem }, DL); in LowerDIVREM24()
1931 SDValue Rem = DAG.getSelectCC(DL, C3, Zero, Sel2, Sub1, ISD::SETNE); in LowerUDIVREM64() local
1934 Results.push_back(Rem); in LowerUDIVREM64()
2082 SDValue Rem = Div.getValue(1); in LowerSDIVREM() local
2085 Rem = DAG.getNode(ISD::XOR, DL, VT, Rem, RSign); in LowerSDIVREM()
2088 Rem = DAG.getNode(ISD::SUB, DL, VT, Rem, RSign); in LowerSDIVREM()
[all …]
H A DAMDGPUCodeGenPrepare.cpp946 Value *Rem = Builder.CreateMul(Div, Den); in expandDivRem24Impl() local
947 Res = Builder.CreateSub(Num, Rem); in expandDivRem24Impl()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/PowerPC/
H A DPPCMachineScheduler.cpp87 if (Rem.IsAcyclicLatencyLimited && !Zone->getCurrMOps() && in tryCandidate()
138 !Rem.IsAcyclicLatencyLimited && tryLatency(TryCand, Cand, *Zone)) in tryCandidate()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp699 ConstantInt *Rem; in SimplifyDemandedUseBits() local
700 if (match(I->getOperand(1), m_ConstantInt(Rem))) { in SimplifyDemandedUseBits()
703 if (Rem->isMinusOne()) in SimplifyDemandedUseBits()
705 APInt RA = Rem->getValue().abs(); in SimplifyDemandedUseBits()
H A DInstCombineMulDivRem.cpp292 Value *Rem = Builder.CreateBinOp(RemOpc, X, DivOp1); in visitMul() local
294 return BinaryOperator::CreateSub(X, Rem); in visitMul()
295 return BinaryOperator::CreateSub(Rem, X); in visitMul()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DLowerMatrixIntrinsics.cpp1999 OptimizationRemark Rem(DEBUG_TYPE, "matrix-lowered", Loc, in emitRemarks() local
2002 Rem << "Lowered with "; in emitRemarks()
2003 Rem << ore::NV("NumStores", Counts.NumStores) << " stores, " in emitRemarks()
2010 Rem << ",\nadditionally " in emitRemarks()
2018 Rem << ("\n" + linearize(L, Shared, ExprsInSubprogram, DL)); in emitRemarks()
2019 ORE.emit(Rem); in emitRemarks()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/
H A DMachineScheduler.h619 SchedRemainder *Rem = nullptr; variable
911 SchedRemainder Rem; variable
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/
H A DStmtVisitor.h127 BINOP_FALLBACK(Mul) BINOP_FALLBACK(Div) BINOP_FALLBACK(Rem) in BINOP_FALLBACK()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/MC/
H A DWinCOFFObjectWriter.cpp450 unsigned Rem = Value % 64; in encodeBase64StringEntry() local
452 *(Ptr--) = Alphabet[Rem]; in encodeBase64StringEntry()
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCGStmt.cpp1337 uint64_t Weight = Total / NCases, Rem = Total % NCases; in EmitCaseStmtRange() local
1340 SwitchWeights->push_back(Weight + (Rem ? 1 : 0)); in EmitCaseStmtRange()
1344 if (Rem) in EmitCaseStmtRange()
1345 Rem--; in EmitCaseStmtRange()

12