Home
last modified time | relevance | path

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

123

/openbsd/gnu/llvm/llvm/include/llvm/FuzzMutate/
H A 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);
H A 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()
/openbsd/gnu/llvm/llvm/lib/Transforms/Instrumentation/
H A DCFGMST.h129 uint64_t Weight = 2; in buildEdges() local
143 if (Weight == 0) in buildEdges()
144 Weight++; in buildEdges()
152 if (Weight > MaxEntryOutWeight) { in buildEdges()
153 MaxEntryOutWeight = Weight; in buildEdges()
160 if (Weight > MaxExitInWeight) { in buildEdges()
161 MaxExitInWeight = Weight; in buildEdges()
192 EntryIncoming->Weight = MaxExitOutWeight; in buildEdges()
193 ExitOutgoing->Weight = EntryInWeight + 1; in buildEdges()
198 EntryOutgoing->Weight = MaxExitInWeight; in buildEdges()
[all …]
/openbsd/gnu/llvm/llvm/include/llvm/Transforms/IPO/
H A DProfiledCallGraph.h28 ProfiledCallGraphNode *Target, uint64_t Weight) in ProfiledCallGraphEdge()
29 : Source(Source), Target(Target), Weight(Weight) {} in ProfiledCallGraphEdge()
32 uint64_t Weight; member
103 uint64_t Weight; in ProfiledCallGraph() local
106 Weight = 0; in ProfiledCallGraph()
117 Weight = std::max(CallsiteCount, CalleeEntryCount); in ProfiledCallGraph()
121 ContextTracker.getFuncNameFor(Callee), Weight); in ProfiledCallGraph()
140 uint64_t Weight = 0) {
146 &CalleeIt->second, Weight);
151 } else if (EdgeIt->Weight < Edge.Weight) {
/openbsd/gnu/llvm/llvm/lib/Analysis/
H A DBlockFrequencyInfoImpl.cpp94 using Weight = BlockFrequencyInfoImplBase::Weight; typedef
135 assert(Weight <= RemWeight); in takeMass()
139 RemWeight -= Weight; in takeMass()
161 static void combineWeight(Weight &W, const Weight &OtherW) { in combineWeight()
179 llvm::sort(Weights, [](const Weight &L, const Weight &R) { in combineWeightsBySorting()
203 for (const Weight &W : Weights) in combineWeightsByHashing()
278 for (Weight &W : Weights) { in normalize()
316 if (!Weight) in addToDist()
317 Weight = 1; in addToDist()
369 Dist.addLocal(Resolved, Weight); in addToDist()
[all …]
H A DBranchProbabilityInfo.cpp677 auto Weight = getEstimatedEdgeWeight({SrcLoopBB, DstLoopBB}); in getMaxEstimatedEdgeWeight() local
679 if (!Weight) in getMaxEstimatedEdgeWeight()
682 if (!MaxWeight || *MaxWeight < *Weight) in getMaxEstimatedEdgeWeight()
683 MaxWeight = Weight; in getMaxEstimatedEdgeWeight()
893 std::optional<uint32_t> Weight; in calcEstimatedHeuristics() local
897 Weight = getEstimatedEdgeWeight(Edge); in calcEstimatedHeuristics()
901 Weight != static_cast<uint32_t>(BlockExecWeight::ZERO)) { in calcEstimatedHeuristics()
903 Weight = std::max( in calcEstimatedHeuristics()
911 Weight != static_cast<uint32_t>(BlockExecWeight::ZERO)) { in calcEstimatedHeuristics()
913 Weight = std::max( in calcEstimatedHeuristics()
[all …]
/openbsd/gnu/llvm/llvm/lib/CodeGen/
H A DCalcSpillWeights.cpp141 float Weight = weightCalcHelper(LI); in calculateSpillWeightAndHint() local
143 if (Weight < 0) in calculateSpillWeightAndHint()
145 LI.setWeight(Weight); in calculateSpillWeightAndHint()
200 const float Weight; in weightCalcHelper() member
201 CopyHint(Register R, float W) : Reg(R), Weight(W) {} in weightCalcHelper()
206 if (Weight != Rhs.Weight) in weightCalcHelper()
207 return (Weight > Rhs.Weight); in weightCalcHelper()
239 float Weight = 1.0f; in weightCalcHelper() local
255 Weight *= 3; in weightCalcHelper()
257 TotalWeight += Weight; in weightCalcHelper()
[all …]
/openbsd/regress/sbin/pfctl/
H A Dpfr14.ok19 Weight: 1
21 Weight: 5
37 Weight: 5
54 Weight: 5
56 Weight: 5
66 Weight: 5
68 Weight: 5
H A Dpfr13.ok340 Weight: 6
350 Weight: 6
361 Weight: 6
371 Weight: 6
428 Weight: 6
H A Dpfr15.ok10 Weight: 5
15 Weight: 5
/openbsd/gnu/llvm/llvm/lib/FuzzMutate/
H A 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()
167 return {Weight, {isInt1Ty}, buildSplitBlock}; in splitBlockDescriptor()
170 OpDescriptor llvm::fuzzerop::gepDescriptor(unsigned Weight) { in gepDescriptor() argument
284 Weight, in insertValueDescriptor()
302 return {Weight, in insertElementDescriptor()
[all …]
/openbsd/gnu/llvm/llvm/lib/Target/Hexagon/
H A DHexagonISelDAGToDAG.cpp1710 int Weight; member
1716 Value(Value), Weight(Weight), InsertionOrder(InsertionOrder) { in WeightedLeaf()
1722 return A.Weight == B.Weight ? in Compare()
1724 (A.Weight > B.Weight); in Compare()
1785 L.Weight = 1000; in pushToBottom()
1811 if (!Result.Value.getNode() || Result.Weight > L.Weight || in findSHL()
1838 if (!Result.Value.getNode() || Result.Weight > L.Weight || in findMULbyConst()
1970 int Weight; in balanceSubTree() local
2124 int Weight = Mul1.Weight + Mul2.Weight; in balanceSubTree() local
2167 GA.Weight += Leaves.top().Weight; in balanceSubTree()
[all …]
/openbsd/gnu/llvm/llvm/include/llvm/ProfileData/
H A DSampleProf.h346 sampleprof_error addSamples(uint64_t S, uint64_t Weight = 1) {
368 uint64_t Weight = 1) {
372 SaturatingMultiplyAdd(S, Weight, TargetSamples, &Overflowed);
728 SaturatingMultiplyAdd(Num, Weight, TotalSamples, &Overflowed);
753 Num, Weight);
759 uint64_t Weight = 1) {
761 FName, Num, Weight);
781 uint64_t Weight = 1) {
783 S.addSamples(Num, Weight);
784 return BodySamples[LineLocation(Index, 0)].merge(S, Weight);
[all …]
H A DInstrProfWriter.h71 void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
159 uint64_t Weight, function_ref<void(Error)> Warn);
/openbsd/gnu/llvm/llvm/utils/TableGen/
H A DCodeGenRegisters.h514 unsigned Weight; member
528 RegUnit() : Weight(0), RegClassUnitSetsIdx(0), Artificial(false) { in RegUnit()
544 unsigned Weight = 0; // Cache the sum of all unit weights. member
728 unsigned newRegUnit(unsigned Weight) { in newRegUnit() argument
730 RegUnits.back().Weight = Weight; in newRegUnit()
781 unsigned Weight = 0; in getRegUnitSetWeight() local
783 Weight += getRegUnit(Unit).Weight; in getRegUnitSetWeight()
784 return Weight; in getRegUnitSetWeight()
797 getRegUnit(RUID).Weight += Inc; in increaseRegUnitWeight()
H A DCodeGenRegisters.cpp589 unsigned Weight = 0; in getWeight() local
591 Weight += RegBank.getRegUnit(RegUnit).Weight; in getWeight()
593 return Weight; in getWeight()
1640 unsigned Weight = 0; member
1724 if (Weight > MaxWeight) in computeUberWeights()
1725 MaxWeight = Weight; in computeUberWeights()
1727 Weight = 0; in computeUberWeights()
1735 Weight += UWeight; in computeUberWeights()
1738 if (Weight > MaxWeight) in computeUberWeights()
1739 MaxWeight = Weight; in computeUberWeights()
[all …]
/openbsd/gnu/llvm/llvm/lib/IR/
H A DProfDataUtils.cpp58 ConstantInt *Weight = in extractWeights() local
60 assert(Weight && "Malformed branch_weight in MD_prof node"); in extractWeights()
61 assert(Weight->getValue().getActiveBits() <= 32 && in extractWeights()
63 Weights[Idx - WeightsIdx] = Weight->getZExtValue(); in extractWeights()
/openbsd/gnu/llvm/llvm/include/llvm/Transforms/Utils/
H A DSampleProfileInference.h50 uint64_t Weight{0};
68 uint64_t Weight{0};
273 Block.Weight = SampleBlockWeights[BB];
276 Block.Weight = 0;
313 if (EntryBlock.Weight == 0 && !EntryBlock.HasUnknownWeight) {
314 EntryBlock.Weight = 1;
H A DSampleProfileLoaderBaseImpl.h374 ErrorOr<uint64_t> Weight = getBlockWeight(&BB);
375 if (Weight) {
376 BlockWeights[&BB] = Weight.get();
437 uint64_t Weight = BlockWeights[EC];
456 Weight = std::max(Weight, BlockWeights[BB2]);
463 BlockWeights[EC] = Weight;
761 ErrorOr<uint64_t> Weight = getBlockWeight(&BI);
762 if (Weight)
763 SampleBlockWeights[&BI] = Weight.get();
/openbsd/gnu/llvm/llvm/include/llvm/CodeGen/
H A DLiveInterval.h714 float Weight = 0.0; // weight of this interval variable
718 float weight() const { return Weight; } in weight()
719 void incrementWeight(float Inc) { Weight += Inc; } in incrementWeight()
720 void setWeight(float Value) { Weight = Value; } in setWeight()
722 LiveInterval(unsigned Reg, float Weight) : Reg(Reg), Weight(Weight) {} in LiveInterval() argument
819 bool isSpillable() const { return Weight != huge_valf; } in isSpillable()
822 void markNotSpillable() { Weight = huge_valf; } in markNotSpillable()
/openbsd/gnu/llvm/llvm/lib/Target/WebAssembly/
H A 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()
/openbsd/gnu/llvm/llvm/lib/Transforms/Utils/
H A DSampleProfileInference.cpp1094 if (Block.Weight > 0) { in initializeNetwork()
1095 Network.addEdge(Bout, Bin, Block.Weight, AuxCostDec); in initializeNetwork()
1096 Network.addEdge(S1, Bout, Block.Weight, 0); in initializeNetwork()
1097 Network.addEdge(Bin, T1, Block.Weight, 0); in initializeNetwork()
1114 if (Jump.Weight > 0) { in initializeNetwork()
1115 Network.addEdge(Jout, Jin, Jump.Weight, AuxCostDec); in initializeNetwork()
1116 Network.addEdge(S1, Jout, Jump.Weight, 0); in initializeNetwork()
1117 Network.addEdge(Jin, T1, Jump.Weight, 0); in initializeNetwork()
1142 if (Block.Weight == 0) in assignBlockCosts()
1197 Flow = int64_t(Jump.Weight) + AuxFlow; in extractWeights()
[all …]
/openbsd/gnu/llvm/compiler-rt/lib/fuzzer/
H A 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()
/openbsd/gnu/llvm/llvm/include/llvm/ADT/
H A DAPFixedPoint.h48 FixedPointSemantics(unsigned Width, Lsb Weight, bool IsSigned, in FixedPointSemantics() argument
50 : Width(Width), LsbWeight(Weight.LsbWeight), IsSigned(IsSigned), in FixedPointSemantics()
52 assert(isUInt<WidthBitWidth>(Width) && isInt<LsbWeightBitWidth>(Weight.LsbWeight)); in FixedPointSemantics()
/openbsd/gnu/llvm/llvm/lib/ProfileData/
H A DInstrProfWriter.cpp189 void InstrProfWriter::addRecord(NamedInstrProfRecord &&I, uint64_t Weight, in addRecord() argument
193 addRecord(Name, Hash, std::move(I), Weight, Warn); in addRecord()
230 InstrProfRecord &&I, uint64_t Weight, in addRecord() argument
247 if (Weight > 1) in addRecord()
248 Dest.scale(Weight, 1, MapWarn); in addRecord()
251 Dest.merge(I, Weight, MapWarn); in addRecord()

123