HomeSort by: relevance | last modified time | path
    Searched refs:Weight (Results 1 - 25 of 52) sorted by relevancy

1 2 3

  /src/external/apache2/llvm/dist/llvm/include/llvm/FuzzMutate/
Operations.h 37 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);
Random.h 52 /// Sample each item in \c Items with unit weight
59 /// Sample a single item with the given weight.
60 ReservoirSampler &sample(const T &Item, uint64_t Weight) {
61 if (!Weight)
62 // If the weight is zero, do nothing.
64 TotalWeight += Weight;
66 if (uniform<uint64_t>(RandGen, 1, TotalWeight) <= Weight)
83 uint64_t Weight) {
85 RS.sample(Item, Weight);
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/
CFGMST.h 97 // Traverse the CFG using a stack. Find all the edges and assign the weight.
98 // Edges with large weight will be put into MST first so they are less likely
105 // If we want to instrument the entry count, lower the weight to 0.
129 uint64_t Weight = 2;
142 Weight = BPI->getEdgeProbability(&BB, TargetBB).scale(scaleFactor);
143 if (Weight == 0)
144 Weight++;
145 auto *E = &addEdge(&BB, TargetBB, Weight);
148 << TargetBB->getName() << " w=" << Weight << "\n");
152 if (Weight > MaxEntryOutWeight)
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/FuzzMutate/
Operations.cpp 91 OpDescriptor llvm::fuzzerop::binOpDescriptor(unsigned Weight,
110 return {Weight, {anyIntType(), matchFirstType()}, buildOp};
116 return {Weight, {anyFloatType(), matchFirstType()}, buildOp};
123 OpDescriptor llvm::fuzzerop::cmpOpDescriptor(unsigned Weight,
132 return {Weight, {anyIntType(), matchFirstType()}, buildOp};
134 return {Weight, {anyFloatType(), matchFirstType()}, buildOp};
140 OpDescriptor llvm::fuzzerop::splitBlockDescriptor(unsigned Weight) {
167 return {Weight, {isInt1Ty}, buildSplitBlock};
170 OpDescriptor llvm::fuzzerop::gepDescriptor(unsigned Weight) {
179 return {Weight, {sizedPtrType(), anyIntType()}, buildGEP}
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/CodeGen/
CalcSpillWeights.cpp 98 // weight must reflect this.
140 float Weight = weightCalcHelper(LI);
142 if (Weight < 0)
144 LI.setWeight(Weight);
177 // Don't recompute spill weight for an unspillable register.
204 const float Weight;
205 CopyHint(Register R, float W) : Reg(R), Weight(W) {}
210 if (Weight != Rhs.Weight)
211 return (Weight > Rhs.Weight)
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Analysis/
BlockFrequencyInfoImpl.cpp 81 using Weight = BlockFrequencyInfoImplBase::Weight;
86 /// This class splits up a single mass into portions by weight, dithering to
97 /// 1. Construct a branch probability, P, as the portion's weight divided
101 /// the current portion's weight and mass.
108 BlockMass takeMass(uint32_t Weight);
120 BlockMass DitheringDistributer::takeMass(uint32_t Weight) {
121 assert(Weight && "invalid weight");
122 assert(Weight <= RemWeight)
    [all...]
BranchProbabilityInfo.cpp 87 // | | (Weight = 124)
91 // | (Weight = 4)
126 /// Special weight used for cases with exact zero probability.
128 /// Minimal possible non zero weight.
130 /// Weight to an 'unreachable' block.
132 /// Weight to a block containing non returning call.
134 /// Weight to 'unwind' block of an invoke instruction.
136 /// Weight to a 'cold' block. Cold blocks are the ones containing calls marked
139 /// Default weight is used in cases when there is no dedicated execution
140 /// weight set. It is not propagated through the domination line either
    [all...]
  /src/external/apache2/llvm/dist/llvm/include/llvm/ProfileData/
SampleProf.h 313 /// Optionally scale sample count \p S by \p Weight.
317 sampleprof_error addSamples(uint64_t S, uint64_t Weight = 1) {
319 NumSamples = SaturatingMultiplyAdd(S, Weight, NumSamples, &Overflowed);
325 /// Optionally scale sample count \p S by \p Weight.
330 uint64_t Weight = 1) {
334 SaturatingMultiplyAdd(S, Weight, TargetSamples, &Overflowed);
368 /// Optionally scale sample counts by \p Weight.
369 sampleprof_error merge(const SampleRecord &Other, uint64_t Weight = 1);
537 sampleprof_error addTotalSamples(uint64_t Num, uint64_t Weight = 1) {
540 SaturatingMultiplyAdd(Num, Weight, TotalSamples, &Overflowed)
    [all...]
InstrProfWriter.h 55 /// summed. Optionally scale counts by \p Weight.
56 void addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
117 uint64_t Weight, function_ref<void(Error)> Warn);
  /src/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/
WebAssemblyRegColoring.cpp 64 // Compute the total spill weight for VReg.
68 float Weight = 0.0f;
70 Weight += LiveIntervals::getSpillWeight(MO.isDef(), MO.isUse(), MBFI,
72 return Weight;
109 assert(LI->weight() == 0.0f);
117 // registers), by weight next, and then by position.
123 if (LHS->weight() != RHS->weight())
124 return LHS->weight() > RHS->weight();
    [all...]
  /src/external/apache2/llvm/dist/llvm/utils/TableGen/
CodeGenRegisters.h 444 // Get a weight of this register class.
485 // Weight assigned to this RegUnit for estimating register pressure.
488 unsigned Weight;
502 RegUnit() : Weight(0), RegClassUnitSetsIdx(0), Artificial(false) {
518 unsigned Weight = 0; // Cache the sum of all unit weights.
604 // Compute a weight for each register unit created during getSubRegs.
695 unsigned newRegUnit(unsigned Weight) {
697 RegUnits.back().Weight = Weight;
703 // register additional weight but don't affect aliasing
    [all...]
CodeGenRegisters.cpp 586 unsigned Weight = 0;
588 Weight += RegBank.getRegUnit(RegUnit).Weight;
590 return Weight;
856 if (TheDef && !TheDef->isValueUnset("Weight"))
857 return TheDef->getValueAsInt("Weight");
1574 // A Weight field caches the max per-register unit weight in each UberRegSet.
1577 // for which the unit weight equals the set weight. These units should not hav
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/
HexagonISelDAGToDAG.cpp 1631 /// Return the weight of an SDNode
1635 assert(RootWeights.count(N) && "Cannot get weight of unseen root!");
1636 assert(RootWeights[N] != -1 && "Cannot get weight of unvisited root!");
1637 assert(RootWeights[N] != -2 && "Cannot get weight of RAWU'd root!");
1652 int Weight;
1657 WeightedLeaf(SDValue Value, int Weight, int InsertionOrder) :
1658 Value(Value), Weight(Weight), InsertionOrder(InsertionOrder) {
1659 assert(Weight >= 0 && "Weight must be >= 0")
    [all...]
  /src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/
SampleProfileLoaderBaseImpl.h 146 /// The weight of a basic block is defined to be the maximum
217 /// Print the weight of edge \p E on stream \p OS.
223 OS << "weight[" << E.first->getName() << "->" << E.second->getName()
239 /// Print the weight of block \p BB on stream \p OS.
248 OS << "weight[" << BB->getName() << "]: " << W << "\n";
252 /// Get the weight for an instruction.
254 /// The "weight" of an instruction \p Inst is the number of samples
262 /// \returns the weight of \p Inst.
304 << DIL->getBaseDiscriminator() << " - weight: " << R.get()
310 /// Compute the weight of a basic block
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/ProfileData/
InstrProfWriter.cpp 184 void InstrProfWriter::addRecord(NamedInstrProfRecord &&I, uint64_t Weight,
188 addRecord(Name, Hash, std::move(I), Weight, Warn);
226 InstrProfRecord &&I, uint64_t Weight,
243 if (Weight > 1)
244 Dest.scale(Weight, 1, MapWarn);
247 Dest.merge(I, Weight, MapWarn);
SampleProf.cpp 117 /// Optionally scale sample counts by \p Weight.
119 uint64_t Weight) {
129 Result = addSamples(Other.getSamples(), Weight);
132 MergeResult(Result, addCalledTarget(I.first(), I.second, Weight));
InstrProf.cpp 624 uint64_t Weight,
636 I->Count = SaturatingMultiplyAdd(J->Count, Weight, I->Count, &Overflowed);
657 // Scale merged value counts by \p Weight.
659 uint32_t ValueKind, InstrProfRecord &Src, uint64_t Weight,
674 ThisSiteRecords[I].merge(OtherSiteRecords[I], Weight, Warn);
677 void InstrProfRecord::merge(InstrProfRecord &Other, uint64_t Weight,
689 SaturatingMultiplyAdd(Other.Counts[I], Weight, Counts[I], &Overflowed);
695 mergeValueProfData(Kind, Other, Weight, Warn);
  /src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
CFGPrinter.h 255 // Prepend a 'W' to indicate that this is a weight rather than the actual
275 ConstantInt *Weight =
277 if (!Weight)
279 return ("label=\"W:" + std::to_string(Weight->getZExtValue()) +
BlockFrequencyInfoImpl.h 346 /// Unscaled probability weight.
348 /// Probability weight for an edge in the graph (including the
355 /// In addition to the raw weight amount, Weight stores the type of the edge
359 struct Weight {
365 Weight() = default;
366 Weight(DistType Type, BlockNode TargetNode, uint64_t Amount)
370 /// Distribution of unscaled probability weight.
372 /// Distribution of unscaled probability weight to a set of successors.
379 using WeightList = SmallVector<Weight, 4>
    [all...]
  /src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/
LiveInterval.h 708 float Weight = 0.0; // weight of this interval
712 float weight() const { return Weight; }
713 void incrementWeight(float Inc) { Weight += Inc; }
714 void setWeight(float Value) { Weight = Value; }
716 LiveInterval(unsigned Reg, float Weight) : Reg(Reg), Weight(Weight) {}
813 bool isSpillable() const { return Weight != huge_valf;
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/MCTargetDesc/
HexagonShuffler.h 39 // the weight or priority that the insn requires to be assigned a slot.
40 unsigned Slots, Weight;
56 unsigned getWeight() const { return (Weight); }
63 // Check if the resources are in ascending weight order.
  /src/external/apache2/llvm/dist/llvm/include/llvm/IR/
MDBuilder.h 211 /// Return metadata containing an irreducible loop header weight.
212 MDNode *createIrrLoopHeaderWeight(uint64_t Weight);
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
Reassociate.cpp 298 /// Add the extra weight 'RHS' to the existing weight 'LHS',
299 /// reducing the combined weight using any special properties of the operation.
300 /// The existing weight LHS represents the computation X op X op ... op X where
301 /// X occurs LHS times. The combined weight represents X op X op ... op X with
307 // weight would be LHS + RHS. But we are using finite precision arithmetic,
311 // weight back into range if wrapping would be wrong.
313 // If RHS is zero then the weight didn't change.
316 // If LHS is zero then the combined weight is RHS.
324 // Idempotent means X op X === X, so any non-zero weight is equivalent to
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
SampleProfile.cpp 14 // This pass generates branch weight annotations on the IR:
18 // The weight of each edge is the weight of the target block for
19 // that edge. The weight of a block B is computed as the maximum
319 // Inline candidate comparer using call site weight
546 // Here use error_code to represent: 1) The dangling probe. 2) Ignore the weight
548 // tell the inference algorithm to infer the BB weight.
554 // probe, we choose to infer the BB's weight.
607 << " - weight: " << R.get() << " - factor: "
1238 ErrorOr<uint64_t> Weight = getBlockWeight(CB->getParent())
    [all...]
  /src/external/apache2/llvm/dist/llvm/tools/llvm-profdata/
llvm-profdata.cpp 188 uint64_t Weight;
270 WC->Writer.addRecord(std::move(I), Input.Weight, [&](Error E) {
538 if (Inputs[0].Weight != 1)
539 exitWithError("Expect instr profile doesn't have weight.");
716 MergeResult(Result, ProfileMap[FName].merge(Samples, Input.Weight));
763 uint64_t Weight;
764 if (WeightStr.getAsInteger(10, Weight) || Weight < 1)
765 exitWithError("Input weight must be a positive integer.");
767 return {std::string(FileName), Weight};
    [all...]

Completed in 52 milliseconds

1 2 3