Home
last modified time | relevance | path

Searched refs:Weight (Results 1 – 25 of 53) sorted by relevance

123

/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/FuzzMutate/
DOperations.h37 OpDescriptor binOpDescriptor(unsigned Weight, Instruction::BinaryOps Op);
38 OpDescriptor cmpOpDescriptor(unsigned Weight, Instruction::OtherOps CmpOp,
40 OpDescriptor splitBlockDescriptor(unsigned Weight);
41 OpDescriptor gepDescriptor(unsigned Weight);
42 OpDescriptor extractValueDescriptor(unsigned Weight);
43 OpDescriptor insertValueDescriptor(unsigned Weight);
44 OpDescriptor extractElementDescriptor(unsigned Weight);
45 OpDescriptor insertElementDescriptor(unsigned Weight);
46 OpDescriptor shuffleVectorDescriptor(unsigned Weight);
DRandom.h60 ReservoirSampler &sample(const T &Item, uint64_t Weight) { in sample() argument
61 if (!Weight) in sample()
64 TotalWeight += Weight; in sample()
66 if (uniform<uint64_t>(RandGen, 1, TotalWeight) <= Weight) in sample()
83 uint64_t Weight) { in makeSampler() argument
85 RS.sample(Item, Weight); in makeSampler()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
DCFGMST.h129 uint64_t Weight = 2; in buildEdges() local
142 Weight = BPI->getEdgeProbability(&BB, TargetBB).scale(scaleFactor); in buildEdges()
143 if (Weight == 0) in buildEdges()
144 Weight++; in buildEdges()
145 auto *E = &addEdge(&BB, TargetBB, Weight); in buildEdges()
148 << TargetBB->getName() << " w=" << Weight << "\n"); in buildEdges()
152 if (Weight > MaxEntryOutWeight) { in buildEdges()
153 MaxEntryOutWeight = Weight; in buildEdges()
160 if (Weight > MaxExitInWeight) { in buildEdges()
161 MaxExitInWeight = Weight; in buildEdges()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Analysis/
DBlockFrequencyInfoImpl.cpp95 using Weight = BlockFrequencyInfoImplBase::Weight; typedef
122 BlockMass takeMass(uint32_t Weight);
134 BlockMass DitheringDistributer::takeMass(uint32_t Weight) { in takeMass() argument
135 assert(Weight && "invalid weight"); in takeMass()
136 assert(Weight <= RemWeight); in takeMass()
137 BlockMass Mass = RemMass * BranchProbability(Weight, RemWeight); in takeMass()
140 RemWeight -= Weight; in takeMass()
146 Weight::DistType Type) { in add()
159 Weights.push_back(Weight(Type, Node, Amount)); in add()
162 static void combineWeight(Weight &W, const Weight &OtherW) { in combineWeight()
[all …]
DBranchProbabilityInfo.cpp334 ConstantInt *Weight = in calcMetadataWeights() local
336 if (!Weight) in calcMetadataWeights()
338 assert(Weight->getValue().getActiveBits() <= 32 && in calcMetadataWeights()
340 Weights.push_back(Weight->getZExtValue()); in calcMetadataWeights()
626 auto Weight = getEstimatedEdgeWeight({SrcLoopBB, DstLoopBB}); in getMaxEstimatedEdgeWeight() local
628 if (!Weight) in getMaxEstimatedEdgeWeight()
631 if (!MaxWeight || MaxWeight.getValue() < Weight.getValue()) in getMaxEstimatedEdgeWeight()
632 MaxWeight = Weight; in getMaxEstimatedEdgeWeight()
844 Optional<uint32_t> Weight; in calcEstimatedHeuristics() local
848 Weight = getEstimatedEdgeWeight(Edge); in calcEstimatedHeuristics()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/FuzzMutate/
DOperations.cpp91 OpDescriptor llvm::fuzzerop::binOpDescriptor(unsigned Weight, in binOpDescriptor() argument
110 return {Weight, {anyIntType(), matchFirstType()}, buildOp}; in binOpDescriptor()
116 return {Weight, {anyFloatType(), matchFirstType()}, buildOp}; in binOpDescriptor()
123 OpDescriptor llvm::fuzzerop::cmpOpDescriptor(unsigned Weight, in cmpOpDescriptor() argument
132 return {Weight, {anyIntType(), matchFirstType()}, buildOp}; in cmpOpDescriptor()
134 return {Weight, {anyFloatType(), matchFirstType()}, buildOp}; in cmpOpDescriptor()
140 OpDescriptor llvm::fuzzerop::splitBlockDescriptor(unsigned Weight) { in splitBlockDescriptor() argument
167 return {Weight, {isInt1Ty}, buildSplitBlock}; in splitBlockDescriptor()
170 OpDescriptor llvm::fuzzerop::gepDescriptor(unsigned Weight) { in gepDescriptor() argument
179 return {Weight, {sizedPtrType(), anyIntType()}, buildGEP}; in gepDescriptor()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/CodeGen/
DCalcSpillWeights.cpp140 float Weight = weightCalcHelper(LI); in calculateSpillWeightAndHint() local
142 if (Weight < 0) in calculateSpillWeightAndHint()
144 LI.setWeight(Weight); in calculateSpillWeightAndHint()
204 const float Weight; in weightCalcHelper() member
205 CopyHint(Register R, float W) : Reg(R), Weight(W) {} in weightCalcHelper()
210 if (Weight != Rhs.Weight) in weightCalcHelper()
211 return (Weight > Rhs.Weight); in weightCalcHelper()
243 float Weight = 1.0f; in weightCalcHelper() local
255 Weight = LiveIntervals::getSpillWeight(Writes, Reads, &MBFI, *MI); in weightCalcHelper()
259 Weight *= 3; in weightCalcHelper()
[all …]
DRegisterPressure.cpp58 unsigned Weight = PSetI.getWeight(); in increaseSetPressure() local
60 CurrSetPressure[*PSetI] += Weight; in increaseSetPressure()
72 unsigned Weight = PSetI.getWeight(); in decreaseSetPressure() local
74 assert(CurrSetPressure[*PSetI] >= Weight && "register pressure underflow"); in decreaseSetPressure()
75 CurrSetPressure[*PSetI] -= Weight; in decreaseSetPressure()
162 unsigned Weight = PSetI.getWeight(); in increaseRegPressure() local
164 CurrSetPressure[*PSetI] += Weight; in increaseRegPressure()
675 int Weight = IsDec ? -PSetI.getWeight() : PSetI.getWeight(); in addPressureChange() local
693 unsigned NewUnitInc = I->getUnitInc() + Weight; in addPressureChange()
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/ProfileData/
DSampleProf.h320 sampleprof_error addSamples(uint64_t S, uint64_t Weight = 1) {
322 NumSamples = SaturatingMultiplyAdd(S, Weight, NumSamples, &Overflowed);
333 uint64_t Weight = 1) {
337 SaturatingMultiplyAdd(S, Weight, TargetSamples, &Overflowed);
372 sampleprof_error merge(const SampleRecord &Other, uint64_t Weight = 1);
556 sampleprof_error addTotalSamples(uint64_t Num, uint64_t Weight = 1) {
559 SaturatingMultiplyAdd(Num, Weight, TotalSamples, &Overflowed);
566 sampleprof_error addHeadSamples(uint64_t Num, uint64_t Weight = 1) {
569 SaturatingMultiplyAdd(Num, Weight, TotalHeadSamples, &Overflowed);
575 uint64_t Num, uint64_t Weight = 1) {
[all …]
DInstrProfWriter.h56 void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
117 uint64_t Weight, function_ref<void(Error)> Warn);
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/
DHexagonISelDAGToDAG.cpp1652 int Weight; member
1657 WeightedLeaf(SDValue Value, int Weight, int InsertionOrder) : in WeightedLeaf()
1658 Value(Value), Weight(Weight), InsertionOrder(InsertionOrder) { in WeightedLeaf()
1659 assert(Weight >= 0 && "Weight must be >= 0"); in WeightedLeaf()
1664 return A.Weight == B.Weight ? in Compare()
1666 (A.Weight > B.Weight); in Compare()
1727 L.Weight = 1000; in pushToBottom()
1753 if (!Result.Value.getNode() || Result.Weight > L.Weight || in findSHL()
1754 (Result.Weight == L.Weight && Result.InsertionOrder > L.InsertionOrder)) in findSHL()
1780 if (!Result.Value.getNode() || Result.Weight > L.Weight || in findMULbyConst()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/utils/TableGen/
DCodeGenRegisters.h488 unsigned Weight; member
502 RegUnit() : Weight(0), RegClassUnitSetsIdx(0), Artificial(false) { in RegUnit()
518 unsigned Weight = 0; // Cache the sum of all unit weights. member
695 unsigned newRegUnit(unsigned Weight) { in newRegUnit() argument
697 RegUnits.back().Weight = Weight; in newRegUnit()
740 unsigned Weight = 0; in getRegUnitSetWeight() local
742 Weight += getRegUnit(Unit).Weight; in getRegUnitSetWeight()
743 return Weight; in getRegUnitSetWeight()
756 getRegUnit(RUID).Weight += Inc; in increaseRegUnitWeight()
DCodeGenRegisters.cpp586 unsigned Weight = 0; in getWeight() local
588 Weight += RegBank.getRegUnit(RegUnit).Weight; in getWeight()
590 return Weight; in getWeight()
1584 unsigned Weight = 0; member
1665 unsigned MaxWeight = 0, Weight = 0; in computeUberWeights() local
1668 if (Weight > MaxWeight) in computeUberWeights()
1669 MaxWeight = Weight; in computeUberWeights()
1671 Weight = 0; in computeUberWeights()
1674 unsigned UWeight = RegBank.getRegUnit(*UnitI).Weight; in computeUberWeights()
1679 Weight += UWeight; in computeUberWeights()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/
DLiveInterval.h708 float Weight = 0.0; // weight of this interval variable
712 float weight() const { return Weight; } in weight()
713 void incrementWeight(float Inc) { Weight += Inc; } in incrementWeight()
714 void setWeight(float Value) { Weight = Value; } in setWeight()
716 LiveInterval(unsigned Reg, float Weight) : Reg(Reg), Weight(Weight) {} in LiveInterval() argument
813 bool isSpillable() const { return Weight != huge_valf; } in isSpillable()
816 void markNotSpillable() { Weight = huge_valf; } in markNotSpillable()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/WebAssembly/
DWebAssemblyRegColoring.cpp68 float Weight = 0.0f; in computeWeight() local
70 Weight += LiveIntervals::getSpillWeight(MO.isDef(), MO.isUse(), MBFI, in computeWeight()
72 return Weight; in computeWeight()
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/fuzzer/
DFuzzerDataFlowTrace.cpp95 auto &Weight = Res[FunctionID]; in FunctionWeights() local
97 Weight = FunctionsWithDFT.count(FunctionID) ? 1000. : 1; in FunctionWeights()
99 Weight /= SmallestNonZeroCounter(Counters); in FunctionWeights()
101 Weight *= NumberOfUncoveredBlocks(Counters) + 1; in FunctionWeights()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/ProfileData/
DInstrProfWriter.cpp184 void InstrProfWriter::addRecord(NamedInstrProfRecord &&I, uint64_t Weight, in addRecord() argument
188 addRecord(Name, Hash, std::move(I), Weight, Warn); in addRecord()
226 InstrProfRecord &&I, uint64_t Weight, in addRecord() argument
243 if (Weight > 1) in addRecord()
244 Dest.scale(Weight, 1, MapWarn); in addRecord()
247 Dest.merge(I, Weight, MapWarn); in addRecord()
DSampleProf.cpp120 uint64_t Weight) { in merge() argument
122 Result = addSamples(Other.getSamples(), Weight); in merge()
124 MergeResult(Result, addCalledTarget(I.first(), I.second, Weight)); in merge()
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
DSampleProfileLoaderBaseImpl.h347 ErrorOr<uint64_t> Weight = getBlockWeight(&BB);
348 if (Weight) {
349 BlockWeights[&BB] = Weight.get();
410 uint64_t Weight = BlockWeights[EC];
429 Weight = std::max(Weight, BlockWeights[BB2]);
436 BlockWeights[EC] = Weight;
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Analysis/
DCFGPrinter.h275 ConstantInt *Weight =
277 if (!Weight)
279 return ("label=\"W:" + std::to_string(Weight->getZExtValue()) +
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
DReassociate.cpp505 APInt Weight = P.second; // Number of paths to this operand. in LinearizeExprTree() local
506 LLVM_DEBUG(dbgs() << "OPERAND: " << *Op << " (" << Weight << ")\n"); in LinearizeExprTree()
513 LLVM_DEBUG(dbgs() << "DIRECT ADD: " << *Op << " (" << Weight << ")\n"); in LinearizeExprTree()
514 Worklist.push_back(std::make_pair(BO, Weight)); in LinearizeExprTree()
527 << "ADD USES LEAF: " << *Op << " (" << Weight << ")\n"); in LinearizeExprTree()
529 Leaves[Op] = Weight; in LinearizeExprTree()
539 IncorporateWeight(It->second, Weight, Opcode); in LinearizeExprTree()
566 Weight = It->second; in LinearizeExprTree()
587 << "MORPH LEAF: " << *Op << " (" << Weight << ") TO "); in LinearizeExprTree()
590 Worklist.push_back(std::make_pair(Tmp, Weight)); in LinearizeExprTree()
[all …]
/freebsd-12-stable/share/misc/
Dusb_hid_usages1690 0x34 Scale Weight Limit Report
1692 0x40 Data Weight
1694 0x50 Weight Unit
1695 0x51 Weight Unit Milligram
1696 0x52 Weight Unit Gram
1697 0x53 Weight Unit Kilogram
1698 0x54 Weight Unit Carats
1699 0x55 Weight Unit Taels
1700 0x56 Weight Unit Grains
1701 0x57 Weight Unit Pennyweights
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/MCTargetDesc/
DHexagonShuffler.h40 unsigned Slots, Weight; variable
56 unsigned getWeight() const { return (Weight); } in getWeight()
/freebsd-12-stable/sys/contrib/zstd/doc/
Dzstd_compression_format.md1119 are represented by `Weight` with values from `0` to `Max_Number_of_Bits`.
1120 Transformation from `Weight` to `Number_of_Bits` follows this formula :
1122 Number_of_Bits = Weight ? (Max_Number_of_Bits + 1 - Weight) : 0
1124 The last symbol's `Weight` is deduced from previously decoded ones,
1138 Values from `0` to `4` will be listed using `Weight` instead of `Number_of_Bits`.
1139 Weight formula is :
1141 Weight = Number_of_Bits ? (Max_Number_of_Bits + 1 - Number_of_Bits) : 0
1147 | `Weight` | 4 | 3 | 2 | 0 | 1 |
1153 The sum of `2^(Weight-1)` (excluding 0's) is :
1156 Therefore, `Max_Number_of_Bits = 4` and `Weight[5] = 1`.
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/
DSampleProfile.cpp1239 ErrorOr<uint64_t> Weight = getBlockWeight(CB->getParent()); in getInlineCandidate() local
1240 if (Weight) in getInlineCandidate()
1241 CallsiteCount = Weight.get(); in getInlineCandidate()
1528 uint64_t Weight = EdgeWeights[E]; in generateMDProfMetadata() local
1533 if (Weight > std::numeric_limits<uint32_t>::max()) { in generateMDProfMetadata()
1535 Weight = std::numeric_limits<uint32_t>::max(); in generateMDProfMetadata()
1539 Weights.push_back(static_cast<uint32_t>(Weight + 1)); in generateMDProfMetadata()
1540 if (Weight != 0) { in generateMDProfMetadata()
1541 if (Weight > MaxWeight) { in generateMDProfMetadata()
1542 MaxWeight = Weight; in generateMDProfMetadata()

123