-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reuse LLVMConstInBoundsGEP2 #113523
Reuse LLVMConstInBoundsGEP2 #113523
Conversation
We have had LLVM 14 as our minimum for a bit now.
r? @cuviper (rustbot has picked a reviewer for you, use r? to override) |
This PR changes how LLVM is built. Consider updating src/bootstrap/download-ci-llvm-stamp. |
This binds against an already-present definition, I don't believe bumping the LLVM CI stamp is appropriate, if I understand things correctly? |
@@ -1616,17 +1616,6 @@ extern "C" void LLVMRustSetLinkage(LLVMValueRef V, | |||
LLVMSetLinkage(V, fromRust(RustLinkage)); | |||
} | |||
|
|||
// FIXME: replace with LLVMConstInBoundsGEP2 when bumped minimal version to llvm-14 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At time when i placed this comment i didn't realized that current minimum llvm was 14. Is there easy to find places where it noted?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The easiest thing to see is the PR job that runs on the minimum, currently x86_64-gnu-llvm-14
.
We also mention updates in RELEASES.md, and the actual enforcement is here:
Lines 519 to 533 in fd68a6d
fn check_llvm_version(builder: &Builder<'_>, llvm_config: &Path) { | |
if builder.config.dry_run() { | |
return; | |
} | |
let mut cmd = Command::new(llvm_config); | |
let version = output(cmd.arg("--version")); | |
let mut parts = version.split('.').take(2).filter_map(|s| s.parse::<u32>().ok()); | |
if let (Some(major), Some(_minor)) = (parts.next(), parts.next()) { | |
if major >= 14 { | |
return; | |
} | |
} | |
panic!("\n\nbad LLVM version: {}, need >=14.0\n\n", version) | |
} |
@bors r+
Yeah, the bot is too aggressive, set for anything in |
…s-gep2, r=cuviper Reuse LLVMConstInBoundsGEP2 We have had LLVM 14 as our minimum for a bit now.
…s-gep2, r=cuviper Reuse LLVMConstInBoundsGEP2 We have had LLVM 14 as our minimum for a bit now.
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#113386 (style-guide: Expand example of combinable expressions to include arrays) - rust-lang#113523 (Reuse LLVMConstInBoundsGEP2) - rust-lang#113528 (Dynamically size sigaltstk in rustc) - rust-lang#113543 (Remove `rustc_llvm` from llvm-stamp nags) - rust-lang#113548 (Update books) - rust-lang#113551 (bootstrap: Don't print "Skipping" twice) - rust-lang#113556 (Don't use serde-derive in the rls shim) r? `@ghost` `@rustbot` modify labels: rollup
We have had LLVM 14 as our minimum for a bit now.