Skip to content

Commit 5d5dc4c

Browse files
committed
Updated links to LLVM 11 docs and types
1 parent 1d8c381 commit 5d5dc4c

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ use tracing::debug;
1515

1616
/// Generates and exports the Coverage Map.
1717
///
18-
/// This Coverage Map complies with Coverage Mapping Format version 3 (zero-based encoded as 2),
19-
/// as defined at [LLVM Code Coverage Mapping Format](https://github.com/rust-lang/llvm-project/blob/llvmorg-8.0.0/llvm/docs/CoverageMappingFormat.rst#llvm-code-coverage-mapping-format)
20-
/// and published in Rust's current (July 2020) fork of LLVM. This version is supported by the
18+
/// This Coverage Map complies with Coverage Mapping Format version 4 (zero-based encoded as 3),
19+
/// as defined at [LLVM Code Coverage Mapping Format](https://github.com/rust-lang/llvm-project/blob/rustc/11.0-2020-10-12/llvm/docs/CoverageMappingFormat.rst#llvm-code-coverage-mapping-format)
20+
/// and published in Rust's current (November 2020) fork of LLVM. This version is supported by the
2121
/// LLVM coverage tools (`llvm-profdata` and `llvm-cov`) bundled with Rust's fork of LLVM.
2222
///
2323
/// Consequently, Rust's bundled version of Clang also generates Coverage Maps compliant with

compiler/rustc_codegen_llvm/src/llvm/ffi.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ pub type InlineAsmDiagHandler = unsafe extern "C" fn(&SMDiagnostic, *const c_voi
642642
pub mod coverageinfo {
643643
use super::coverage_map;
644644

645-
/// Aligns with [llvm::coverage::CounterMappingRegion::RegionKind](https://github.com/rust-lang/llvm-project/blob/rustc/10.0-2020-05-05/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h#L205-L221)
645+
/// Aligns with [llvm::coverage::CounterMappingRegion::RegionKind](https://github.com/rust-lang/llvm-project/blob/rustc/11.0-2020-10-12/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h#L206-L222)
646646
#[derive(Copy, Clone, Debug)]
647647
#[repr(C)]
648648
pub enum RegionKind {
@@ -665,13 +665,13 @@ pub mod coverageinfo {
665665

666666
/// This struct provides LLVM's representation of a "CoverageMappingRegion", encoded into the
667667
/// coverage map, in accordance with the
668-
/// [LLVM Code Coverage Mapping Format](https://github.com/rust-lang/llvm-project/blob/llvmorg-8.0.0/llvm/docs/CoverageMappingFormat.rst#llvm-code-coverage-mapping-format).
668+
/// [LLVM Code Coverage Mapping Format](https://github.com/rust-lang/llvm-project/blob/rustc/11.0-2020-10-12/llvm/docs/CoverageMappingFormat.rst#llvm-code-coverage-mapping-format).
669669
/// The struct composes fields representing the `Counter` type and value(s) (injected counter
670670
/// ID, or expression type and operands), the source file (an indirect index into a "filenames
671671
/// array", encoded separately), and source location (start and end positions of the represented
672672
/// code region).
673673
///
674-
/// Aligns with [llvm::coverage::CounterMappingRegion](https://github.com/rust-lang/llvm-project/blob/rustc/10.0-2020-05-05/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h#L223-L226)
674+
/// Aligns with [llvm::coverage::CounterMappingRegion](https://github.com/rust-lang/llvm-project/blob/rustc/11.0-2020-10-12/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h#L224-L227)
675675
/// Important: The Rust struct layout (order and types of fields) must match its C++
676676
/// counterpart.
677677
#[derive(Copy, Clone, Debug)]

compiler/rustc_codegen_ssa/src/coverageinfo/ffi.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use rustc_middle::mir::coverage::{CounterValueReference, MappedExpressionIndex};
22

3-
/// Aligns with [llvm::coverage::Counter::CounterKind](https://github.com/rust-lang/llvm-project/blob/rustc/10.0-2020-05-05/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h#L91)
3+
/// Aligns with [llvm::coverage::Counter::CounterKind](https://github.com/rust-lang/llvm-project/blob/rustc/11.0-2020-10-12/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h#L206-L222)
44
#[derive(Copy, Clone, Debug)]
55
#[repr(C)]
66
pub enum CounterKind {
@@ -17,7 +17,7 @@ pub enum CounterKind {
1717
/// `instrprof.increment()`)
1818
/// * For `CounterKind::Expression`, `id` is the index into the coverage map's array of
1919
/// counter expressions.
20-
/// Aligns with [llvm::coverage::Counter](https://github.com/rust-lang/llvm-project/blob/rustc/10.0-2020-05-05/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h#L98-L99)
20+
/// Aligns with [llvm::coverage::Counter](https://github.com/rust-lang/llvm-project/blob/rustc/11.0-2020-10-12/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h#L99-L100)
2121
/// Important: The Rust struct layout (order and types of fields) must match its C++ counterpart.
2222
#[derive(Copy, Clone, Debug)]
2323
#[repr(C)]
@@ -41,15 +41,15 @@ impl Counter {
4141
}
4242
}
4343

44-
/// Aligns with [llvm::coverage::CounterExpression::ExprKind](https://github.com/rust-lang/llvm-project/blob/rustc/10.0-2020-05-05/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h#L146)
44+
/// Aligns with [llvm::coverage::CounterExpression::ExprKind](https://github.com/rust-lang/llvm-project/blob/rustc/11.0-2020-10-12/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h#L147)
4545
#[derive(Copy, Clone, Debug)]
4646
#[repr(C)]
4747
pub enum ExprKind {
4848
Subtract = 0,
4949
Add = 1,
5050
}
5151

52-
/// Aligns with [llvm::coverage::CounterExpression](https://github.com/rust-lang/llvm-project/blob/rustc/10.0-2020-05-05/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h#L147-L148)
52+
/// Aligns with [llvm::coverage::CounterExpression](https://github.com/rust-lang/llvm-project/blob/rustc/11.0-2020-10-12/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h#L148-L149)
5353
/// Important: The Rust struct layout (order and types of fields) must match its C++
5454
/// counterpart.
5555
#[derive(Copy, Clone, Debug)]

compiler/rustc_middle/src/mir/coverage.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ rustc_index::newtype_index! {
2121
impl ExpressionOperandId {
2222
/// An expression operand for a "zero counter", as described in the following references:
2323
///
24-
/// * <https://github.com/rust-lang/llvm-project/blob/llvmorg-8.0.0/llvm/docs/CoverageMappingFormat.rst#counter>
25-
/// * <https://github.com/rust-lang/llvm-project/blob/llvmorg-8.0.0/llvm/docs/CoverageMappingFormat.rst#tag>
26-
/// * <https://github.com/rust-lang/llvm-project/blob/llvmorg-8.0.0/llvm/docs/CoverageMappingFormat.rst#counter-expressions>
24+
/// * https://github.com/rust-lang/llvm-project/blob/rustc/11.0-2020-10-12/llvm/docs/CoverageMappingFormat.rst#counter
25+
/// * https://github.com/rust-lang/llvm-project/blob/rustc/11.0-2020-10-12/llvm/docs/CoverageMappingFormat.rst#tag
26+
/// * https://github.com/rust-lang/llvm-project/blob/rustc/11.0-2020-10-12/llvm/docs/CoverageMappingFormat.rst#counter-expressions
2727
///
2828
/// This operand can be used to count two or more separate code regions with a single counter,
2929
/// if they run sequentially with no branches, by injecting the `Counter` in a `BasicBlock` for

0 commit comments

Comments
 (0)