[−][src]Trait rustc_codegen_ssa::traits::coverageinfo::CoverageInfoBuilderMethods

pub trait CoverageInfoBuilderMethods<'tcx>: BackendTypes {
    pub fn create_pgo_func_name_var(
        &self,
        instance: Instance<'tcx>
    ) -> Self::Value;
pub fn set_function_source_hash(
        &mut self,
        instance: Instance<'tcx>,
        function_source_hash: u64
    ) -> bool;
pub fn add_coverage_counter(
        &mut self,
        instance: Instance<'tcx>,
        index: CounterValueReference,
        region: CodeRegion
    ) -> bool;
pub fn add_coverage_counter_expression(
        &mut self,
        instance: Instance<'tcx>,
        id: InjectedExpressionId,
        lhs: ExpressionOperandId,
        op: Op,
        rhs: ExpressionOperandId,
        region: Option<CodeRegion>
    ) -> bool;
pub fn add_coverage_unreachable(
        &mut self,
        instance: Instance<'tcx>,
        region: CodeRegion
    ) -> bool; }

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]

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]

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]

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]

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).

Loading content...

Implementors

Loading content...