Home
last modified time | relevance | path

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

12

/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DIntegerDivision.cpp359 IRBuilder<> Builder(Rem); in expandRemainder()
372 Rem->eraseFromParent(); in expandRemainder()
381 Rem = BO; in expandRemainder()
389 Rem->dropAllReferences(); in expandRemainder()
390 Rem->eraseFromParent(); in expandRemainder()
474 IRBuilder<> Builder(Rem); in expandRemainderUpTo32Bits()
494 Rem->dropAllReferences(); in expandRemainderUpTo32Bits()
495 Rem->eraseFromParent(); in expandRemainderUpTo32Bits()
520 IRBuilder<> Builder(Rem); in expandRemainderUpTo64Bits()
540 Rem->dropAllReferences(); in expandRemainderUpTo64Bits()
[all …]
H A DSimplifyIndVar.cpp318 auto *N = Rem->getOperand(0), *D = Rem->getOperand(1); in replaceSRemWithURem()
320 Rem->getName() + ".urem", Rem); in replaceSRemWithURem()
325 DeadInsts.emplace_back(Rem); in replaceSRemWithURem()
330 Rem->replaceAllUsesWith(Rem->getOperand(0)); in replaceRemWithNumerator()
334 DeadInsts.emplace_back(Rem); in replaceRemWithNumerator()
339 auto *T = Rem->getType(); in replaceRemWithNumeratorOrZero()
340 auto *N = Rem->getOperand(0), *D = Rem->getOperand(1); in replaceRemWithNumeratorOrZero()
344 Rem->replaceAllUsesWith(Sel); in replaceRemWithNumeratorOrZero()
348 DeadInsts.emplace_back(Rem); in replaceRemWithNumeratorOrZero()
387 auto *T = Rem->getType(); in simplifyIVRemainder()
[all …]
H A DAMDGPUEmitPrintf.cpp348 int Rem = (Str.size() % 8); in processConstantStringArg() local
349 if (Rem > 0 && Rem <= 4) in processConstantStringArg()
/freebsd-14.2/contrib/llvm-project/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.cpp2267 Rem = rem; in init()
2612 Rem->RemainingCounts[PIdx] -= Count; in countResource()
2686 Rem->RemIssueCount -= DecRemIssue; in bumpNode()
3217 Rem.init(DAG, SchedModel); in initialize()
3218 Top.init(DAG, SchedModel, &Rem); in initialize()
3219 Bot.init(DAG, SchedModel, &Rem); in initialize()
3310 if (Rem.CyclicCritPath == 0 || Rem.CyclicCritPath >= Rem.CriticalPath) in checkAcyclicLatency()
3316 Rem.RemIssueCount); in checkAcyclicLatency()
3343 Rem.CriticalPath = SU->getDepth(); in registerRoots()
3827 Rem.init(DAG, SchedModel); in initialize()
[all …]
H A DSelectOptimize.cpp794 DiagnosticInfoOptimizationBase &Rem) { in EmitAndPrintRemark() argument
795 LLVM_DEBUG(dbgs() << Rem.getMsg() << "\n"); in EmitAndPrintRemark()
796 ORE->emit(Rem); in EmitAndPrintRemark()
/freebsd-14.2/contrib/llvm-project/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.cpp2748 APInt Quo, Rem; in RoundingUDiv() local
2749 APInt::udivrem(A, B, Quo, Rem); in RoundingUDiv()
2750 if (Rem.isZero()) in RoundingUDiv()
2763 APInt Quo, Rem; in RoundingSDiv() local
2764 APInt::sdivrem(A, B, Quo, Rem); in RoundingSDiv()
2765 if (Rem.isZero()) in RoundingSDiv()
2773 if (Rem.isNegative() != B.isNegative()) in RoundingSDiv()
2777 if (Rem.isNegative() != B.isNegative()) in RoundingSDiv()
2929 APInt Rem; in SolveQuadraticEquationWrap() local
2940 APInt::sdivrem(-B + SQ, 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()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DIntegerDivision.h32 bool expandRemainder(BinaryOperator *Rem);
49 bool expandRemainderUpTo32Bits(BinaryOperator *Rem);
55 bool expandRemainderUpTo64Bits(BinaryOperator *Rem);
/freebsd-14.2/contrib/llvm-project/llvm/lib/BinaryFormat/
H A DCOFF.cpp33 unsigned Rem = Value % 64; in encodeBase64StringEntry() local
35 *(Ptr--) = Alphabet[Rem]; in encodeBase64StringEntry()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCMachineScheduler.cpp87 if (Rem.IsAcyclicLatencyLimited && !Zone->getCurrMOps() && in tryCandidate()
138 !Rem.IsAcyclicLatencyLimited && tryLatency(TryCand, Cand, *Zone)) in tryCandidate()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/
H A DStmtVisitor.h127 BINOP_FALLBACK(Mul) BINOP_FALLBACK(Div) BINOP_FALLBACK(Rem) in BINOP_FALLBACK()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineScheduler.h843 SchedRemainder *Rem = nullptr; variable
1170 SchedRemainder Rem; variable
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLowerMatrixIntrinsics.cpp2483 OptimizationRemark Rem(DEBUG_TYPE, "matrix-lowered", Loc, in emitRemarks() local
2486 Rem << "Lowered with "; in emitRemarks()
2487 Rem << ore::NV("NumStores", Counts.NumStores) << " stores, " in emitRemarks()
2496 Rem << ",\nadditionally " in emitRemarks()
2504 Rem << ("\n" + linearize(L, Shared, ExprsInSubprogram, DL)); in emitRemarks()
2505 ORE.emit(Rem); in emitRemarks()
H A DConstraintElimination.cpp1777 OptimizationRemark Rem(DEBUG_TYPE, "Reproducer", &F); in eliminateConstraints() local
1778 Rem << ore::NV("module") << S; in eliminateConstraints()
1779 ORE.emit(Rem); in eliminateConstraints()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp837 const APInt *Rem; in SimplifyDemandedUseBits() local
838 if (match(I->getOperand(1), m_APInt(Rem))) { in SimplifyDemandedUseBits()
841 if (Rem->isAllOnes()) in SimplifyDemandedUseBits()
843 APInt RA = Rem->abs(); in SimplifyDemandedUseBits()
H A DInstCombineMulDivRem.cpp401 Value *Rem = Builder.CreateBinOp(RemOpc, XFreeze, DivOp1); in visitMul() local
403 return BinaryOperator::CreateSub(XFreeze, Rem); in visitMul()
404 return BinaryOperator::CreateSub(Rem, XFreeze); in visitMul()
H A DInstCombineShifts.cpp494 Value *Rem = Builder.CreateAnd(A, Mask, Op1->getName()); in commonShiftTransforms() local
495 return replaceOperand(I, 1, Rem); in commonShiftTransforms()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp325 uint64_t Rem; in GEPToVectorIndex() local
326 APInt::udivrem(ConstOffset, VecElemSize, Quot, Rem); in GEPToVectorIndex()
327 if (Rem != 0) in GEPToVectorIndex()
H A DAMDGPUISelLowering.cpp1961 SDValue Rem = DAG.getNode(ISD::MUL, DL, VT, Div, RHS); in LowerDIVREM24() local
1962 Rem = DAG.getNode(ISD::SUB, DL, VT, LHS, Rem); in LowerDIVREM24()
1969 Rem = DAG.getNode(ISD::SIGN_EXTEND_INREG, DL, VT, Rem, InRegSize); in LowerDIVREM24()
1973 Rem = DAG.getNode(ISD::AND, DL, VT, Rem, TruncMask); in LowerDIVREM24()
1976 return DAG.getMergeValues({ Div, Rem }, DL); in LowerDIVREM24()
2142 SDValue Rem = DAG.getSelectCC(DL, C3, Zero, Sel2, Sub1, ISD::SETNE); in LowerUDIVREM64() local
2145 Results.push_back(Rem); in LowerUDIVREM64()
2293 SDValue Rem = Div.getValue(1); in LowerSDIVREM() local
2296 Rem = DAG.getNode(ISD::XOR, DL, VT, Rem, RSign); in LowerSDIVREM()
2299 Rem = DAG.getNode(ISD::SUB, DL, VT, Rem, RSign); in LowerSDIVREM()
[all …]
H A DAMDGPULowerModuleLDSPass.cpp1412 if (uint64_t Rem = CurrentOffset % DataAlignV) { in createLDSVariableReplacement() local
1413 uint64_t Padding = DataAlignV - Rem; in createLDSVariableReplacement()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGStmt.cpp1465 uint64_t Weight = Total / NCases, Rem = Total % NCases; in EmitCaseStmtRange() local
1468 SwitchWeights->push_back(Weight + (Rem ? 1 : 0)); in EmitCaseStmtRange()
1472 if (Rem) in EmitCaseStmtRange()
1473 Rem--; in EmitCaseStmtRange()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/Interp/
H A DOpcodes.td522 def Rem : IntegerOpcode;
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchInstrInfo.td539 uint64_t Rem = Imm >> I1;
540 return Rem == 3 || Rem == 5 || Rem == 9 || Rem == 17;

12