| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/FuzzMutate/ |
| H A D | 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);
|
| H A D | Random.h | 60 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()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/ |
| H A D | CFGMST.h | 129 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 …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/ |
| H A D | BlockFrequencyInfoImpl.cpp | 81 using Weight = BlockFrequencyInfoImplBase::Weight; typedef 108 BlockMass takeMass(uint32_t Weight); 120 BlockMass DitheringDistributer::takeMass(uint32_t Weight) { in takeMass() argument 121 assert(Weight && "invalid weight"); in takeMass() 122 assert(Weight <= RemWeight); in takeMass() 123 BlockMass Mass = RemMass * BranchProbability(Weight, RemWeight); in takeMass() 126 RemWeight -= Weight; in takeMass() 132 Weight::DistType Type) { in add() 145 Weights.push_back(Weight(Type, Node, Amount)); in add() 148 static void combineWeight(Weight &W, const Weight &OtherW) { in combineWeight() [all …]
|
| H A D | BranchProbabilityInfo.cpp | 334 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 …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/FuzzMutate/ |
| H A D | Operations.cpp | 91 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 …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/ |
| H A D | CalcSpillWeights.cpp | 140 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 …]
|
| H A D | RegisterPressure.cpp | 58 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()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/ProfileData/ |
| H A D | SampleProf.h | 317 sampleprof_error addSamples(uint64_t S, uint64_t Weight = 1) { 319 NumSamples = SaturatingMultiplyAdd(S, Weight, NumSamples, &Overflowed); 330 uint64_t Weight = 1) { 334 SaturatingMultiplyAdd(S, Weight, TargetSamples, &Overflowed); 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); 547 sampleprof_error addHeadSamples(uint64_t Num, uint64_t Weight = 1) { 550 SaturatingMultiplyAdd(Num, Weight, TotalHeadSamples, &Overflowed); 556 uint64_t Num, uint64_t Weight = 1) { [all …]
|
| H A D | InstrProfWriter.h | 56 void addRecord(NamedInstrProfRecord &&I, uint64_t Weight, 117 uint64_t Weight, function_ref<void(Error)> Warn);
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/ |
| H A D | HexagonISelDAGToDAG.cpp | 1652 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 …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/utils/TableGen/ |
| H A D | CodeGenRegisters.h | 488 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()
|
| H A D | CodeGenRegisters.cpp | 586 unsigned Weight = 0; in getWeight() local 588 Weight += RegBank.getRegUnit(RegUnit).Weight; in getWeight() 590 return Weight; in getWeight() 1581 unsigned Weight = 0; member 1662 unsigned MaxWeight = 0, Weight = 0; in computeUberWeights() local 1665 if (Weight > MaxWeight) in computeUberWeights() 1666 MaxWeight = Weight; in computeUberWeights() 1668 Weight = 0; in computeUberWeights() 1671 unsigned UWeight = RegBank.getRegUnit(*UnitI).Weight; in computeUberWeights() 1676 Weight += UWeight; in computeUberWeights() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/ |
| H A D | LiveInterval.h | 708 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()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyRegColoring.cpp | 68 float Weight = 0.0f; in computeWeight() local 70 Weight += LiveIntervals::getSpillWeight(MO.isDef(), MO.isUse(), MBFI, in computeWeight() 72 return Weight; in computeWeight()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/ProfileData/ |
| H A D | InstrProfWriter.cpp | 184 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()
|
| H A D | SampleProf.cpp | 119 uint64_t Weight) { in merge() argument 129 Result = addSamples(Other.getSamples(), Weight); in merge() 132 MergeResult(Result, addCalledTarget(I.first(), I.second, Weight)); in merge()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/ |
| H A D | SampleProfileLoaderBaseImpl.h | 344 ErrorOr<uint64_t> Weight = getBlockWeight(&BB); 345 if (Weight) { 346 BlockWeights[&BB] = Weight.get(); 407 uint64_t Weight = BlockWeights[EC]; 426 Weight = std::max(Weight, BlockWeights[BB2]); 433 BlockWeights[EC] = Weight;
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/ |
| H A D | CFGPrinter.h | 275 ConstantInt *Weight = 277 if (!Weight) 279 return ("label=\"W:" + std::to_string(Weight->getZExtValue()) +
|
| H A D | BlockFrequencyInfoImpl.h | 359 struct Weight { struct 365 Weight() = default; argument 366 Weight(DistType Type, BlockNode TargetNode, uint64_t Amount) in Weight() function 379 using WeightList = SmallVector<Weight, 4>; 388 add(Node, Amount, Weight::Local); in addLocal() 392 add(Node, Amount, Weight::Exit); in addExit() 396 add(Node, Amount, Weight::Backedge); in addBackedge() 411 void add(const BlockNode &Node, uint64_t Amount, Weight::DistType Type); 450 const BlockNode &Pred, const BlockNode &Succ, uint64_t Weight);
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/ |
| H A D | Reassociate.cpp | 505 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 …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/docs/ |
| H A D | BranchWeightMetadata.rst | 2 LLVM Branch Weight Metadata 11 Branch Weight Metadata represents branch weights as its likeliness to be taken 105 Other terminator instructions are not allowed to contain Branch Weight Metadata. 191 Branch Weight Metatada is not proof against CFG changes. If terminator operands'
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/ |
| H A D | SampleProfile.cpp | 1238 ErrorOr<uint64_t> Weight = getBlockWeight(CB->getParent()); in getInlineCandidate() local 1239 if (Weight) in getInlineCandidate() 1240 CallsiteCount = Weight.get(); in getInlineCandidate() 1524 uint64_t Weight = EdgeWeights[E]; in generateMDProfMetadata() local 1529 if (Weight > std::numeric_limits<uint32_t>::max()) { in generateMDProfMetadata() 1531 Weight = std::numeric_limits<uint32_t>::max(); in generateMDProfMetadata() 1535 Weights.push_back(static_cast<uint32_t>(Weight + 1)); in generateMDProfMetadata() 1536 if (Weight != 0) { in generateMDProfMetadata() 1537 if (Weight > MaxWeight) { in generateMDProfMetadata() 1538 MaxWeight = Weight; in generateMDProfMetadata()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/MCTargetDesc/ |
| H A D | HexagonShuffler.h | 40 unsigned Slots, Weight; variable 56 unsigned getWeight() const { return (Weight); } in getWeight()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-profdata/ |
| H A D | llvm-profdata.cpp | 188 uint64_t Weight; member 270 WC->Writer.addRecord(std::move(I), Input.Weight, [&](Error E) { in loadInput() 538 if (Inputs[0].Weight != 1) in supplementInstrProfile() 716 MergeResult(Result, ProfileMap[FName].merge(Samples, Input.Weight)); in mergeSampleProfile() 763 uint64_t Weight; in parseWeightedFile() local 764 if (WeightStr.getAsInteger(10, Weight) || Weight < 1) in parseWeightedFile() 767 return {std::string(FileName), Weight}; in parseWeightedFile() 772 uint64_t Weight = WF.Weight; in addWeightedInput() local 776 WNI.push_back({std::string(Filename), Weight}); in addWeightedInput() 787 WNI.push_back({std::string(Filename), Weight}); in addWeightedInput() [all …]
|