| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | IntegerDivision.cpp | 380 IRBuilder<> Builder(Rem); in expandRemainder() 396 Rem->eraseFromParent(); in expandRemainder() 405 Rem = BO; in expandRemainder() 413 Rem->dropAllReferences(); in expandRemainder() 414 Rem->eraseFromParent(); in expandRemainder() 503 IRBuilder<> Builder(Rem); in expandRemainderUpTo32Bits() 523 Rem->dropAllReferences(); in expandRemainderUpTo32Bits() 524 Rem->eraseFromParent(); in expandRemainderUpTo32Bits() 551 IRBuilder<> Builder(Rem); in expandRemainderUpTo64Bits() 571 Rem->dropAllReferences(); in expandRemainderUpTo64Bits() [all …]
|
| H A D | SimplifyIndVar.cpp | 341 auto *N = Rem->getOperand(0), *D = Rem->getOperand(1); in replaceSRemWithURem() 343 Rem->getName() + ".urem", Rem); in replaceSRemWithURem() 348 DeadInsts.emplace_back(Rem); in replaceSRemWithURem() 353 Rem->replaceAllUsesWith(Rem->getOperand(0)); in replaceRemWithNumerator() 357 DeadInsts.emplace_back(Rem); in replaceRemWithNumerator() 362 auto *T = Rem->getType(); in replaceRemWithNumeratorOrZero() 363 auto *N = Rem->getOperand(0), *D = Rem->getOperand(1); in replaceRemWithNumeratorOrZero() 367 Rem->replaceAllUsesWith(Sel); in replaceRemWithNumeratorOrZero() 371 DeadInsts.emplace_back(Rem); in replaceRemWithNumeratorOrZero() 409 auto *T = Rem->getType(); in simplifyIVRemainder() [all …]
|
| /freebsd-13.1/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 | APFixedPoint.cpp | 305 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 D | APInt.cpp | 2820 APInt Quo, Rem; in RoundingUDiv() local 2821 APInt::udivrem(A, B, Quo, Rem); in RoundingUDiv() 2822 if (Rem == 0) in RoundingUDiv() 2835 APInt Quo, Rem; in RoundingSDiv() local 2836 APInt::sdivrem(A, B, Quo, Rem); in RoundingSDiv() 2837 if (Rem == 0) in RoundingSDiv() 2845 if (Rem.isNegative() != B.isNegative()) in RoundingSDiv() 2849 if (Rem.isNegative() != B.isNegative()) in RoundingSDiv() 3001 APInt Rem; in SolveQuadraticEquationWrap() local 3012 APInt::sdivrem(-B + SQ, TwoA, X, Rem); in SolveQuadraticEquationWrap() [all …]
|
| /freebsd-13.1/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-13.1/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | MachineScheduler.cpp | 2044 Rem = rem; in init() 2354 Rem->RemainingCounts[PIdx] -= Count; in countResource() 2427 Rem->RemIssueCount -= DecRemIssue; in bumpNode() 2908 Rem.init(DAG, SchedModel); in initialize() 2909 Top.init(DAG, SchedModel, &Rem); in initialize() 2910 Bot.init(DAG, SchedModel, &Rem); in initialize() 3001 if (Rem.CyclicCritPath == 0 || Rem.CyclicCritPath >= Rem.CriticalPath) in checkAcyclicLatency() 3007 Rem.RemIssueCount); in checkAcyclicLatency() 3034 Rem.CriticalPath = SU->getDepth(); in registerRoots() 3518 Rem.init(DAG, SchedModel); in initialize() [all …]
|
| H A D | TargetSchedule.cpp | 50 unsigned Rem = Dividend % Divisor; in gcd() local 52 Divisor = Rem; in gcd()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUPrintfRuntimeBinding.cpp | 258 size_t Rem = SizeStr % DWORD_ALIGN; in lowerPrintfForGpu() local 262 if (Rem) { in lowerPrintfForGpu() 263 NSizeStr = SizeStr + (DWORD_ALIGN - Rem); in lowerPrintfForGpu() 433 size_t Rem = SizeStr % DWORD_ALIGN; in lowerPrintfForGpu() local 435 if (Rem) { in lowerPrintfForGpu() 436 NSizeStr = SizeStr + (DWORD_ALIGN - Rem); in lowerPrintfForGpu()
|
| H A D | AMDGPULowerModuleLDSPass.cpp | 235 if (uint64_t Rem = CurrentOffset % DataAlignV) { in processUsedLDS() local 236 uint64_t Padding = DataAlignV - Rem; in processUsedLDS()
|
| H A D | AMDGPUISelLowering.cpp | 1804 SDValue Rem = DAG.getNode(ISD::MUL, DL, VT, Div, RHS); in LowerDIVREM24() local 1805 Rem = DAG.getNode(ISD::SUB, DL, VT, LHS, Rem); in LowerDIVREM24() 1812 Rem = DAG.getNode(ISD::SIGN_EXTEND_INREG, DL, VT, Rem, InRegSize); in LowerDIVREM24() 1816 Rem = DAG.getNode(ISD::AND, DL, VT, Rem, TruncMask); in LowerDIVREM24() 1819 return DAG.getMergeValues({ Div, Rem }, DL); in LowerDIVREM24() 1986 SDValue Rem = DAG.getSelectCC(DL, C3, Zero, Sel2, Sub1, ISD::SETNE); in LowerUDIVREM64() local 1989 Results.push_back(Rem); in LowerUDIVREM64() 2137 SDValue Rem = Div.getValue(1); in LowerSDIVREM() local 2140 Rem = DAG.getNode(ISD::XOR, DL, VT, Rem, RSign); in LowerSDIVREM() 2143 Rem = DAG.getNode(ISD::SUB, DL, VT, Rem, RSign); in LowerSDIVREM() [all …]
|
| H A D | AMDGPUCodeGenPrepare.cpp | 973 Value *Rem = Builder.CreateMul(Div, Den); in expandDivRem24Impl() local 974 Res = Builder.CreateSub(Num, Rem); in expandDivRem24Impl()
|
| /freebsd-13.1/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-13.1/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()
|
| H A D | OperationKinds.def | 374 BINARY_OPERATION(Rem, "%")
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSimplifyDemanded.cpp | 699 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 D | InstCombineMulDivRem.cpp | 292 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()
|
| H A D | InstCombineShifts.cpp | 419 Value *Rem = Builder.CreateAnd(A, Mask, Op1->getName()); in commonShiftTransforms() local 420 return replaceOperand(I, 1, Rem); in commonShiftTransforms()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | MachineScheduler.h | 619 SchedRemainder *Rem = nullptr; variable 911 SchedRemainder Rem; variable
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LowerMatrixIntrinsics.cpp | 2197 OptimizationRemark Rem(DEBUG_TYPE, "matrix-lowered", Loc, in emitRemarks() local 2200 Rem << "Lowered with "; in emitRemarks() 2201 Rem << ore::NV("NumStores", Counts.NumStores) << " stores, " in emitRemarks() 2210 Rem << ",\nadditionally " in emitRemarks() 2218 Rem << ("\n" + linearize(L, Shared, ExprsInSubprogram, DL)); in emitRemarks() 2219 ORE.emit(Rem); in emitRemarks()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/MC/ |
| H A D | WinCOFFObjectWriter.cpp | 450 unsigned Rem = Value % 64; in encodeBase64StringEntry() local 452 *(Ptr--) = Alphabet[Rem]; in encodeBase64StringEntry()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGStmt.cpp | 1375 uint64_t Weight = Total / NCases, Rem = Total % NCases; in EmitCaseStmtRange() local 1378 SwitchWeights->push_back(Weight + (Rem ? 1 : 0)); in EmitCaseStmtRange() 1382 if (Rem) in EmitCaseStmtRange() 1383 Rem--; in EmitCaseStmtRange()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | LoopAccessAnalysis.cpp | 1114 int64_t Rem = StepVal % Size; in getPtrStride() local 1115 if (Rem) in getPtrStride()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | AttributorAttributes.cpp | 227 uint64_t Rem = Offset - SL->getElementOffset(Idx); in constructPointer() local 231 << " Idx: " << Idx << " Rem: " << Rem << "\n"); in constructPointer() 235 Offset = Rem; in constructPointer()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | TargetLowering.cpp | 8318 SDValue Rem; in expandFixedPointDiv() local 8327 Rem = Quot.getValue(1); in expandFixedPointDiv() 8332 Rem = DAG.getNode(ISD::SREM, dl, VT, in expandFixedPointDiv() 8336 SDValue RemNonZero = DAG.getSetCC(dl, BoolVT, Rem, Zero, ISD::SETNE); in expandFixedPointDiv()
|