Skip to content

Commit

Permalink
Auto merge of #127513 - nikic:llvm-19, r=<try>
Browse files Browse the repository at this point in the history
Update to LLVM 19

r? `@ghost`
  • Loading branch information
bors committed Jul 9, 2024
2 parents 5be2ec7 + a23e9a5 commit d009d2d
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
shallow = true
[submodule "src/llvm-project"]
path = src/llvm-project
url = https:/rust-lang/llvm-project.git
branch = rustc/18.1-2024-05-19
url = https:/nikic/llvm-project.git
branch = rust-llvm-19
shallow = true
[submodule "src/doc/embedded-book"]
path = src/doc/embedded-book
Expand Down
4 changes: 2 additions & 2 deletions compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1562,11 +1562,11 @@ LLVMRustGetInstrProfMCDCTVBitmapUpdateIntrinsic(LLVMModuleRef M) {

extern "C" LLVMValueRef
LLVMRustGetInstrProfMCDCCondBitmapIntrinsic(LLVMModuleRef M) {
#if LLVM_VERSION_GE(18, 0)
#if LLVM_VERSION_GE(18, 0) && LLVM_VERSION_LT(19, 0)
return wrap(llvm::Intrinsic::getDeclaration(
unwrap(M), llvm::Intrinsic::instrprof_mcdc_condbitmap_update));
#else
report_fatal_error("LLVM 18.0 is required for mcdc intrinsic functions");
report_fatal_error("The instrprof_mcdc_condbitmap_update only exists in LLVM 18");
#endif
}

Expand Down
2 changes: 1 addition & 1 deletion src/llvm-project
1 change: 1 addition & 0 deletions tests/codegen/vec-in-place.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//@ ignore-debug: FIXME: checks for call detect scoped noalias metadata
//@ compile-flags: -O -Z merge-functions=disabled
//@ ignore-llvm-version: 19-99
#![crate_type = "lib"]

// Ensure that trivial casts of vec elements are O(1)
Expand Down
1 change: 1 addition & 0 deletions tests/coverage/mcdc/condition-limit.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#![feature(coverage_attribute)]
//@ edition: 2021
//@ min-llvm-version: 18
//@ ignore-llvm-version: 19-99
//@ compile-flags: -Zcoverage-options=mcdc
//@ llvm-cov-flags: --show-branches=count --show-mcdc

Expand Down
1 change: 1 addition & 0 deletions tests/coverage/mcdc_if.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#![feature(coverage_attribute)]
//@ edition: 2021
//@ min-llvm-version: 18
//@ ignore-llvm-version: 19-99
//@ compile-flags: -Zcoverage-options=mcdc
//@ llvm-cov-flags: --show-mcdc

Expand Down
1 change: 1 addition & 0 deletions tests/coverage/mcdc_nested_if.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#![feature(coverage_attribute)]
//@ edition: 2021
//@ min-llvm-version: 18
//@ ignore-llvm-version: 19-99
//@ compile-flags: -Zcoverage-options=mcdc
//@ llvm-cov-flags: --show-mcdc

Expand Down
1 change: 1 addition & 0 deletions tests/coverage/mcdc_non_control_flow.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#![feature(coverage_attribute)]
//@ edition: 2021
//@ min-llvm-version: 18
//@ ignore-llvm-version: 19-99
//@ compile-flags: -Zcoverage-options=mcdc
//@ llvm-cov-flags: --show-mcdc

Expand Down

0 comments on commit d009d2d

Please sign in to comment.