@@ -1957,15 +1957,23 @@ extern "rust-intrinsic" {
1957
1957
/// Internal placeholder for injecting code coverage counters when the "instrument-coverage"
1958
1958
/// option is enabled. The placeholder is replaced with `llvm.instrprof.increment` during code
1959
1959
/// generation.
1960
+ #[ cfg( not( bootstrap) ) ]
1960
1961
#[ lang = "count_code_region" ]
1961
- pub fn count_code_region ( index : u32 , start_byte_pos : u32 , end_byte_pos : u32 ) ;
1962
+ pub fn count_code_region (
1963
+ function_source_hash : u64 ,
1964
+ index : u32 ,
1965
+ start_byte_pos : u32 ,
1966
+ end_byte_pos : u32 ,
1967
+ ) ;
1962
1968
1963
1969
/// Internal marker for code coverage expressions, injected into the MIR when the
1964
1970
/// "instrument-coverage" option is enabled. This intrinsic is not converted into a
1965
1971
/// backend intrinsic call, but its arguments are extracted during the production of a
1966
1972
/// "coverage map", which is injected into the generated code, as additional data.
1967
1973
/// This marker identifies a code region and two other counters or counter expressions
1968
1974
/// whose sum is the number of times the code region was executed.
1975
+ #[ cfg( not( bootstrap) ) ]
1976
+ #[ lang = "coverage_counter_add" ]
1969
1977
pub fn coverage_counter_add (
1970
1978
index : u32 ,
1971
1979
left_index : u32 ,
@@ -1977,6 +1985,8 @@ extern "rust-intrinsic" {
1977
1985
/// This marker identifies a code region and two other counters or counter expressions
1978
1986
/// whose difference is the number of times the code region was executed.
1979
1987
/// (See `coverage_counter_add` for more information.)
1988
+ #[ cfg( not( bootstrap) ) ]
1989
+ #[ lang = "coverage_counter_subtract" ]
1980
1990
pub fn coverage_counter_subtract (
1981
1991
index : u32 ,
1982
1992
left_index : u32 ,
0 commit comments