| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | IntegerDivision.cpp | 359 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 D | SimplifyIndVar.cpp | 318 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 D | AMDGPUEmitPrintf.cpp | 348 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 D | StackFrameLayoutAnalysisPass.cpp | 105 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 D | MachineScheduler.cpp | 2267 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 D | SelectOptimize.cpp | 794 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 D | BranchProbability.cpp | 92 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 D | APInt.cpp | 2748 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 D | APFixedPoint.cpp | 316 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 D | IntegerDivision.h | 32 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 D | COFF.cpp | 33 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 D | PPCMachineScheduler.cpp | 87 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 D | StmtVisitor.h | 127 BINOP_FALLBACK(Mul) BINOP_FALLBACK(Div) BINOP_FALLBACK(Rem) in BINOP_FALLBACK()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | MachineScheduler.h | 843 SchedRemainder *Rem = nullptr; variable 1170 SchedRemainder Rem; variable
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LowerMatrixIntrinsics.cpp | 2483 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 D | ConstraintElimination.cpp | 1777 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 D | InstCombineSimplifyDemanded.cpp | 837 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 D | InstCombineMulDivRem.cpp | 401 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 D | InstCombineShifts.cpp | 494 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 D | AMDGPUPromoteAlloca.cpp | 325 uint64_t Rem; in GEPToVectorIndex() local 326 APInt::udivrem(ConstOffset, VecElemSize, Quot, Rem); in GEPToVectorIndex() 327 if (Rem != 0) in GEPToVectorIndex()
|
| H A D | AMDGPUISelLowering.cpp | 1961 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 D | AMDGPULowerModuleLDSPass.cpp | 1412 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 D | CGStmt.cpp | 1465 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 D | Opcodes.td | 522 def Rem : IntegerOpcode;
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/LoongArch/ |
| H A D | LoongArchInstrInfo.td | 539 uint64_t Rem = Imm >> I1; 540 return Rem == 3 || Rem == 5 || Rem == 9 || Rem == 17;
|