13#ifndef LLVM_ANALYSIS_SYNTHETICCOUNTSUTILS_H
14#define LLVM_ANALYSIS_SYNTHETICCOUNTSUTILS_H
34 using SccTy = std::vector<NodeRef>;
This file defines the little GraphTraits<X> template class that should be specialized by classes that...
Simple representation of a scaled number.
Class with methods to propagate synthetic entry counts.
ScaledNumber< uint64_t > Scaled64
typename CGT::NodeRef NodeRef
GraphTraits< CallGraphType > CGT
function_ref< std::optional< Scaled64 >(NodeRef, EdgeRef)> GetProfCountTy
std::vector< NodeRef > SccTy
typename CGT::EdgeRef EdgeRef
function_ref< void(NodeRef, Scaled64)> AddCountTy
static void propagate(const CallGraphType &CG, GetProfCountTy GetProfCount, AddCountTy AddCount)
Propgate synthetic entry counts on a callgraph CG.
An efficient, type-erasing, non-owning reference to a callable.
This is an optimization pass for GlobalISel generic memory operations.
typename CallGraphType::UnknownGraphTypeError NodeRef