Update LLVM version from 15/16 to 17 across K Framework#4859
Closed
F-WRunTime wants to merge 2 commits intodevelopfrom
Closed
Update LLVM version from 15/16 to 17 across K Framework#4859F-WRunTime wants to merge 2 commits intodevelopfrom
F-WRunTime wants to merge 2 commits intodevelopfrom
Conversation
This PR updates the LLVM version from 15/16 to 17 across the entire K Framework repository to align with modern toolchain requirements and improve performance. ##⚠️ **IMPORTANT DEPENDENCY** **This PR requires [llvm-backend PR #1214](runtimeverification/llvm-backend#1214) to be merged first.** The llvm-backend submodule changes are included in this PR, but the final merge should wait until the llvm-backend PR is merged and released to ensure proper dependency alignment. ## Changes Made ### **GitHub Actions Workflows** - **`.github/workflows/release.yml`**: Updated all `llvm: 15/16` → `llvm: 17` - **`.github/workflows/test-pr.yml`**: Updated all `llvm: 15` → `llvm: 17` ### **Debian Package Dependencies** - **`package/debian/kframework/control.jammy`**: - `clang-15` → `clang-17` - `lld-15` → `lld-17` - `llvm-15` → `llvm-17` - **`package/debian/kframework/control.noble`**: - `clang-16` → `clang-17` - `lld-16` → `lld-17` - `llvm-17` (already correct) ### **Installation Scripts** - **`install-build-deps`**: Updated Debian package installation - `clang-15` → `clang-17` - `lld-15` → `lld-17` - `llvm-15-tools` → `llvm-17-tools` ### **macOS Support** - **`package/macos/brew-install-deps`**: `llvm@15` → `llvm@17` - **`macos-envrc`**: Updated environment variables for `llvm@17` ### **Submodule Updates** - **`llvm-backend/src/main/native/llvm-backend`**: Updated to include LLVM 17 changes from [PR #1214](runtimeverification/llvm-backend#1214) ## Testing Strategy - [x] **CI/CD**: GitHub Actions will test with LLVM 17 - [x] **Debian Packages**: Test builds on Ubuntu Jammy (22.04) and Noble (24.04) - [ ] **macOS**: Test Homebrew installation with `llvm@17` - [x] **Submodule**: Verify llvm-backend integration works correctly ## Migration Benefits 1. **Performance**: LLVM 17 includes performance improvements and optimizations 2. **Compatibility**: Better support for modern C++ features and standards 3. **Security**: Latest security patches and bug fixes 4. **Toolchain**: Improved debugging and analysis tools ## Related PRs - **llvm-backend**: [PR #1214](runtimeverification/llvm-backend#1215) - Update LLVM version from 15 to 17 - **haskell-backend**: May need similar updates (to be determined) ## Checklist - [x] Update GitHub Actions workflows - [x] Update Debian package dependencies - [x] Update installation scripts - [x] Update macOS Homebrew configuration - [x] Update llvm-backend submodule - [x] Wait for llvm-backend PR #1214 to merge - [ ] Update `deps/llvm-backend_release` after llvm-backend release - [ ] Final testing and validation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR updates the LLVM version from 15/16 to 17 across the entire K Framework repository to align with modern toolchain requirements and improve performance.
This PR requires llvm-backend PR #1214 to be merged first.
The llvm-backend submodule changes are included in this PR, but the final merge should wait until the llvm-backend PR is merged and released to ensure proper dependency alignment.
Changes Made
GitHub Actions Workflows
.github/workflows/release.yml: Updated allllvm: 15/16→llvm: 17.github/workflows/test-pr.yml: Updated allllvm: 15→llvm: 17Debian Package Dependencies
package/debian/kframework/control.jammy:clang-15→clang-17lld-15→lld-17llvm-15→llvm-17package/debian/kframework/control.noble:clang-16→clang-17lld-16→lld-17llvm-17(already correct)Installation Scripts
install-build-deps: Updated Debian package installationclang-15→clang-17lld-15→lld-17llvm-15-tools→llvm-17-toolsmacOS Support
package/macos/brew-install-deps:llvm@15→llvm@17macos-envrc: Updated environment variables forllvm@17Submodule Updates
llvm-backend/src/main/native/llvm-backend: Updated to include LLVM 17 changes from PR #1214Testing Strategy
llvm@17Migration Benefits
Related PRs
Checklist
deps/llvm-backend_releaseafter llvm-backend release