1 use super::BackendTypes
;
2 use rustc_middle
::mir
::coverage
::*;
3 use rustc_middle
::ty
::Instance
;
5 pub trait CoverageInfoMethods
: BackendTypes
{
6 fn coverageinfo_finalize(&self);
9 pub trait CoverageInfoBuilderMethods
<'tcx
>: BackendTypes
{
10 fn create_pgo_func_name_var(&self, instance
: Instance
<'tcx
>) -> Self::Value
;
12 fn add_counter_region(
14 instance
: Instance
<'tcx
>,
15 function_source_hash
: u64,
16 id
: CounterValueReference
,
20 fn add_counter_expression_region(
22 instance
: Instance
<'tcx
>,
23 id
: InjectedExpressionIndex
,
24 lhs
: ExpressionOperandId
,
26 rhs
: ExpressionOperandId
,
30 fn add_unreachable_region(&mut self, instance
: Instance
<'tcx
>, region
: CodeRegion
);