Home
last modified time | relevance | path

Searched refs:Freq (Results 1 – 25 of 71) sorted by relevance

123

/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/
DBlockFrequencyTest.cpp21 BlockFrequency Freq(1); in TEST() local
23 Freq *= Prob; in TEST()
24 EXPECT_EQ(Freq.getFrequency(), 0u); in TEST()
26 Freq = BlockFrequency(1); in TEST()
27 Freq *= Prob; in TEST()
28 EXPECT_EQ(Freq.getFrequency(), 0u); in TEST()
32 BlockFrequency Freq(1); in TEST() local
34 Freq *= Prob; in TEST()
35 EXPECT_EQ(Freq.getFrequency(), 1u); in TEST()
37 Freq = BlockFrequency(1); in TEST()
[all …]
/external/llvm/unittests/Support/
DBlockFrequencyTest.cpp21 BlockFrequency Freq(1); in TEST() local
23 Freq *= Prob; in TEST()
24 EXPECT_EQ(Freq.getFrequency(), 0u); in TEST()
26 Freq = BlockFrequency(1); in TEST()
27 Freq *= Prob; in TEST()
28 EXPECT_EQ(Freq.getFrequency(), 0u); in TEST()
32 BlockFrequency Freq(1); in TEST() local
34 Freq *= Prob; in TEST()
35 EXPECT_EQ(Freq.getFrequency(), 1u); in TEST()
37 Freq = BlockFrequency(1); in TEST()
[all …]
/external/swiftshader/third_party/LLVM/unittests/Support/
DBlockFrequencyTest.cpp13 BlockFrequency Freq(1); in TEST() local
15 Freq *= Prob; in TEST()
16 EXPECT_EQ(Freq.getFrequency(), 0u); in TEST()
20 BlockFrequency Freq(1); in TEST() local
22 Freq *= Prob; in TEST()
23 EXPECT_EQ(Freq.getFrequency(), 1u); in TEST()
27 BlockFrequency Freq(3); in TEST() local
29 Freq *= Prob; in TEST()
30 EXPECT_EQ(Freq.getFrequency(), 1u); in TEST()
34 BlockFrequency Freq(UINT64_MAX); in TEST() local
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DBlockFrequency.cpp25 BlockFrequency Freq(Frequency); in operator *() local
26 Freq *= Prob; in operator *()
27 return Freq; in operator *()
36 BlockFrequency Freq(Frequency); in operator /() local
37 Freq /= Prob; in operator /()
38 return Freq; in operator /()
41 BlockFrequency &BlockFrequency::operator+=(BlockFrequency Freq) { in operator +=() argument
42 uint64_t Before = Freq.Frequency; in operator +=()
43 Frequency += Freq.Frequency; in operator +=()
52 BlockFrequency BlockFrequency::operator+(BlockFrequency Freq) const { in operator +()
[all …]
/external/llvm/lib/Support/
DBlockFrequency.cpp26 BlockFrequency Freq(Frequency); in operator *() local
27 Freq *= Prob; in operator *()
28 return Freq; in operator *()
37 BlockFrequency Freq(Frequency); in operator /() local
38 Freq /= Prob; in operator /()
39 return Freq; in operator /()
42 BlockFrequency &BlockFrequency::operator+=(BlockFrequency Freq) { in operator +=() argument
43 uint64_t Before = Freq.Frequency; in operator +=()
44 Frequency += Freq.Frequency; in operator +=()
53 BlockFrequency BlockFrequency::operator+(BlockFrequency Freq) const { in operator +()
[all …]
/external/lzma/C/
DPpmd7.c314 s->Freq = 1; in RestartModel()
382 upState.Freq = ONE_STATE(c)->Freq; in CreateSuccessors()
388 cf = s->Freq - 1; in CreateSuccessors()
390 … upState.Freq = (Byte)(1 + ((2 * cf <= s0) ? (5 * cf > s0) : ((2 * cf + 3 * s0 - 1) / (2 * s0)))); in CreateSuccessors()
431 if (p->FoundState->Freq < MAX_FREQ / 4 && p->MinContext->Suffix != 0) in UpdateModel()
438 if (s->Freq < 32) in UpdateModel()
439 s->Freq++; in UpdateModel()
447 if (s[0].Freq >= s[-1].Freq) in UpdateModel()
453 if (s->Freq < MAX_FREQ - 9) in UpdateModel()
455 s->Freq += 2; in UpdateModel()
[all …]
DPpmd7Dec.c91 if ((count = rc->GetThreshold(rc, p->MinContext->SummFreq)) < (hiCnt = s->Freq)) in Ppmd7_DecodeSymbol()
94 rc->Decode(rc, 0, s->Freq); in Ppmd7_DecodeSymbol()
104 if ((hiCnt += (++s)->Freq) > count) in Ppmd7_DecodeSymbol()
107 rc->Decode(rc, hiCnt - s->Freq, s->Freq); in Ppmd7_DecodeSymbol()
162 hiCnt += (s->Freq & k); in Ppmd7_DecodeSymbol()
176 for (hiCnt = 0; (hiCnt += (*pps)->Freq) <= count; pps++); in Ppmd7_DecodeSymbol()
178 rc->Decode(rc, hiCnt - s->Freq, s->Freq); in Ppmd7_DecodeSymbol()
DPpmd7Enc.c89 RangeEnc_Encode(rc, 0, s->Freq, p->MinContext->SummFreq); in Ppmd7_EncodeSymbol()
95 sum = s->Freq; in Ppmd7_EncodeSymbol()
101 RangeEnc_Encode(rc, sum, s->Freq, p->MinContext->SummFreq); in Ppmd7_EncodeSymbol()
106 sum += s->Freq; in Ppmd7_EncodeSymbol()
168 sum += (s->Freq & (int)(MASK(s->Symbol))); in Ppmd7_EncodeSymbol()
172 RangeEnc_Encode(rc, low, s1->Freq, sum + escFreq); in Ppmd7_EncodeSymbol()
178 sum += (s->Freq & (int)(MASK(cur))); in Ppmd7_EncodeSymbol()
/external/swiftshader/third_party/LLVM/lib/Support/
DBlockFrequency.cpp92 BlockFrequency Freq(Frequency); in operator *() local
93 Freq *= Prob; in operator *()
94 return Freq; in operator *()
97 BlockFrequency &BlockFrequency::operator+=(const BlockFrequency &Freq) { in operator +=() argument
98 uint64_t Before = Freq.Frequency; in operator +=()
99 Frequency += Freq.Frequency; in operator +=()
110 BlockFrequency Freq(Frequency); in operator +() local
111 Freq += Prob; in operator +()
112 return Freq; in operator +()
121 raw_ostream &operator<<(raw_ostream &OS, const BlockFrequency &Freq) { in operator <<() argument
[all …]
/external/swiftshader/third_party/LLVM/lib/CodeGen/
DSpillPlacement.cpp181 float Freq = LiveIntervals::getSpillWeight(true, false, in runOnMachineFunction() local
184 BlockFrequency[Num] = Freq; in runOnMachineFunction()
185 nodes[bundles->getBundle(Num, 1)].Scale[0] += Freq; in runOnMachineFunction()
186 nodes[bundles->getBundle(Num, 0)].Scale[1] += Freq; in runOnMachineFunction()
218 float Freq = getBlockFrequency(I->Number); in addConstraints() local
231 nodes[ib].addBias(Freq * Bias[I->Entry], 1); in addConstraints()
238 nodes[ob].addBias(Freq * Bias[I->Exit], 0); in addConstraints()
247 float Freq = getBlockFrequency(*I); in addPrefSpill() local
249 Freq += Freq; in addPrefSpill()
254 nodes[ib].addBias(-Freq, 1); in addPrefSpill()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DSpillPlacement.cpp257 uint64_t Freq = Entry.getFrequency(); in setThreshold() local
258 uint64_t Scaled = (Freq >> 13) + bool(Freq & (1 << 12)); in setThreshold()
267 BlockFrequency Freq = BlockFrequencies[I->Number]; in addConstraints() local
273 nodes[ib].addBias(Freq, I->Entry); in addConstraints()
280 nodes[ob].addBias(Freq, I->Exit); in addConstraints()
289 BlockFrequency Freq = BlockFrequencies[*I]; in addPrefSpill() local
291 Freq += Freq; in addPrefSpill()
296 nodes[ib].addBias(Freq, PrefSpill); in addPrefSpill()
297 nodes[ob].addBias(Freq, PrefSpill); in addPrefSpill()
313 BlockFrequency Freq = BlockFrequencies[Number]; in addLinks() local
[all …]
/external/llvm/lib/CodeGen/
DSpillPlacement.cpp249 uint64_t Freq = Entry.getFrequency(); in setThreshold() local
250 uint64_t Scaled = (Freq >> 13) + bool(Freq & (1 << 12)); in setThreshold()
259 BlockFrequency Freq = BlockFrequencies[I->Number]; in addConstraints() local
265 nodes[ib].addBias(Freq, I->Entry); in addConstraints()
272 nodes[ob].addBias(Freq, I->Exit); in addConstraints()
281 BlockFrequency Freq = BlockFrequencies[*I]; in addPrefSpill() local
283 Freq += Freq; in addPrefSpill()
288 nodes[ib].addBias(Freq, PrefSpill); in addPrefSpill()
289 nodes[ob].addBias(Freq, PrefSpill); in addPrefSpill()
305 BlockFrequency Freq = BlockFrequencies[Number]; in addLinks() local
[all …]
/external/llvm/include/llvm/Support/
DBlockFrequency.h29 BlockFrequency(uint64_t Freq = 0) : Frequency(Freq) { } in Frequency() argument
49 BlockFrequency &operator+=(BlockFrequency Freq);
50 BlockFrequency operator+(BlockFrequency Freq) const;
53 BlockFrequency &operator-=(BlockFrequency Freq);
54 BlockFrequency operator-(BlockFrequency Freq) const;
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DBlockFrequency.h29 BlockFrequency(uint64_t Freq = 0) : Frequency(Freq) { } in Frequency() argument
49 BlockFrequency &operator+=(BlockFrequency Freq);
50 BlockFrequency operator+(BlockFrequency Freq) const;
53 BlockFrequency &operator-=(BlockFrequency Freq);
54 BlockFrequency operator-(BlockFrequency Freq) const;
/external/compiler-rt/lib/esan/
Desan_sideline_linux.cpp87 bool TimerSuccess = Thread->adjustTimer(Thread->Freq); in runSideline()
111 Freq = FreqMilliSec; in launchThread()
155 Freq = FreqMilliSec; in adjustTimer()
157 TimerVal.it_interval.tv_sec = (time_t) Freq / 1000; in adjustTimer()
158 TimerVal.it_interval.tv_usec = (time_t) (Freq % 1000) * 1000; in adjustTimer()
159 TimerVal.it_value.tv_sec = (time_t) Freq / 1000; in adjustTimer()
160 TimerVal.it_value.tv_usec = (time_t) (Freq % 1000) * 1000; in adjustTimer()
Dworking_set.cpp181 u32 Freq = 1; in takeSample() local
183 while (BitIdx <= MaxAccumBitIdx && (SnapshotNum % Freq) == 0) { in takeSample()
186 SnapshotNum, BitIdx, Freq, NumLines); in takeSample()
188 Freq = Freq << getFlags()->snapshot_step; in takeSample()
240 u32 Freq = 1; in reportWorkingSet() local
243 u32 Time = getPeriodForPrinting(getFlags()->sample_freq*Freq, Unit); in reportWorkingSet()
252 Freq = Freq << getFlags()->snapshot_step; in reportWorkingSet()
/external/python/cpython2/Modules/zlib/
Dtrees.c413 for (n = 0; n < L_CODES; n++) s->dyn_ltree[n].Freq = 0;
414 for (n = 0; n < D_CODES; n++) s->dyn_dtree[n].Freq = 0;
415 for (n = 0; n < BL_CODES; n++) s->bl_tree[n].Freq = 0;
417 s->dyn_ltree[END_BLOCK].Freq = 1;
442 (tree[n].Freq < tree[m].Freq || \
443 (tree[n].Freq == tree[m].Freq && depth[n] <= depth[m]))
522 f = tree[n].Freq;
556 s->opt_len += ((ulg)bits - tree[m].Len) * tree[m].Freq;
633 if (tree[n].Freq != 0) {
648 tree[node].Freq = 1;
[all …]
/external/zlib/src/
Dtrees.c413 for (n = 0; n < L_CODES; n++) s->dyn_ltree[n].Freq = 0;
414 for (n = 0; n < D_CODES; n++) s->dyn_dtree[n].Freq = 0;
415 for (n = 0; n < BL_CODES; n++) s->bl_tree[n].Freq = 0;
417 s->dyn_ltree[END_BLOCK].Freq = 1;
442 (tree[n].Freq < tree[m].Freq || \
443 (tree[n].Freq == tree[m].Freq && depth[n] <= depth[m]))
522 f = tree[n].Freq;
556 s->opt_len += ((ulg)bits - tree[m].Len) * tree[m].Freq;
633 if (tree[n].Freq != 0) {
648 tree[node].Freq = 1;
[all …]
/external/u-boot/lib/zlib/
Dtrees.c421 for (n = 0; n < L_CODES; n++) s->dyn_ltree[n].Freq = 0;
422 for (n = 0; n < D_CODES; n++) s->dyn_dtree[n].Freq = 0;
423 for (n = 0; n < BL_CODES; n++) s->bl_tree[n].Freq = 0;
425 s->dyn_ltree[END_BLOCK].Freq = 1;
450 (tree[n].Freq < tree[m].Freq || \
451 (tree[n].Freq == tree[m].Freq && depth[n] <= depth[m]))
530 f = tree[n].Freq;
565 *(long)tree[m].Freq;
641 if (tree[n].Freq != 0) {
656 tree[node].Freq = 1;
[all …]
Ddeflate.h73 #define Freq fc.freq macro
323 s->dyn_ltree[cc].Freq++; \
332 s->dyn_ltree[_length_code[len]+LITERALS+1].Freq++; \
333 s->dyn_dtree[d_code(dist)].Freq++; \
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DBlockFrequency.h29 BlockFrequency(uint64_t Freq = 0) : Frequency(Freq) { } in Frequency() argument
37 BlockFrequency &operator+=(const BlockFrequency &Freq);
38 const BlockFrequency operator+(const BlockFrequency &Freq) const;
59 raw_ostream &operator<<(raw_ostream &OS, const BlockFrequency &Freq);
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DBlockFrequencyInfo.cpp215 BlockFrequencyInfo::getProfileCountFromFreq(uint64_t Freq) const { in getProfileCountFromFreq()
218 return BFI->getProfileCountFromFreq(*getFunction(), Freq); in getProfileCountFromFreq()
226 void BlockFrequencyInfo::setBlockFreq(const BasicBlock *BB, uint64_t Freq) { in setBlockFreq() argument
228 BFI->setBlockFreq(BB, Freq); in setBlockFreq()
232 const BasicBlock *ReferenceBB, uint64_t Freq, in setBlockFreqAndScale() argument
236 APInt NewFreq(128, Freq); in setBlockFreqAndScale()
250 BFI->setBlockFreq(ReferenceBB, Freq); in setBlockFreqAndScale()
268 printBlockFreq(raw_ostream &OS, const BlockFrequency Freq) const { in printBlockFreq()
269 return BFI ? BFI->printBlockFreq(OS, Freq) : OS; in printBlockFreq()
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/
DBlockFrequencyImpl.h68 void setBlockFreq(BlockT *BB, BlockFrequency Freq) { in setBlockFreq() argument
69 Freqs[BB] = Freq; in setBlockFreq()
70 DEBUG(dbgs() << "Frequency(" << getBlockName(BB) << ") = " << Freq << "\n"); in setBlockFreq()
82 void incBlockFreq(BlockT *BB, BlockFrequency Freq) { in incBlockFreq() argument
83 Freqs[BB] += Freq; in incBlockFreq()
84 DEBUG(dbgs() << "Frequency(" << getBlockName(BB) << ") += " << Freq in incBlockFreq()
94 uint64_t Freq = (Freqs[BB].getFrequency() * D) / N; in divBlockFreq() local
97 if (Freq > UINT32_MAX) in divBlockFreq()
98 Freq = UINT32_MAX; in divBlockFreq()
100 Freqs[BB] = BlockFrequency(Freq); in divBlockFreq()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DBlockFrequencyInfo.h76 Optional<uint64_t> getProfileCountFromFreq(uint64_t Freq) const;
83 void setBlockFreq(const BasicBlock *BB, uint64_t Freq);
88 void setBlockFreqAndScale(const BasicBlock *ReferenceBB, uint64_t Freq,
97 raw_ostream &printBlockFreq(raw_ostream &OS, const BlockFrequency Freq) const;
/external/llvm/lib/ProfileData/
DProfileSummaryBuilder.cpp80 uint32_t Freq = Iter->second; in computeDetailedSummary() local
81 CurrSum += (Count * Freq); in computeDetailedSummary()
82 CountsSeen += Freq; in computeDetailedSummary()

123