Home
last modified time | relevance | path

Searched refs:Weight (Results 1 - 25 of 50) sorted by relevance

12

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/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()
85 RS.sample(Item, Weight); in makeSampler()
82 makeSampler(GenT &RandGen, const T &Item, uint64_t Weight) makeSampler() argument
/third_party/skia/modules/canvaskit/
H A Dparagraph_bindings_gen.cpp36 enum_<SkFontStyle::Weight>("FontWeight") in EMSCRIPTEN_BINDINGS()
37 .value("Invisible", SkFontStyle::Weight::kInvisible_Weight) in EMSCRIPTEN_BINDINGS()
38 .value("Thin", SkFontStyle::Weight::kThin_Weight) in EMSCRIPTEN_BINDINGS()
39 .value("ExtraLight", SkFontStyle::Weight::kExtraLight_Weight) in EMSCRIPTEN_BINDINGS()
40 .value("Light", SkFontStyle::Weight::kLight_Weight) in EMSCRIPTEN_BINDINGS()
41 .value("Normal", SkFontStyle::Weight::kNormal_Weight) in EMSCRIPTEN_BINDINGS()
42 .value("Medium", SkFontStyle::Weight::kMedium_Weight) in EMSCRIPTEN_BINDINGS()
43 .value("SemiBold", SkFontStyle::Weight::kSemiBold_Weight) in EMSCRIPTEN_BINDINGS()
44 .value("Bold", SkFontStyle::Weight::kBold_Weight) in EMSCRIPTEN_BINDINGS()
45 .value("ExtraBold", SkFontStyle::Weight in EMSCRIPTEN_BINDINGS()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
H A DBlockFrequencyInfoImpl.cpp73 using Weight = BlockFrequencyInfoImplBase::Weight;
100 BlockMass takeMass(uint32_t Weight);
112 BlockMass DitheringDistributer::takeMass(uint32_t Weight) {
113 assert(Weight && "invalid weight");
114 assert(Weight <= RemWeight);
115 BlockMass Mass = RemMass * BranchProbability(Weight, RemWeight);
118 RemWeight -= Weight;
124 Weight::DistType Type) {
137 Weights.push_back(Weight(Typ
290 addToDist(Distribution &Dist, const LoopData *OuterLoop, const BlockNode &Pred, const BlockNode &Succ, uint64_t Weight) addToDist() argument
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/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()
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, {sizedPtrTyp in gepDescriptor()
211 extractValueDescriptor(unsigned Weight) extractValueDescriptor() argument
266 insertValueDescriptor(unsigned Weight) insertValueDescriptor() argument
278 extractElementDescriptor(unsigned Weight) extractElementDescriptor() argument
286 insertElementDescriptor(unsigned Weight) insertElementDescriptor() argument
311 shuffleVectorDescriptor(unsigned Weight) shuffleVectorDescriptor() argument
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ProfileData/
H A DSampleProf.h223 /// Optionally scale sample count \p S by \p Weight.
227 sampleprof_error addSamples(uint64_t S, uint64_t Weight = 1) { in addSamples()
229 NumSamples = SaturatingMultiplyAdd(S, Weight, NumSamples, &Overflowed); in addSamples()
235 /// Optionally scale sample count \p S by \p Weight.
240 uint64_t Weight = 1) { in addCalledTarget()
244 SaturatingMultiplyAdd(S, Weight, TargetSamples, &Overflowed); in addCalledTarget()
268 /// Optionally scale sample counts by \p Weight.
269 sampleprof_error merge(const SampleRecord &Other, uint64_t Weight = 1) { in merge()
270 sampleprof_error Result = addSamples(Other.getSamples(), Weight); in merge()
272 MergeResult(Result, addCalledTarget(I.first(), I.second, Weight)); in merge()
[all...]
H A DInstrProfWriter.h52 /// summed. Optionally scale counts by \p Weight.
53 void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
111 uint64_t Weight, function_ref<void(Error)> Warn);
H A DInstrProf.h673 /// Optionally scale merged counts by \p Weight.
674 void merge(InstrProfValueSiteRecord &Input, uint64_t Weight,
677 void scale(uint64_t Weight, function_ref<void(instrprof_error)> Warn);
746 /// Optionally scale merged counts by \p Weight.
747 void merge(InstrProfRecord &Other, uint64_t Weight,
751 /// \p Weight.
752 void scale(uint64_t Weight, function_ref<void(instrprof_error)> Warn);
832 // Scale merged value counts by \p Weight.
834 uint64_t Weight,
838 void scaleValueProfData(uint32_t ValueKind, uint64_t Weight,
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
H A DCFGMST.h124 uint64_t Weight = 2; in buildEdges() local
137 Weight = BPI->getEdgeProbability(&*BB, TargetBB).scale(scaleFactor); in buildEdges()
138 auto *E = &addEdge(&*BB, TargetBB, Weight); in buildEdges()
141 << TargetBB->getName() << " w=" << Weight << "\n"); in buildEdges()
145 if (Weight > MaxEntryOutWeight) { in buildEdges()
146 MaxEntryOutWeight = Weight; in buildEdges()
153 if (Weight > MaxExitInWeight) { in buildEdges()
154 MaxExitInWeight = Weight; in buildEdges()
185 EntryIncoming->Weight = MaxExitOutWeight; in buildEdges()
186 ExitOutgoing->Weight in buildEdges()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
H A DHexagonISelDAGToDAG.cpp1646 int Weight; member
1651 WeightedLeaf(SDValue Value, int Weight, int InsertionOrder) : in WeightedLeaf()
1652 Value(Value), Weight(Weight), InsertionOrder(InsertionOrder) { in WeightedLeaf()
1653 assert(Weight >= 0 && "Weight must be >= 0"); in WeightedLeaf()
1658 return A.Weight == B.Weight ? in Compare()
1660 (A.Weight > B.Weight); in Compare()
1906 int Weight; balanceSubTree() local
1971 int Weight = RootWeights[Child.getNode()]; balanceSubTree() local
2011 int Weight = getWeight(Child.getNode()); balanceSubTree() local
2060 int Weight = Mul1.Weight + Mul2.Weight; balanceSubTree() local
2197 int Weight = V0Weight + V1Weight; balanceSubTree() local
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
H A DCalcSpillWeights.cpp191 float Weight; in weightCalcHelper() member
194 Reg(R), Weight(W), IsPhys(P) {} in weightCalcHelper()
199 if (Weight != rhs.Weight) in weightCalcHelper()
200 return (Weight > rhs.Weight); in weightCalcHelper()
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
H A DBlendFuncExtendedTest.cpp26 float Weight(const float /*dst*/[4], const float src[4], const float src1[4]) in Weight() function
56 r[0] = src[0] * Weight<RGBs, 0>(dst, src, src1) + dst[0] * Weight<RGBd, 0>(dst, src, src1); in BlendEquationFuncAdd()
57 r[1] = src[1] * Weight<RGBs, 1>(dst, src, src1) + dst[1] * Weight<RGBd, 1>(dst, src, src1); in BlendEquationFuncAdd()
58 r[2] = src[2] * Weight<RGBs, 2>(dst, src, src1) + dst[2] * Weight<RGBd, 2>(dst, src, src1); in BlendEquationFuncAdd()
59 r[3] = src[3] * Weight<As, 3>(dst, src, src1) + dst[3] * Weight<Ad, 3>(dst, src, src1); in BlendEquationFuncAdd()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
H A DGCNRegBankReassign.cpp88 : MI(mi), Reg(reg), FreeBanks(freebanks), Weight(weight) {} in Candidate()
90 bool operator< (const Candidate& RHS) const { return Weight < RHS.Weight; } in operator <()
97 dbgs() << " weight " << Weight << '\n'; in dump()
104 unsigned Weight; member in __anon24457::GCNRegBankReassign::Candidate
111 if (C.Weight) push_back(C); in push()
552 unsigned Weight = getOperandGatherWeight(MI, Reg1, Reg2, StallCycles);
553 Weight += MLI->getLoopDepth(MI.getParent()) * 10;
555 LLVM_DEBUG(dbgs() << "Stall weight = " << Weight << '\n');
560 Candidates.push(Candidate(&MI, Reg1, FreeBanks1, Weight
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
H A DIceCfgNode.cpp350 int32_t Weight = 0; // preference for topological order member in Ice::__anon25463::PhiDesc
391 // Also update Weight if NumPred dropped from 2 to 1, or 1 to 0.
398 Item.Weight += WeightOnePred; in updatePreds()
402 Item.Weight += (WeightNoPreds - WeightOnePred); in updatePreds()
515 // Another pass to compute initial Weight values. in advancedPhiLowering()
519 int32_t Weight = 0; in advancedPhiLowering() local
521 Weight += WeightNoPreds; in advancedPhiLowering()
523 Weight += WeightOnePred; in advancedPhiLowering()
526 Weight += WeightSrcIsReg; in advancedPhiLowering()
528 Weight in advancedPhiLowering()
543 const int32_t Weight = Item.Weight; advancedPhiLowering() local
[all...]
H A DIceOperand.h575 explicit RegWeight(BaseType Weight) : Weight(Weight) {} in RegWeight() argument
583 Weight = Inf; in addWeight()
584 else if (Weight != Inf) in addWeight()
585 if (Utils::add_overflow(Weight, Delta, &Weight) || Weight == Inf) in addWeight()
586 Weight = Max; in addWeight()
588 void addWeight(const RegWeight &Other) { addWeight(Other.Weight); } in addWeight()
593 BaseType Weight = 0; global() member in Ice::RegNumT::RegWeight
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ProfileData/
H A DInstrProf.cpp602 uint64_t Weight, in merge()
614 I->Count = SaturatingMultiplyAdd(J->Count, Weight, I->Count, &Overflowed); in merge()
624 void InstrProfValueSiteRecord::scale(uint64_t Weight, in scale() argument
628 I->Count = SaturatingMultiply(I->Count, Weight, &Overflowed); in scale()
635 // Scale merged value counts by \p Weight.
637 uint32_t ValueKind, InstrProfRecord &Src, uint64_t Weight, in mergeValueProfData()
652 ThisSiteRecords[I].merge(OtherSiteRecords[I], Weight, Warn); in mergeValueProfData()
655 void InstrProfRecord::merge(InstrProfRecord &Other, uint64_t Weight, in merge() argument
667 SaturatingMultiplyAdd(Other.Counts[I], Weight, Counts[I], &Overflowed); in merge()
673 mergeValueProfData(Kind, Other, Weight, War in merge()
601 merge(InstrProfValueSiteRecord &Input, uint64_t Weight, function_ref<void(instrprof_error)> Warn) merge() argument
636 mergeValueProfData( uint32_t ValueKind, InstrProfRecord &Src, uint64_t Weight, function_ref<void(instrprof_error)> Warn) mergeValueProfData() argument
676 scaleValueProfData( uint32_t ValueKind, uint64_t Weight, function_ref<void(instrprof_error)> Warn) scaleValueProfData() argument
683 scale(uint64_t Weight, function_ref<void(instrprof_error)> Warn) scale() argument
[all...]
H A DInstrProfWriter.cpp183 void InstrProfWriter::addRecord(NamedInstrProfRecord &&I, uint64_t Weight, in addRecord() argument
187 addRecord(Name, Hash, std::move(I), Weight, Warn); in addRecord()
225 InstrProfRecord &&I, uint64_t Weight, in addRecord()
242 if (Weight > 1) in addRecord()
243 Dest.scale(Weight, MapWarn); in addRecord()
246 Dest.merge(I, Weight, MapWarn); in addRecord()
224 addRecord(StringRef Name, uint64_t Hash, InstrProfRecord &&I, uint64_t Weight, function_ref<void(Error)> Warn) addRecord() argument
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/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()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
H A DCFGPrinter.h167 ConstantInt *Weight = in getEdgeAttributes()
169 if (!Weight) in getEdgeAttributes()
174 return ("label=\"W:" + Twine(Weight->getZExtValue()) + "\"").str(); in getEdgeAttributes()
H A DBlockFrequencyInfoImpl.h352 /// In addition to the raw weight amount, Weight stores the type of the edge
356 struct Weight { struct in llvm::BlockFrequencyInfoImplBase
362 Weight() = default;
363 Weight(DistType Type, BlockNode TargetNode, uint64_t Amount) in Weight() function
376 using WeightList = SmallVector<Weight, 4>;
385 add(Node, Amount, Weight::Local); in addLocal()
389 add(Node, Amount, Weight::Exit); in addExit()
393 add(Node, Amount, Weight::Backedge); in addBackedge()
398 /// Combines multiple edges to the same \a Weight::TargetNode and scales
408 void add(const BlockNode &Node, uint64_t Amount, Weight
[all...]
/third_party/skia/src/sfnt/
H A DSkPanose.h47 enum class Weight : SK_OT_BYTE { class
197 enum class Weight : SK_OT_BYTE { class
318 enum class Weight : SK_OT_BYTE { class
452 enum class Weight : SK_OT_BYTE { class
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
H A DSampleProfile.cpp779 ErrorOr<uint64_t> Weight = getBlockWeight(&BB); in computeBlockWeights() local
780 if (Weight) { in computeBlockWeights()
781 BlockWeights[&BB] = Weight.get(); in computeBlockWeights()
1146 uint64_t Weight = BlockWeights[EC]; in findEquivalencesFor() local
1165 Weight = std::max(Weight, BlockWeights[BB2]); in findEquivalencesFor()
1171 BlockWeights[EC] = Weight; in findEquivalencesFor()
1574 uint64_t Weight = EdgeWeights[E]; in propagateWeights() local
1579 if (Weight > std::numeric_limits<uint32_t>::max()) { in propagateWeights()
1581 Weight in propagateWeights()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/MCTargetDesc/
H A DHexagonShuffler.h38 unsigned Slots, Weight; member in llvm::HexagonResource
51 unsigned getWeight() const { return (Weight); } in getWeight()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
H A DReassociate.cpp472 SmallVector<std::pair<Instruction*, APInt>, 8> Worklist; // (Op, Weight) in LinearizeExprTree()
504 APInt Weight = P.second; // Number of paths to this operand. in LinearizeExprTree() local
505 LLVM_DEBUG(dbgs() << "OPERAND: " << *Op << " (" << Weight << ")\n"); in LinearizeExprTree() local
512 LLVM_DEBUG(dbgs() << "DIRECT ADD: " << *Op << " (" << Weight << ")\n"); in LinearizeExprTree() local
513 Worklist.push_back(std::make_pair(BO, Weight)); in LinearizeExprTree()
526 << "ADD USES LEAF: " << *Op << " (" << Weight << ")\n"); in LinearizeExprTree() local
528 Leaves[Op] = Weight; in LinearizeExprTree()
538 IncorporateWeight(It->second, Weight, Opcode); in LinearizeExprTree()
565 Weight = It->second; in LinearizeExprTree()
586 << "MORPH LEAF: " << *Op << " (" << Weight << ") T in LinearizeExprTree() local
596 LLVM_DEBUG(dbgs() << "ADD LEAF: " << *Op << " (" << Weight << ")\\n"); LinearizeExprTree() local
612 APInt Weight = It->second; LinearizeExprTree() local
[all...]
/third_party/skia/include/core/
H A DSkFontStyle.h16 enum Weight { enum in SkFontStyle

Completed in 26 milliseconds

12