Home
last modified time | relevance | path

Searched refs:BlockFrequency (Results 1 – 25 of 88) sorted by relevance

1234

/external/llvm-project/llvm/lib/Support/
DBlockFrequency.cpp18 BlockFrequency &BlockFrequency::operator*=(BranchProbability Prob) { in operator *=()
23 BlockFrequency BlockFrequency::operator*(BranchProbability Prob) const { in operator *()
24 BlockFrequency Freq(Frequency); in operator *()
29 BlockFrequency &BlockFrequency::operator/=(BranchProbability Prob) { in operator /=()
34 BlockFrequency BlockFrequency::operator/(BranchProbability Prob) const { in operator /()
35 BlockFrequency Freq(Frequency); in operator /()
40 BlockFrequency &BlockFrequency::operator+=(BlockFrequency Freq) { in operator +=()
51 BlockFrequency BlockFrequency::operator+(BlockFrequency Freq) const { in operator +()
52 BlockFrequency NewFreq(Frequency); in operator +()
57 BlockFrequency &BlockFrequency::operator-=(BlockFrequency Freq) { in operator -=()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DBlockFrequency.cpp18 BlockFrequency &BlockFrequency::operator*=(BranchProbability Prob) { in operator *=()
23 BlockFrequency BlockFrequency::operator*(BranchProbability Prob) const { in operator *()
24 BlockFrequency Freq(Frequency); in operator *()
29 BlockFrequency &BlockFrequency::operator/=(BranchProbability Prob) { in operator /=()
34 BlockFrequency BlockFrequency::operator/(BranchProbability Prob) const { in operator /()
35 BlockFrequency Freq(Frequency); in operator /()
40 BlockFrequency &BlockFrequency::operator+=(BlockFrequency Freq) { in operator +=()
51 BlockFrequency BlockFrequency::operator+(BlockFrequency Freq) const { in operator +()
52 BlockFrequency NewFreq(Frequency); in operator +()
57 BlockFrequency &BlockFrequency::operator-=(BlockFrequency Freq) { in operator -=()
[all …]
/external/llvm/lib/Support/
DBlockFrequency.cpp20 BlockFrequency &BlockFrequency::operator*=(BranchProbability Prob) { in operator *=()
25 BlockFrequency BlockFrequency::operator*(BranchProbability Prob) const { in operator *()
26 BlockFrequency Freq(Frequency); in operator *()
31 BlockFrequency &BlockFrequency::operator/=(BranchProbability Prob) { in operator /=()
36 BlockFrequency BlockFrequency::operator/(BranchProbability Prob) const { in operator /()
37 BlockFrequency Freq(Frequency); in operator /()
42 BlockFrequency &BlockFrequency::operator+=(BlockFrequency Freq) { in operator +=()
53 BlockFrequency BlockFrequency::operator+(BlockFrequency Freq) const { in operator +()
54 BlockFrequency NewFreq(Frequency); in operator +()
59 BlockFrequency &BlockFrequency::operator-=(BlockFrequency Freq) { in operator -=()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DBlockFrequency.h24 class BlockFrequency {
28 BlockFrequency(uint64_t Freq = 0) : Frequency(Freq) { } in Frequency()
39 BlockFrequency &operator*=(BranchProbability Prob);
40 BlockFrequency operator*(BranchProbability Prob) const;
44 BlockFrequency &operator/=(BranchProbability Prob);
45 BlockFrequency operator/(BranchProbability Prob) const;
48 BlockFrequency &operator+=(BlockFrequency Freq);
49 BlockFrequency operator+(BlockFrequency Freq) const;
52 BlockFrequency &operator-=(BlockFrequency Freq);
53 BlockFrequency operator-(BlockFrequency Freq) const;
[all …]
/external/llvm-project/llvm/include/llvm/Support/
DBlockFrequency.h24 class BlockFrequency {
28 BlockFrequency(uint64_t Freq = 0) : Frequency(Freq) { } in Frequency()
39 BlockFrequency &operator*=(BranchProbability Prob);
40 BlockFrequency operator*(BranchProbability Prob) const;
44 BlockFrequency &operator/=(BranchProbability Prob);
45 BlockFrequency operator/(BranchProbability Prob) const;
48 BlockFrequency &operator+=(BlockFrequency Freq);
49 BlockFrequency operator+(BlockFrequency Freq) const;
52 BlockFrequency &operator-=(BlockFrequency Freq);
53 BlockFrequency operator-(BlockFrequency Freq) const;
[all …]
/external/llvm/include/llvm/Support/
DBlockFrequency.h25 class BlockFrequency {
29 BlockFrequency(uint64_t Freq = 0) : Frequency(Freq) { } in Frequency()
40 BlockFrequency &operator*=(BranchProbability Prob);
41 BlockFrequency operator*(BranchProbability Prob) const;
45 BlockFrequency &operator/=(BranchProbability Prob);
46 BlockFrequency operator/(BranchProbability Prob) const;
49 BlockFrequency &operator+=(BlockFrequency Freq);
50 BlockFrequency operator+(BlockFrequency Freq) const;
53 BlockFrequency &operator-=(BlockFrequency Freq);
54 BlockFrequency operator-(BlockFrequency Freq) const;
[all …]
/external/llvm/unittests/Support/
DBlockFrequencyTest.cpp21 BlockFrequency Freq(1); in TEST()
26 Freq = BlockFrequency(1); in TEST()
32 BlockFrequency Freq(1); in TEST()
37 Freq = BlockFrequency(1); in TEST()
43 BlockFrequency Freq(3); in TEST()
48 Freq = BlockFrequency(3); in TEST()
54 BlockFrequency Freq(UINT64_MAX); in TEST()
59 Freq = BlockFrequency(UINT64_MAX); in TEST()
67 BlockFrequency Freq(Big); in TEST()
72 Freq = BlockFrequency(Big); in TEST()
[all …]
/external/llvm-project/llvm/unittests/Support/
DBlockFrequencyTest.cpp20 BlockFrequency Freq(1); in TEST()
25 Freq = BlockFrequency(1); in TEST()
31 BlockFrequency Freq(1); in TEST()
36 Freq = BlockFrequency(1); in TEST()
42 BlockFrequency Freq(3); in TEST()
47 Freq = BlockFrequency(3); in TEST()
53 BlockFrequency Freq(UINT64_MAX); in TEST()
58 Freq = BlockFrequency(UINT64_MAX); in TEST()
66 BlockFrequency Freq(Big); in TEST()
71 Freq = BlockFrequency(Big); in TEST()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DSpillPlacement.cpp81 BlockFrequency BiasN;
84 BlockFrequency BiasP;
91 using LinkVector = SmallVector<std::pair<BlockFrequency, unsigned>, 4>;
98 BlockFrequency SumLinkWeights;
116 void clear(const BlockFrequency &Threshold) { in clear()
123 void addLink(unsigned b, BlockFrequency w) { in addLink()
138 void addBias(BlockFrequency freq, BorderConstraint direction) { in addBias()
149 BiasN = BlockFrequency::getMaxFrequency(); in addBias()
156 bool update(const Node nodes[], const BlockFrequency &Threshold) { in update()
158 BlockFrequency SumN = BiasN; in update()
[all …]
DMachineBlockPlacement.cpp330 BlockFrequency Weight;
464 BlockFrequency TopFallThroughFreq(const MachineBasicBlock *Top,
466 BlockFrequency FallThroughGains(const MachineBasicBlock *NewTop,
476 BlockFrequency &ExitFreq);
481 BlockFrequency ExitFreq, const BlockFilterSet &LoopBlockSet);
731 static bool greaterWithBias(BlockFrequency A, BlockFrequency B, in greaterWithBias()
734 BlockFrequency Gain = A - B; in greaterWithBias()
778 BlockFrequency P = BBFreq * PProb; in isProfitableToTailDup()
779 BlockFrequency Qout = BBFreq * QProb; in isProfitableToTailDup()
800 auto SuccBestPred = BlockFrequency(0); in isProfitableToTailDup()
[all …]
DSpillPlacement.h63 SmallVector<BlockFrequency, 8> BlockFrequencies;
67 BlockFrequency Threshold;
152 BlockFrequency getBlockFrequency(unsigned Number) const { in getBlockFrequency()
162 void setThreshold(const BlockFrequency &Entry);
DBranchFolding.h142 BlockFrequency getBlockFreq(const MachineBasicBlock *MBB) const;
143 void setBlockFreq(const MachineBasicBlock *MBB, BlockFrequency F);
147 const BlockFrequency Freq) const;
154 DenseMap<const MachineBasicBlock *, BlockFrequency> MergedBBFreq;
/external/llvm-project/llvm/lib/CodeGen/
DSpillPlacement.cpp77 BlockFrequency BiasN;
80 BlockFrequency BiasP;
87 using LinkVector = SmallVector<std::pair<BlockFrequency, unsigned>, 4>;
94 BlockFrequency SumLinkWeights;
112 void clear(const BlockFrequency &Threshold) { in clear()
119 void addLink(unsigned b, BlockFrequency w) { in addLink()
134 void addBias(BlockFrequency freq, BorderConstraint direction) { in addBias()
145 BiasN = BlockFrequency::getMaxFrequency(); in addBias()
152 bool update(const Node nodes[], const BlockFrequency &Threshold) { in update()
154 BlockFrequency SumN = BiasN; in update()
[all …]
DMachineBlockPlacement.cpp338 BlockFrequency Weight;
386 BlockFrequency DupThreshold;
419 BlockFrequency getBlockCountOrFrequency(const MachineBasicBlock *BB) { in getBlockCountOrFrequency()
431 BlockFrequency scaleThreshold(MachineBasicBlock *BB);
497 BlockFrequency TopFallThroughFreq(const MachineBasicBlock *Top,
499 BlockFrequency FallThroughGains(const MachineBasicBlock *NewTop,
509 BlockFrequency &ExitFreq);
514 BlockFrequency ExitFreq, const BlockFilterSet &LoopBlockSet);
764 static bool greaterWithBias(BlockFrequency A, BlockFrequency B, in greaterWithBias()
767 BlockFrequency Gain = A - B; in greaterWithBias()
[all …]
DMachineSizeOpts.cpp38 bool isColdBlock(BlockFrequency BlockFreq, in isColdBlock()
55 BlockFrequency BlockFreq, in isHotBlockNthPercentile()
71 BlockFrequency BlockFreq, in isColdBlockNthPercentile()
149 static bool isColdBlock(BlockFrequency BlockFreq, in isColdBlock()
162 BlockFrequency BlockFreq, in isHotBlockNthPercentile()
174 static bool isColdBlockNthPercentile(int CutOff, BlockFrequency BlockFreq, in isColdBlockNthPercentile()
207 BlockFrequency BlockFreq = MBFIW->getBlockFreq(MBB); in shouldOptimizeForSize()
DSpillPlacement.h63 SmallVector<BlockFrequency, 8> BlockFrequencies;
67 BlockFrequency Threshold;
152 BlockFrequency getBlockFrequency(unsigned Number) const { in getBlockFrequency()
162 void setThreshold(const BlockFrequency &Entry);
DMBFIWrapper.cpp19 BlockFrequency MBFIWrapper::getBlockFreq(const MachineBasicBlock *MBB) const { in getBlockFreq()
29 BlockFrequency F) { in setBlockFreq()
51 const BlockFrequency Freq) const { in printBlockFreq()
/external/llvm/lib/CodeGen/
DSpillPlacement.cpp74 BlockFrequency BiasN;
76 BlockFrequency BiasP;
83 typedef SmallVector<std::pair<BlockFrequency, unsigned>, 4> LinkVector;
90 BlockFrequency SumLinkWeights;
108 void clear(const BlockFrequency &Threshold) { in clear()
115 void addLink(unsigned b, BlockFrequency w) { in addLink()
130 void addBias(BlockFrequency freq, BorderConstraint direction) { in addBias()
141 BiasN = BlockFrequency::getMaxFrequency(); in addBias()
148 bool update(const Node nodes[], const BlockFrequency &Threshold) { in update()
150 BlockFrequency SumN = BiasN; in update()
[all …]
DSpillPlacement.h64 SmallVector<BlockFrequency, 8> BlockFrequencies;
68 BlockFrequency Threshold;
153 BlockFrequency getBlockFrequency(unsigned Number) const { in getBlockFrequency()
163 void setThreshold(const BlockFrequency &Entry);
DMachineBlockPlacement.cpp621 BlockFrequency CandidateEdgeFreq = MBFI->getBlockFreq(BB) * RealSuccProb; in hasBetterLayoutPredecessor()
642 BlockFrequency PredEdgeFreq = in hasBetterLayoutPredecessor()
740 BlockFrequency BestFreq; in selectBestCandidateBlock()
750 BlockFrequency CandidateFreq = MBFI->getBlockFreq(MBB); in selectBestCandidateBlock()
914 BlockFrequency BestPredFreq; in findBestLoopTop()
925 BlockFrequency PredFreq = MBFI->getBlockFreq(Pred); in findBestLoopTop()
970 BlockFrequency BestExitEdgeFreq; in findBestLoopExit()
992 BlockFrequency OldBestExitEdgeFreq = BestExitEdgeFreq; in findBestLoopExit()
1022 BlockFrequency ExitEdgeFreq = MBFI->getBlockFreq(MBB) * SuccProb; in findBestLoopExit()
1125 BlockFrequency SmallestRotationCost = BlockFrequency::getMaxFrequency(); in rotateLoopWithProfile()
[all …]
DBranchFolding.h114 BlockFrequency getBlockFreq(const MachineBasicBlock *MBB) const;
115 void setBlockFreq(const MachineBasicBlock *MBB, BlockFrequency F);
119 const BlockFrequency Freq) const;
123 DenseMap<const MachineBasicBlock *, BlockFrequency> MergedBBFreq;
DRegAllocGreedy.cpp308 BlockFrequency CSRCost;
349 BlockFrequency calcSpillCost();
350 bool addSplitConstraints(InterferenceCache::Cursor, BlockFrequency&);
353 BlockFrequency calcGlobalSplitCost(GlobalSplitCandidate&);
375 BlockFrequency &BestCost,
406 BlockFrequency Freq;
412 HintInfo(BlockFrequency Freq, unsigned Reg, unsigned PhysReg) in HintInfo()
416 BlockFrequency getBrokenHintFreq(const HintsInfo &, unsigned);
935 BlockFrequency &Cost) { in addSplitConstraints()
940 BlockFrequency StaticCost = 0; in addSplitConstraints()
[all …]
/external/llvm-project/llvm/include/llvm/CodeGen/
DMBFIWrapper.h29 BlockFrequency getBlockFreq(const MachineBasicBlock *MBB) const;
30 void setBlockFreq(const MachineBasicBlock *MBB, BlockFrequency F);
36 const BlockFrequency Freq) const;
43 DenseMap<const MachineBasicBlock *, BlockFrequency> MergedBBFreq;
/external/llvm/include/llvm/CodeGen/
DMachineBlockFrequencyInfo.h52 BlockFrequency getBlockFreq(const MachineBasicBlock *MBB) const;
62 raw_ostream &printBlockFreq(raw_ostream &OS, const BlockFrequency Freq) const;
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DMachineBlockFrequencyInfo.h62 BlockFrequency getBlockFreq(const MachineBasicBlock *MBB) const;
75 raw_ostream &printBlockFreq(raw_ostream &OS, const BlockFrequency Freq) const;

1234