Home
last modified time | relevance | path

Searched refs:Scale (Results 1 – 25 of 80) sorted by relevance

1234

/minix3/external/bsd/llvm/dist/llvm/include/llvm/Support/
H A DScaledNumber.h53 inline std::pair<DigitsT, int16_t> getRounded(DigitsT Digits, int16_t Scale, in getRounded() argument
60 return std::make_pair(DigitsT(1) << (getWidth<DigitsT>() - 1), Scale + 1); in getRounded()
61 return std::make_pair(Digits, Scale); in getRounded()
65 inline std::pair<uint32_t, int16_t> getRounded32(uint32_t Digits, int16_t Scale, in getRounded32() argument
67 return getRounded(Digits, Scale, ShouldRound); in getRounded32()
71 inline std::pair<uint64_t, int16_t> getRounded64(uint64_t Digits, int16_t Scale, in getRounded64() argument
73 return getRounded(Digits, Scale, ShouldRound); in getRounded64()
81 int16_t Scale = 0) {
86 return std::make_pair(Digits, Scale);
90 return getRounded<DigitsT>(Digits >> Shift, Scale + Shift,
[all …]
/minix3/external/bsd/llvm/dist/llvm/lib/Target/X86/
H A DX86InstrBuilder.h48 unsigned Scale; member
55 : BaseType(RegBase), Scale(1), IndexReg(0), Disp(0), GV(nullptr), in X86AddressMode()
62 assert(Scale == 1 || Scale == 2 || Scale == 4 || Scale == 8); in getFullAddress()
72 MO.push_back(MachineOperand::CreateImm(Scale)); in getFullAddress()
125 assert(AM.Scale == 1 || AM.Scale == 2 || AM.Scale == 4 || AM.Scale == 8); in addFullAddress()
134 MIB.addImm(AM.Scale).addReg(AM.IndexReg); in addFullAddress()
H A DX86ISelDAGToDAG.cpp62 unsigned Scale; member
75 : BaseType(RegBase), Base_FrameIndex(0), Scale(1), IndexReg(), Disp(0), in X86ISelAddressMode()
114 << " Scale" << Scale << '\n' in dump()
207 SDValue &Scale, SDValue &Index, SDValue &Disp,
211 SDValue &Scale, SDValue &Index, SDValue &Disp,
214 SDValue &Scale, SDValue &Index, SDValue &Disp,
217 SDValue &Scale, SDValue &Index, SDValue &Disp,
220 SDValue &Base, SDValue &Scale,
226 SDValue &Base, SDValue &Scale,
239 SDValue &Scale, SDValue &Index, in getAddressOperands() argument
[all …]
/minix3/external/bsd/llvm/dist/llvm/lib/CodeGen/
H A DMachineBranchProbabilityInfo.cpp32 getSumForBlock(const MachineBasicBlock *MBB, uint32_t &Scale) const { in getSumForBlock()
38 Scale = 1; in getSumForBlock()
52 Scale = (Sum / UINT32_MAX) + 1; in getSumForBlock()
57 Sum += Weight / Scale; in getSumForBlock()
109 uint32_t Scale = 1; in getEdgeProbability() local
110 uint32_t D = getSumForBlock(Src, Scale); in getEdgeProbability()
111 uint32_t N = getEdgeWeight(Src, Dst) / Scale; in getEdgeProbability()
H A DBasicTargetTransformInfo.cpp85 int64_t Scale) const override;
88 int64_t Scale) const override;
153 int64_t Scale) const { in isLegalAddressingMode()
158 AM.Scale = Scale; in isLegalAddressingMode()
164 int64_t Scale) const { in getScalingFactorCost()
169 AM.Scale = Scale; in getScalingFactorCost()
H A DCodeGenPrepare.cpp1313 (HasBaseReg == O.HasBaseReg) && (Scale == O.Scale); in operator ==()
1346 if (Scale) { in print()
1348 << Scale << "*"; in print()
1864 bool MatchScaledValue(Value *ScaleReg, int64_t Scale, unsigned Depth);
1879 bool AddressingModeMatcher::MatchScaledValue(Value *ScaleReg, int64_t Scale, in MatchScaledValue() argument
1883 if (Scale == 1) in MatchScaledValue()
1887 if (Scale == 0) in MatchScaledValue()
1892 if (AddrMode.Scale != 0 && AddrMode.ScaledReg != ScaleReg) in MatchScaledValue()
1899 TestAddrMode.Scale += Scale; in MatchScaledValue()
1916 TestAddrMode.BaseOffs += CI->getSExtValue()*TestAddrMode.Scale; in MatchScaledValue()
[all …]
/minix3/external/bsd/llvm/dist/llvm/lib/Analysis/
H A DBasicAliasAnalysis.cpp174 int64_t Scale; member
178 Scale == Other.Scale; in operator ==()
196 static Value *GetLinearExpression(Value *V, APInt &Scale, APInt &Offset, in GetLinearExpression() argument
204 Scale = 1; in GetLinearExpression()
213 assert(Scale == 0 && "Constant values don't have a scale"); in GetLinearExpression()
229 V = GetLinearExpression(BOp->getOperand(0), Scale, Offset, Extension, in GetLinearExpression()
234 V = GetLinearExpression(BOp->getOperand(0), Scale, Offset, Extension, in GetLinearExpression()
237 Scale *= RHSC->getValue(); in GetLinearExpression()
240 V = GetLinearExpression(BOp->getOperand(0), Scale, Offset, Extension, in GetLinearExpression()
243 Scale <<= RHSC->getValue().getLimitedValue(); in GetLinearExpression()
[all …]
H A DTargetTransformInfo.cpp118 int64_t Scale) const { in isLegalAddressingMode()
120 Scale); in isLegalAddressingMode()
126 int64_t Scale) const { in getScalingFactorCost()
128 Scale); in getScalingFactorCost()
520 bool HasBaseReg, int64_t Scale) const override in isLegalAddressingMode()
524 return !BaseGV && BaseOffset == 0 && Scale <= 1; in isLegalAddressingMode()
528 bool HasBaseReg, int64_t Scale) const override { in getScalingFactorCost()
530 if(isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, Scale)) in getScalingFactorCost()
H A DBlockFrequencyInfoImpl.cpp350 Loop.Scale = ExitMass.toScaled().inverse(); in computeLoopScale()
354 << " - scale = " << Loop.Scale << "\n"); in computeLoopScale()
356 if (Loop.Scale > getMaxLoopScale()) { in computeLoopScale()
357 Loop.Scale = getMaxLoopScale(); in computeLoopScale()
455 << ": mass = " << Loop.Mass << ", scale = " << Loop.Scale in unwrapLoop()
457 Loop.Scale *= Loop.Mass.toScaled(); in unwrapLoop()
459 DEBUG(dbgs() << " => combined-scale = " << Loop.Scale << "\n"); in unwrapLoop()
466 Scaled64 &F = Working.isAPackage() ? Working.getPackagedLoop()->Scale in unwrapLoop()
468 Scaled64 New = Loop.Scale * F; in unwrapLoop()
/minix3/minix/commands/cawf/
H A Dexpr.c160 for (i = 0; Scale[i].nm; i++) { in Findscale()
161 if ((unsigned char )n == Scale[i].nm) in Findscale()
164 if (Scale[i].nm) { in Findscale()
166 pval = &Scale[i].val; in Findscale()
/minix3/external/bsd/llvm/dist/clang/test/CodeGen/
H A Dpragma-loop.cpp133 const int Scale = 4; in for_template_constant_expression_test() local
134 #pragma clang loop vectorize_width(Scale * V) interleave_count(Scale * I) unroll_count(Scale * U) in for_template_constant_expression_test()
140 #pragma clang loop vectorize_width((Scale * V) + 2) in for_template_constant_expression_test()
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Scalar/
H A DLoopRerollPass.cpp228 void restrictToScale(uint64_t Scale, in restrictToScale()
237 if (PossibleReds[i].size() % Scale == 0) { in restrictToScale()
327 bool findScaleFromMul(Instruction *RealIV, uint64_t &Scale,
330 bool collectAllRoots(Loop *L, uint64_t Inc, uint64_t Scale, Instruction *IV,
544 bool LoopReroll::findScaleFromMul(Instruction *RealIV, uint64_t &Scale, in findScaleFromMul() argument
593 Scale = MulScaleCI->getZExtValue(); in findScaleFromMul()
608 bool LoopReroll::collectAllRoots(Loop *L, uint64_t Inc, uint64_t Scale, in collectAllRoots() argument
627 if (Idx > 0 && Idx < Scale) { in collectAllRoots()
630 } else if (Idx == Scale && Inc > 1) { in collectAllRoots()
639 for (unsigned i = 1; i < Scale-1; ++i) in collectAllRoots()
[all …]
H A DLoopStrengthReduce.cpp238 int64_t Scale; member
262 : BaseGV(nullptr), BaseOffset(0), HasBaseReg(false), Scale(0), in Formula()
371 return Scale != 1 || !BaseRegs.empty(); in isCanonical()
390 Scale = 1; in Canonicalize()
403 if (Scale != 1) in Unscale()
405 Scale = 0; in Unscale()
476 if (Scale != 0) { in print()
478 OS << Scale << "*reg("; in print()
1023 NumBaseParts - (1 + (F.Scale && isAMCompletelyFolded(TTI, LU, F))); in RateFormula()
1384 bool HasBaseReg, int64_t Scale) { in isAMCompletelyFolded() argument
[all …]
/minix3/external/bsd/llvm/dist/llvm/lib/Target/Mips/
H A DMipsConstantIslandPass.cpp140 unsigned Bits, Scale; in branchMaxOffsets() local
144 Scale = 2; in branchMaxOffsets()
148 Scale = 2; in branchMaxOffsets()
152 Scale = 2; in branchMaxOffsets()
156 Scale = 2; in branchMaxOffsets()
160 Scale = 2; in branchMaxOffsets()
164 Scale = 2; in branchMaxOffsets()
168 Scale = 2; in branchMaxOffsets()
172 Scale = 2; in branchMaxOffsets()
176 Scale = 2; in branchMaxOffsets()
[all …]
/minix3/external/bsd/llvm/dist/llvm/lib/Target/AArch64/InstPrinter/
H A DAArch64InstPrinter.h77 void printUImm12Offset(const MCInst *MI, unsigned OpNum, unsigned Scale,
79 void printAMIndexedWB(const MCInst *MI, unsigned OpNum, unsigned Scale,
82 template<int Scale>
84 printUImm12Offset(MI, OpNum, Scale, O); in printUImm12Offset()
94 template<int Scale>
/minix3/external/bsd/llvm/dist/llvm/lib/Target/X86/AsmParser/
H A DX86Operand.h54 unsigned Scale; member
122 return Mem.Scale; in getMemScale()
476 Res->Mem.Scale = 1;
488 unsigned BaseReg, unsigned IndexReg, unsigned Scale, SMLoc StartLoc,
496 assert(((Scale == 1 || Scale == 2 || Scale == 4 || Scale == 8)) &&
503 Res->Mem.Scale = Scale;
/minix3/external/bsd/llvm/dist/llvm/lib/Target/AArch64/
H A DAArch64InstrInfo.cpp1353 int Scale = 0; in getLdStBaseRegImmOfsWidth() local
1360 Scale = 1; in getLdStBaseRegImmOfsWidth()
1367 Scale = 1; in getLdStBaseRegImmOfsWidth()
1375 Scale = 1; in getLdStBaseRegImmOfsWidth()
1384 Scale = 1; in getLdStBaseRegImmOfsWidth()
1393 Scale = 1; in getLdStBaseRegImmOfsWidth()
1397 Scale = Width = 8; in getLdStBaseRegImmOfsWidth()
1401 Scale = Width = 4; in getLdStBaseRegImmOfsWidth()
1405 Scale = Width = 1; in getLdStBaseRegImmOfsWidth()
1409 Scale = Width = 2; in getLdStBaseRegImmOfsWidth()
[all …]
/minix3/external/bsd/llvm/dist/llvm/lib/Target/ARM/
H A DARMBaseRegisterInfo.cpp449 int Scale = 1; in getFrameIndexInstrOffset() local
456 Scale = 1; in getFrameIndexInstrOffset()
464 Scale = 4; in getFrameIndexInstrOffset()
484 Scale = 4; in getFrameIndexInstrOffset()
491 return InstrOffs * Scale; in getFrameIndexInstrOffset()
650 unsigned Scale = 1; in isFrameOffsetLegal() local
657 Scale = 1; in isFrameOffsetLegal()
668 Scale = 4; in isFrameOffsetLegal()
679 Scale = 4; in isFrameOffsetLegal()
689 if ((Offset & (Scale-1)) != 0) in isFrameOffsetLegal()
[all …]
H A DARMConstantIslandPass.cpp676 unsigned Scale = 1; in initializeFunctionInfo() local
690 Scale = 4; in initializeFunctionInfo()
696 Scale = 2; in initializeFunctionInfo()
700 Scale = 2; in initializeFunctionInfo()
706 Scale = 2; in initializeFunctionInfo()
710 Scale = 2; in initializeFunctionInfo()
715 unsigned MaxOffs = ((1 << (Bits-1))-1) * Scale; in initializeFunctionInfo()
733 unsigned Scale = 1; in initializeFunctionInfo() local
748 Scale = 4; in initializeFunctionInfo()
758 Scale = 4; in initializeFunctionInfo()
[all …]
H A DThumb1RegisterInfo.cpp347 unsigned Scale = 4; in rewriteFrameIndex() local
349 Offset += InstrOffs * Scale; in rewriteFrameIndex()
350 assert((Offset & (Scale - 1)) == 0 && "Can't encode this offset!"); in rewriteFrameIndex()
354 int ImmedOffset = Offset / Scale; in rewriteFrameIndex()
357 if ((unsigned)Offset <= Mask * Scale) { in rewriteFrameIndex()
382 Offset &= ~(Mask * Scale); in rewriteFrameIndex()
H A DThumb2InstrInfo.cpp546 unsigned Scale = 1; in rewriteT2FrameIndex() local
568 Scale = 4; in rewriteT2FrameIndex()
570 assert((Offset & (Scale-1)) == 0 && "Can't encode this offset!"); in rewriteT2FrameIndex()
579 Scale = 1; in rewriteT2FrameIndex()
595 int ImmedOffset = Offset / Scale; in rewriteT2FrameIndex()
597 if ((unsigned)Offset <= Mask * Scale) { in rewriteT2FrameIndex()
626 Offset &= ~(Mask*Scale); in rewriteT2FrameIndex()
/minix3/external/bsd/llvm/dist/llvm/include/llvm/Transforms/Utils/
H A DLocal.h234 Constant *Scale = ConstantInt::get(IntPtrTy, Size);
236 Scale = ConstantExpr::getMul(OC, Scale, isInBounds/*NUW*/);
238 Result = Builder->CreateAdd(Result, Scale, GEP->getName()+".offs");
/minix3/external/bsd/llvm/dist/clang/include/clang/AST/
H A DCharUnits.h183 inline clang::CharUnits operator* (clang::CharUnits::QuantityType Scale,
185 return CU * Scale;
/minix3/external/bsd/llvm/dist/clang/lib/CodeGen/
H A DCodeGenPGO.cpp835 static uint32_t scaleBranchWeight(uint64_t Weight, uint64_t Scale) { in scaleBranchWeight() argument
836 assert(Scale && "scale by 0?"); in scaleBranchWeight()
837 uint64_t Scaled = Weight / Scale + 1; in scaleBranchWeight()
849 uint64_t Scale = calculateWeightScale(std::max(TrueCount, FalseCount)); in createBranchWeights() local
852 return MDHelper.createBranchWeights(scaleBranchWeight(TrueCount, Scale), in createBranchWeights()
853 scaleBranchWeight(FalseCount, Scale)); in createBranchWeights()
867 uint64_t Scale = calculateWeightScale(MaxWeight); in createBranchWeights() local
872 ScaledWeights.push_back(scaleBranchWeight(W, Scale)); in createBranchWeights()
/minix3/external/mit/xorg/bin/xmag/
H A DMakefile6 SRCS= xmag.c CutPaste.c RootWin.c Scale.c

1234