[−][src]Trait rustc_codegen_ssa::traits::coverageinfo::CoverageInfoBuilderMethods
Required methods
pub fn create_pgo_func_name_var(&self, instance: Instance<'tcx>) -> Self::Value[src]
pub fn set_function_source_hash(
&mut self,
instance: Instance<'tcx>,
function_source_hash: u64
) -> bool[src]
&mut self,
instance: Instance<'tcx>,
function_source_hash: u64
) -> bool
Returns true if the function source hash was added to the coverage map (even if it had
already been added, for this instance). Returns false only if -Z instrument-coverage is
not enabled (a coverage map is not being generated).
pub fn add_coverage_counter(
&mut self,
instance: Instance<'tcx>,
index: CounterValueReference,
region: CodeRegion
) -> bool[src]
&mut self,
instance: Instance<'tcx>,
index: CounterValueReference,
region: CodeRegion
) -> bool
Returns true if the counter was added to the coverage map; false if -Z instrument-coverage
is not enabled (a coverage map is not being generated).
pub fn add_coverage_counter_expression(
&mut self,
instance: Instance<'tcx>,
id: InjectedExpressionId,
lhs: ExpressionOperandId,
op: Op,
rhs: ExpressionOperandId,
region: Option<CodeRegion>
) -> bool[src]
&mut self,
instance: Instance<'tcx>,
id: InjectedExpressionId,
lhs: ExpressionOperandId,
op: Op,
rhs: ExpressionOperandId,
region: Option<CodeRegion>
) -> bool
Returns true if the expression was added to the coverage map; false if
-Z instrument-coverage is not enabled (a coverage map is not being generated).
pub fn add_coverage_unreachable(
&mut self,
instance: Instance<'tcx>,
region: CodeRegion
) -> bool[src]
&mut self,
instance: Instance<'tcx>,
region: CodeRegion
) -> bool
Returns true if the region was added to the coverage map; false if -Z instrument-coverage
is not enabled (a coverage map is not being generated).