You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update LLVM version from 15/16 to 17 across K Framework (#4854)
## 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.
## ⚠️ **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
0 commit comments