Skip to content
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

Upgrade LLVM to 15+ #507

Merged
merged 47 commits into from Aug 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
2e467d7
Upgrade to llvm-13
yhara Jul 24, 2023
6010c50
Upgrade to llvm-14
yhara Jul 24, 2023
6a27ac8
Upgrade to llvm-15
yhara Jul 24, 2023
7b4abdc
::Generic -> ::default()
yhara Jul 24, 2023
cc1a180
Use build_direct_call for direct function calls
yhara Jul 25, 2023
573fb45
Remove helper functions
yhara Jul 25, 2023
bb7474f
Remove use of CallableValue
yhara Jul 25, 2023
a252bc1
fix: Add missing &
yhara Jul 26, 2023
1afba5e
Use build_indirect_call for indirect calls
yhara Jul 26, 2023
d480a7c
Add type to gen_const_ref
yhara Jul 27, 2023
2456dfa
Add type to gen_lvar_ref
yhara Jul 27, 2023
e85f7ee
fix type error
yhara Jul 27, 2023
d395476
Add type to gen_lambda_capture_ref
yhara Jul 27, 2023
d31414d
Remove bitcast from LambdaCapture::reassign
yhara Jul 27, 2023
a1c91a8
Move build_vtable_ref to VTableRef
yhara Jul 27, 2023
0b327d2
Fix type error around vtables
yhara Jul 27, 2023
0433e41
Add ty to SkMethodBody::Getter
yhara Jul 28, 2023
121c019
Add type to build_llvm_struct_ref
yhara Jul 28, 2023
756b6d4
Add type to load_class_object
yhara Jul 28, 2023
350a034
Add type to build_llvm_struct_set
yhara Jul 29, 2023
c9ae2d9
fix lifetime errors
yhara Jul 29, 2023
f72fff5
WIP
yhara Jul 29, 2023
a5240d9
Add SkType to SkObj
yhara Aug 3, 2023
8f8a5e4
Add `params` to FunctionOrigin::Method
yhara Aug 3, 2023
566e1f8
fix type of vtable
yhara Aug 3, 2023
977d8a6
fix type of ivar ref
yhara Aug 3, 2023
36752d5
fix index out of bounds error on tyarg ref
yhara Aug 4, 2023
0f0145f
fix ivar not found error
yhara Aug 4, 2023
e2715f3
fix ivar not found error
yhara Aug 4, 2023
58dc3c6
Revert referring sk_types
yhara Aug 7, 2023
5982384
Extract vtable.rs
yhara Aug 7, 2023
ecf10b5
Rename to `of_`
yhara Aug 9, 2023
8832a9a
fix: wrong index
yhara Aug 9, 2023
c79599a
Simplify gen_bitcast
yhara Aug 9, 2023
71e4029
ci: Upgrade to llvm-15
yhara Aug 9, 2023
afd9161
make PR
yhara Aug 10, 2023
106ab49
Revert unintended changes to src/runner.rs
yhara Aug 10, 2023
7c5e8f4
Merge remote-tracking branch 'origin/main' into upgrade-llvm
yhara Aug 10, 2023
87788b3
Merge pull request #506 from shiika-lang/upgrade-llvm
yhara Aug 10, 2023
0dc963e
Remove bitcast after allocate_llvm_obj
yhara Aug 9, 2023
bf6b182
Merge pull request #508 from shiika-lang/upgrade-llvm-cleanup
yhara Aug 12, 2023
ce3e70b
Upgrade to llvm-16
yhara Aug 12, 2023
06467b7
Update docs
yhara Aug 12, 2023
2f00f1e
ci: Use newer ubuntu for llvm-16
yhara Aug 12, 2023
3fe0777
ci: fix ubuntu ver
yhara Aug 12, 2023
c40b90b
Use KyleMayes/install-llvm-action
yhara Aug 12, 2023
bbb961c
Merge pull request #509 from shiika-lang/llvm-16
yhara Aug 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
27 changes: 20 additions & 7 deletions .github/workflows/ci.yml
Expand Up @@ -9,7 +9,7 @@ jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
os: [ubuntu-22.04]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
Expand All @@ -30,23 +30,36 @@ jobs:
- name: Set up the Linux env
run: |
set -eux
sudo apt install -y llvm-12 clang-12 libgc-dev
if: matrix.os == 'ubuntu-latest'
sudo apt install -y libgc-dev

- name: Cache LLVM and Clang
id: cache-llvm
uses: actions/cache@v3
with:
path: |
C:/Program Files/LLVM
./llvm
key: llvm-16.0
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v1
with:
version: "16.0"
cached: ${{ steps.cache-llvm.outputs.cache-hit }}

- name: Output versions
run: |
set -eux
rustc --version
cargo --version
clang-12 --version
clang --version

- name: Build and test
run: |
set -eux
cd lib/skc_rustlib; cargo build; cd ../../
env -- LLC=llc-12 CLANG=clang-12 cargo run -- build-corelib
env -- LLC=llc-12 CLANG=clang-12 cargo test
env -- LLC=llc-12 CLANG=clang-12 bash release_test.sh
env -- cargo run -- build-corelib
env -- cargo test
env -- bash release_test.sh

# Run cargo fmt --all -- --check
format:
Expand Down