Home
last modified time | relevance | path

Searched refs:BlockWeights (Results 1 – 4 of 4) sorted by relevance

/src/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DSampleProfileLoaderBaseImpl.h249 BlockWeightMap &BlockWeights, EdgeWeightMap &EdgeWeights);
269 BlockWeightMap BlockWeights;
338 BlockWeights.clear();
383 const auto &I = BlockWeights.find(BB);
384 uint64_t W = (I == BlockWeights.end() ? 0 : I->second);
547 BlockWeights[&BB] = Weight.get();
608 uint64_t Weight = BlockWeights[EC];
627 Weight = std::max(Weight, BlockWeights[BB2]);
632 BlockWeights[EC] = Samples->getHeadSamples() + 1;
634 BlockWeights[EC] = Weight;
[all …]
H A DSampleProfileInference.h135 void apply(BlockWeightMap &BlockWeights, EdgeWeightMap &EdgeWeights);
163 void SampleProfileInference<BT>::apply(BlockWeightMap &BlockWeights, in apply() argument
194 BlockWeights.clear(); in apply()
201 BlockWeights[BB] = It->second; in apply()
219 BlockWeights[BB] = Func.Blocks[BlockIndex[BB]].Flow; in apply()
228 for (auto &I : BlockWeights) { in apply()
/src/contrib/llvm-project/llvm/lib/CodeGen/
H A DMIRSampleProfile.cpp210 uint64_t BBWeight = BlockWeights[EC]; in setBranchProbs()
/src/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DSampleProfile.cpp1621 if (BlockWeights[BB]) { in generateMDProfMetadata()
1667 setBranchWeights(I, {static_cast<uint32_t>(BlockWeights[BB])}, in generateMDProfMetadata()