/freebsd/contrib/llvm-project/llvm/include/llvm/FuzzMutate/ |
H A D | Operations.h | 39 OpDescriptor selectDescriptor(unsigned Weight); 40 OpDescriptor fnegDescriptor(unsigned Weight); 41 OpDescriptor binOpDescriptor(unsigned Weight, Instruction::BinaryOps Op); 42 OpDescriptor cmpOpDescriptor(unsigned Weight, Instruction::OtherOps CmpOp, 44 OpDescriptor splitBlockDescriptor(unsigned Weight); 45 OpDescriptor gepDescriptor(unsigned Weight); 46 OpDescriptor extractValueDescriptor(unsigned Weight); 47 OpDescriptor insertValueDescriptor(unsigned Weight); 48 OpDescriptor extractElementDescriptor(unsigned Weight); 49 OpDescriptor insertElementDescriptor(unsigned Weight); [all …]
|
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()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Instrumentation/ |
H A D | CFGMST.h | 143 uint64_t Weight = 2; in buildEdges() 156 Weight = BPI->getEdgeProbability(&BB, TargetBB).scale(scaleFactor); in buildEdges() 157 if (Weight == 0) in buildEdges() 158 Weight++; in buildEdges() 159 auto *E = &addEdge(&BB, TargetBB, Weight); in buildEdges() 163 << TargetBB->getName() << " w=" << Weight << "\n"); in buildEdges() 167 if (Weight > MaxEntryOutWeight) { in buildEdges() 168 MaxEntryOutWeight = Weight; in buildEdges() 175 if (Weight > MaxExitInWeight) { in buildEdges() 176 MaxExitInWeight = Weight; in buildEdges() 129 uint64_t Weight = 2; buildEdges() local [all...] |
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/ |
H A D | ProfiledCallGraph.h | 26 ProfiledCallGraphNode *Target, uint64_t Weight) 27 : Source(Source), Target(Target), Weight(Weight) {} in ProfiledCallGraphEdge() 30 uint64_t Weight; 108 uint64_t Weight; 111 Weight = 0; 121 Weight = std::max(CallsiteCount, CalleeEntryCount); 124 addProfiledCall(Caller->getFuncName(), Callee->getFuncName(), Weight); 151 uint64_t Weight = 0) { 157 CalleeIt->second, Weight); 32 uint64_t Weight; global() member 109 uint64_t Weight; global() variable [all...] |
/freebsd/contrib/llvm-project/llvm/lib/FuzzMutate/ |
H A D | Operations.cpp | 100 OpDescriptor llvm::fuzzerop::selectDescriptor(unsigned Weight) { in selectDescriptor() argument 104 return {Weight, in selectDescriptor() 109 OpDescriptor llvm::fuzzerop::fnegDescriptor(unsigned Weight) { in fnegDescriptor() argument 113 return {Weight, {anyFloatOrVecFloatType()}, buildOp}; in fnegDescriptor() 116 OpDescriptor llvm::fuzzerop::binOpDescriptor(unsigned Weight, in binOpDescriptor() argument 135 return {Weight, {anyIntOrVecIntType(), matchFirstType()}, buildOp}; in binOpDescriptor() 141 return {Weight, {anyFloatOrVecFloatType(), matchFirstType()}, buildOp}; in binOpDescriptor() 148 OpDescriptor llvm::fuzzerop::cmpOpDescriptor(unsigned Weight, in cmpOpDescriptor() argument 157 return {Weight, {anyIntOrVecIntType(), matchFirstType()}, buildOp}; in cmpOpDescriptor() 159 return {Weight, {anyFloatOrVecFloatType(), matchFirstType()}, buildOp}; in cmpOpDescriptor() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | BlockFrequencyInfoImpl.cpp | 95 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 …]
|
H A D | BranchProbabilityInfo.cpp | 677 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() 905 Weight.value_or(static_cast<uint32_t>(BlockExecWeight::DEFAULT)) / in calcEstimatedHeuristics() 911 Weight != static_cast<uint32_t>(BlockExecWeight::ZERO)) { in calcEstimatedHeuristics() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | CalcSpillWeights.cpp | 143 float Weight = weightCalcHelper(LI); in calculateSpillWeightAndHint() local 145 if (Weight < 0) in calculateSpillWeightAndHint() 147 LI.setWeight(Weight); in calculateSpillWeightAndHint() 211 const float Weight; in weightCalcHelper() member 212 CopyHint(Register R, float W) : Reg(R), Weight(W) {} in weightCalcHelper() 217 if (Weight != Rhs.Weight) in weightCalcHelper() 218 return (Weight > Rhs.Weight); in weightCalcHelper() 263 stack_float_t Weight = 1.0f; in weightCalcHelper() local 275 Weight = LiveIntervals::getSpillWeight(Writes, Reads, &MBFI, *MI); in weightCalcHelper() 279 Weight *= 3; in weightCalcHelper() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonISelDAGToDAG.cpp | 1803 int Weight; member 1808 WeightedLeaf(SDValue Value, int Weight, int InsertionOrder) : in WeightedLeaf() 1809 Value(Value), Weight(Weight), InsertionOrder(InsertionOrder) { in WeightedLeaf() 1810 assert(Weight >= 0 && "Weight must be >= 0"); in WeightedLeaf() 1815 return A.Weight == B.Weight ? in Compare() 1817 (A.Weight > B.Weight); in Compare() 1878 L.Weight = 1000; in pushToBottom() 1904 if (!Result.Value.getNode() || Result.Weight > L.Weight || in findSHL() 1905 (Result.Weight == L.Weight && Result.InsertionOrder > L.InsertionOrder)) in findSHL() 1931 if (!Result.Value.getNode() || Result.Weight > L.Weight || in findMULbyConst() [all …]
|
/freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/ |
H A D | CodeGenRegisters.h | 538 unsigned Weight; member 552 RegUnit() : Weight(0), RegClassUnitSetsIdx(0), Artificial(false) { in RegUnit() 568 unsigned Weight = 0; // Cache the sum of all unit weights. member 748 unsigned newRegUnit(unsigned Weight) { in newRegUnit() argument 750 RU.Weight = Weight; in newRegUnit() 797 unsigned Weight = 0; in getRegUnitSetWeight() local 799 Weight += getRegUnit(Unit).Weight; in getRegUnitSetWeight() 800 return Weight; in getRegUnitSetWeight() 813 getRegUnit(RUID).Weight += Inc; in increaseRegUnitWeight()
|
H A D | CodeGenRegisters.cpp | 601 unsigned Weight = 0; in getWeight() local 603 Weight += RegBank.getRegUnit(RegUnit).Weight; in getWeight() 605 return Weight; in getWeight() 1712 unsigned Weight = 0; member 1793 unsigned MaxWeight = 0, Weight = 0; in computeUberWeights() local 1796 if (Weight > MaxWeight) in computeUberWeights() 1797 MaxWeight = Weight; in computeUberWeights() 1799 Weight = 0; in computeUberWeights() 1802 unsigned UWeight = RegBank.getRegUnit(*UnitI).Weight; in computeUberWeights() 1807 Weight += UWeight; in computeUberWeights() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
H A D | SampleProfileInference.h | 28 uint64_t Weight{0}; 46 uint64_t Weight{0}; 252 Block.Weight = SampleBlockWeights[BB]; in createFlowFunction() 255 Block.Weight = 0; in createFlowFunction() 292 if (EntryBlock.Weight == 0 && !EntryBlock.HasUnknownWeight) { in createFlowFunction() 293 EntryBlock.Weight = 1; in createFlowFunction()
|
H A D | SampleProfileLoaderBaseImpl.h | 545 ErrorOr<uint64_t> Weight = getBlockWeight(&BB); 546 if (Weight) { 547 BlockWeights[&BB] = Weight.get(); 608 uint64_t Weight = BlockWeights[EC]; 627 Weight = std::max(Weight, BlockWeights[BB2]); 634 BlockWeights[EC] = Weight; 932 ErrorOr<uint64_t> Weight = getBlockWeight(&BI); 933 if (Weight) 934 SampleBlockWeights[&BI] = Weight.get();
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/ |
H A D | SampleProf.h | 346 sampleprof_error addSamples(uint64_t S, uint64_t Weight = 1) { 348 NumSamples = SaturatingMultiplyAdd(S, Weight, NumSamples, &Overflowed); 368 uint64_t Weight = 1) { 372 SaturatingMultiplyAdd(S, Weight, TargetSamples, &Overflowed); 427 sampleprof_error merge(const SampleRecord &Other, uint64_t Weight = 1); 752 sampleprof_error addTotalSamples(uint64_t Num, uint64_t Weight = 1) { 755 SaturatingMultiplyAdd(Num, Weight, TotalSamples, &Overflowed); 771 sampleprof_error addHeadSamples(uint64_t Num, uint64_t Weight = 1) { 774 SaturatingMultiplyAdd(Num, Weight, TotalHeadSamples, &Overflowed); 780 uint64_t Num, uint64_t Weight = 1) { [all …]
|
H A D | InstrProfWriter.h | 94 void addRecord(NamedInstrProfRecord &&I, uint64_t Weight, 209 uint64_t Weight, function_ref<void(Error)> Warn);
|
H A D | InstrProf.h | 377 uint64_t Weight; member 379 uint64_t Weight = 1) 380 : FunctionNameRefs(Trace), Weight(Weight) {} in FunctionNameRefs() 812 void merge(InstrProfValueSiteRecord &Input, uint64_t Weight, 877 void merge(InstrProfRecord &Other, uint64_t Weight, 976 uint64_t Weight,
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | SampleProfileInference.cpp | 1095 if (Block.Weight > 0) { in initializeNetwork() 1096 Network.addEdge(Bout, Bin, Block.Weight, AuxCostDec); in initializeNetwork() 1097 Network.addEdge(S1, Bout, Block.Weight, 0); in initializeNetwork() 1098 Network.addEdge(Bin, T1, Block.Weight, 0); in initializeNetwork() 1115 if (Jump.Weight > 0) { in initializeNetwork() 1116 Network.addEdge(Jout, Jin, Jump.Weight, AuxCostDec); in initializeNetwork() 1117 Network.addEdge(S1, Jout, Jump.Weight, 0); in initializeNetwork() 1118 Network.addEdge(Jin, T1, Jump.Weight, 0); in initializeNetwork() 1143 if (Block.Weight == 0) in assignBlockCosts() 1178 assert(Jump.Weight > 0 && "found zero-weight jump with a positive weight"); in assignJumpCosts() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | LiveInterval.h | 715 float Weight = 0.0; // weight of this interval variable 719 float weight() const { return Weight; } in weight() 720 void incrementWeight(float Inc) { Weight += Inc; } in incrementWeight() 721 void setWeight(float Value) { Weight = Value; } in setWeight() 723 LiveInterval(unsigned Reg, float Weight) : Reg(Reg), Weight(Weight) {} in LiveInterval() argument 826 bool isSpillable() const { return Weight != huge_valf; } in isSpillable() 829 void markNotSpillable() { Weight = huge_valf; } in markNotSpillable()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | ProfDataUtils.cpp | 81 ConstantInt *Weight = in extractFromBranchWeightMD() local 83 assert(Weight && "Malformed branch_weight in MD_prof node"); in extractFromBranchWeightMD() 84 assert(Weight->getValue().getActiveBits() <= (sizeof(T) * 8) && in extractFromBranchWeightMD() 86 Weights[Idx - WeightsIdx] = Weight->getZExtValue(); in extractFromBranchWeightMD()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/ |
H A D | FuzzerDataFlowTrace.cpp | 95 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/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | APFixedPoint.h | 48 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()
|
/freebsd/contrib/llvm-project/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()
|
/freebsd/sys/contrib/zstd/doc/ |
H A D | zstd_compression_format.md | 1223 are represented by `Weight` with values from `0` to `Max_Number_of_Bits`. 1224 Transformation from `Weight` to `Number_of_Bits` follows this formula : 1226 Number_of_Bits = Weight ? (Max_Number_of_Bits + 1 - Weight) : 0 1228 The last symbol's `Weight` is deduced from previously decoded ones, 1245 Values from `0` to `4` will be listed using `Weight` instead of `Number_of_Bits`. 1246 Weight formula is : 1248 Weight = Number_of_Bits ? (Max_Number_of_Bits + 1 - Number_of_Bits) : 0 1254 | `Weight` | 4 | 3 | 2 | 0 | 1 | 1258 it knows the last literal, `5`, is present with a non-zero `Weight`. 1259 The `Weight` of `5` can be determined by advancing to the next power of 2. [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | CFGPrinter.h | 312 ConstantInt *Weight = 314 if (!Weight) 316 return (TTAttr + "label=\"W:" + std::to_string(Weight->getZExtValue()) +
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | Reassociate.cpp | 430 auto [I, Weight] = Worklist.pop_back_val(); in LinearizeExprTree() 439 LLVM_DEBUG(dbgs() << "OPERAND: " << *Op << " (" << Weight << ")\n"); in LinearizeExprTree() 446 LLVM_DEBUG(dbgs() << "DIRECT ADD: " << *Op << " (" << Weight << ")\n"); in LinearizeExprTree() 447 Worklist.push_back(std::make_pair(BO, Weight)); in LinearizeExprTree() 460 << "ADD USES LEAF: " << *Op << " (" << Weight << ")\n"); in LinearizeExprTree() 462 Leaves[Op] = Weight; in LinearizeExprTree() 472 It->second += Weight; in LinearizeExprTree() 473 assert(It->second >= Weight && "Weight overflows"); in LinearizeExprTree() 481 Weight = It->second; in LinearizeExprTree() 506 << "MORPH LEAF: " << *Op << " (" << Weight << ") TO "); in LinearizeExprTree() [all …]
|