Home
last modified time | relevance | path

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

12

/openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/
H A DIntegerDivision.cpp354 bool llvm::expandRemainder(BinaryOperator *Rem) { in expandRemainder() argument
355 assert((Rem->getOpcode() == Instruction::SRem || in expandRemainder()
356 Rem->getOpcode() == Instruction::URem) && in expandRemainder()
359 IRBuilder<> Builder(Rem); in expandRemainder()
361 assert(!Rem->getType()->isVectorTy() && "Div over vectors not supported"); in expandRemainder()
364 if (Rem->getOpcode() == Instruction::SRem) { in expandRemainder()
365 Value *Remainder = generateSignedRemainderCode(Rem->getOperand(0), in expandRemainder()
366 Rem->getOperand(1), Builder); in expandRemainder()
369 bool IsInsertPoint = Rem->getIterator() == Builder.GetInsertPoint(); in expandRemainder()
370 Rem->replaceAllUsesWith(Remainder); in expandRemainder()
[all …]
H A DSimplifyIndVar.cpp90 void simplifyIVRemainder(BinaryOperator *Rem, Instruction *IVOperand,
92 void replaceRemWithNumerator(BinaryOperator *Rem);
93 void replaceRemWithNumeratorOrZero(BinaryOperator *Rem);
94 void replaceSRemWithURem(BinaryOperator *Rem);
312 void SimplifyIndvar::replaceSRemWithURem(BinaryOperator *Rem) { in replaceSRemWithURem() argument
313 auto *N = Rem->getOperand(0), *D = Rem->getOperand(1); in replaceSRemWithURem()
315 Rem->getName() + ".urem", Rem); in replaceSRemWithURem()
316 Rem->replaceAllUsesWith(URem); in replaceSRemWithURem()
317 LLVM_DEBUG(dbgs() << "INDVARS: Simplified srem: " << *Rem << '\n'); in replaceSRemWithURem()
320 DeadInsts.emplace_back(Rem); in replaceSRemWithURem()
[all …]
/openbsd-src/gnu/usr.bin/texinfo/djgpp/
H A Dconfig.bat5 Rem The small_env tests protect against fixed and too small size
6 Rem of the environment in stock DOS shell.
8 Rem Find out if NLS is wanted or not, if dependency-tracking is
9 Rem wanted or not, if cache is wanted or not, and where the sources are.
20 Rem Loop over all arguments.
21 Rem Special arguments are: NLS, XSRC CACHE and DEPS.
22 Rem All other arguments are stored into ARGS.
78 Rem Create a response file for the configure script.
96 Rem Update configuration files
103 Rem Make sure they have a config.site file
[all …]
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DStackFrameLayoutAnalysisPass.cpp105 MachineOptimizationRemarkAnalysis Rem(DEBUG_TYPE, "StackLayout", in runOnMachineFunction() local
108 Rem << ("\nFunction: " + MF.getName()).str(); in runOnMachineFunction()
109 emitStackFrameLayoutRemarks(MF, Rem); in runOnMachineFunction()
110 getAnalysis<MachineOptimizationRemarkEmitterPass>().getORE().emit(Rem); in runOnMachineFunction()
128 MachineOptimizationRemarkAnalysis &Rem) { in emitStackSlotRemark()
153 Rem << Prefix << ore::NV("Offset", D.Offset) in emitStackSlotRemark()
160 MachineOptimizationRemarkAnalysis &Rem) { in emitSourceLocRemark()
164 Rem << "\n " << ore::NV("DataLoc", Loc); in emitSourceLocRemark()
168 MachineOptimizationRemarkAnalysis &Rem) { in emitStackFrameLayoutRemarks()
200 emitStackSlotRemark(MF, Info, Rem); in emitStackFrameLayoutRemarks()
[all …]
H A DMachineScheduler.cpp2049 Rem = rem; in init()
2243 unsigned OtherCritCount = Rem->RemIssueCount in getOtherResourceCount()
2249 unsigned OtherCount = getResourceCount(PIdx) + Rem->RemainingCounts[PIdx]; in getOtherResourceCount()
2358 assert(Rem->RemainingCounts[PIdx] >= Count && "resource double counted"); in countResource()
2359 Rem->RemainingCounts[PIdx] -= Count; in countResource()
2431 assert(Rem->RemIssueCount >= DecRemIssue && "MOps double counted"); in bumpNode()
2432 Rem->RemIssueCount -= DecRemIssue; in bumpNode()
2701 if (CurrZone.getCurrCycle() > Rem.CriticalPath) in shouldReduceLatency()
2711 return RemLatency + CurrZone.getCurrCycle() > Rem.CriticalPath; in shouldReduceLatency()
2748 << Rem.CriticalPath << "\n"); in setPolicy()
[all …]
H A DSelectOptimize.cpp577 DiagnosticInfoOptimizationBase &Rem) { in EmitAndPrintRemark() argument
578 LLVM_DEBUG(dbgs() << Rem.getMsg() << "\n"); in EmitAndPrintRemark()
579 ORE->emit(Rem); in EmitAndPrintRemark()
/openbsd-src/gnu/llvm/llvm/lib/Support/
H A DBranchProbability.cpp92 uint64_t Rem = (uint64_t(Upper32) << 32) | Mid32; in scale() local
93 uint64_t UpperQ = Rem / D; in scale()
99 Rem = ((Rem % D) << 32) | Lower32; in scale()
100 uint64_t LowerQ = Rem / D; in scale()
H A DAPInt.cpp2729 APInt Quo, Rem; in RoundingUDiv() local
2730 APInt::udivrem(A, B, Quo, Rem); in RoundingUDiv()
2731 if (Rem.isZero()) in RoundingUDiv()
2744 APInt Quo, Rem; in RoundingSDiv() local
2745 APInt::sdivrem(A, B, Quo, Rem); in RoundingSDiv()
2746 if (Rem.isZero()) in RoundingSDiv()
2754 if (Rem.isNegative() != B.isNegative()) in RoundingSDiv()
2758 if (Rem.isNegative() != B.isNegative()) in RoundingSDiv()
2910 APInt Rem; in SolveQuadraticEquationWrap() local
2919 APInt::sdivrem(-B - (SQ+InexactSQ), TwoA, X, Rem); in SolveQuadraticEquationWrap()
[all …]
H A DAPFixedPoint.cpp316 APInt Rem; in div() local
317 APInt::sdivrem(ThisVal, OtherVal, Result, Rem); in div()
320 if (ThisVal.isNegative() != OtherVal.isNegative() && !Rem.isZero()) in div()
/openbsd-src/gnu/llvm/llvm/include/llvm/Transforms/Utils/
H A DIntegerDivision.h32 bool expandRemainder(BinaryOperator *Rem);
49 bool expandRemainderUpTo32Bits(BinaryOperator *Rem);
55 bool expandRemainderUpTo64Bits(BinaryOperator *Rem);
/openbsd-src/gnu/llvm/llvm/lib/BinaryFormat/
H A DCOFF.cpp33 unsigned Rem = Value % 64; in encodeBase64StringEntry() local
35 *(Ptr--) = Alphabet[Rem]; in encodeBase64StringEntry()
/openbsd-src/gnu/llvm/llvm/lib/Target/PowerPC/
H A DPPCMachineScheduler.cpp87 if (Rem.IsAcyclicLatencyLimited && !Zone->getCurrMOps() && in tryCandidate()
138 !Rem.IsAcyclicLatencyLimited && tryLatency(TryCand, Cand, *Zone)) in tryCandidate()
/openbsd-src/gnu/llvm/clang/include/clang/AST/
H A DStmtVisitor.h127 BINOP_FALLBACK(Mul) BINOP_FALLBACK(Div) BINOP_FALLBACK(Rem) in BINOP_FALLBACK()
H A DOperationKinds.def374 BINARY_OPERATION(Rem, "%")
/openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/
H A DMachineScheduler.h622 SchedRemainder *Rem = nullptr; variable
941 SchedRemainder Rem; variable
/openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp374 uint64_t Rem; in GEPToVectorIndex() local
375 APInt::udivrem(ConstOffset, VecElemSize, Quot, Rem); in GEPToVectorIndex()
376 if (Rem != 0) in GEPToVectorIndex()
H A DAMDGPUISelLowering.cpp1782 SDValue Rem = DAG.getNode(ISD::MUL, DL, VT, Div, RHS); in LowerDIVREM24() local
1783 Rem = DAG.getNode(ISD::SUB, DL, VT, LHS, Rem); in LowerDIVREM24()
1790 Rem = DAG.getNode(ISD::SIGN_EXTEND_INREG, DL, VT, Rem, InRegSize); in LowerDIVREM24()
1794 Rem = DAG.getNode(ISD::AND, DL, VT, Rem, TruncMask); in LowerDIVREM24()
1797 return DAG.getMergeValues({ Div, Rem }, DL); in LowerDIVREM24()
1965 SDValue Rem = DAG.getSelectCC(DL, C3, Zero, Sel2, Sub1, ISD::SETNE); in LowerUDIVREM64() local
1968 Results.push_back(Rem); in LowerUDIVREM64()
2116 SDValue Rem = Div.getValue(1); in LowerSDIVREM() local
2119 Rem = DAG.getNode(ISD::XOR, DL, VT, Rem, RSign); in LowerSDIVREM()
2122 Rem = DAG.getNode(ISD::SUB, DL, VT, Rem, RSign); in LowerSDIVREM()
[all …]
H A DAMDGPULowerModuleLDSPass.cpp1048 if (uint64_t Rem = CurrentOffset % DataAlignV) { in createLDSVariableReplacement() local
1049 uint64_t Padding = DataAlignV - Rem; in createLDSVariableReplacement()
H A DAMDGPUCodeGenPrepare.cpp995 Value *Rem = Builder.CreateMul(Div, Den); in expandDivRem24Impl() local
996 Res = Builder.CreateSub(Num, Rem); in expandDivRem24Impl()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp819 const APInt *Rem; in SimplifyDemandedUseBits() local
820 if (match(I->getOperand(1), m_APInt(Rem))) { in SimplifyDemandedUseBits()
823 if (Rem->isAllOnes()) in SimplifyDemandedUseBits()
825 APInt RA = Rem->abs(); in SimplifyDemandedUseBits()
H A DInstCombineMulDivRem.cpp375 Value *Rem = Builder.CreateBinOp(RemOpc, XFreeze, DivOp1); in visitMul() local
377 return BinaryOperator::CreateSub(XFreeze, Rem); in visitMul()
378 return BinaryOperator::CreateSub(Rem, XFreeze); in visitMul()
H A DInstCombineShifts.cpp462 Value *Rem = Builder.CreateAnd(A, Mask, Op1->getName()); in commonShiftTransforms() local
463 return replaceOperand(I, 1, Rem); in commonShiftTransforms()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DLowerMatrixIntrinsics.cpp2329 OptimizationRemark Rem(DEBUG_TYPE, "matrix-lowered", Loc, in emitRemarks() local
2332 Rem << "Lowered with "; in emitRemarks()
2333 Rem << ore::NV("NumStores", Counts.NumStores) << " stores, " in emitRemarks()
2342 Rem << ",\nadditionally " in emitRemarks()
2350 Rem << ("\n" + linearize(L, Shared, ExprsInSubprogram, DL)); in emitRemarks()
2351 ORE.emit(Rem); in emitRemarks()
/openbsd-src/gnu/llvm/clang/lib/AST/Interp/
H A DOpcodes.td410 def Rem : Opcode {
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCGStmt.cpp1447 uint64_t Weight = Total / NCases, Rem = Total % NCases; in EmitCaseStmtRange() local
1450 SwitchWeights->push_back(Weight + (Rem ? 1 : 0)); in EmitCaseStmtRange()
1454 if (Rem) in EmitCaseStmtRange()
1455 Rem--; in EmitCaseStmtRange()

12