Skip to content

Commit e385137

Browse files
authored
Merge pull request aya-rs#20 from vadorovsky/llvm-15
Bump llvm-sys and aya-rustc-llvm-proxy
2 parents 19280c5 + c022074 commit e385137

File tree

6 files changed

+17
-18
lines changed

6 files changed

+17
-18
lines changed

.github/workflows/build-test.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
rust:
21-
- "1.58.1"
22-
- "1.57"
21+
- "1.63.0"
2322
- "beta"
2423
- "nightly"
25-
llvm: ["14", "rustc"]
24+
llvm: ["15", "rustc"]
2625
name: "rustc: ${{ matrix.rust }}, llvm: ${{ matrix.llvm }}"
2726

2827
env:
@@ -62,7 +61,7 @@ jobs:
6261
rm -rf build
6362
echo -e 'profile = "user"\nchangelog-seen = 2\n\n[llvm]\ndownload-ci-llvm = true' > config.toml
6463
./x.py clean
65-
./x.py build -i --stage 1 --host x86_64-unknown-linux-gnu --target bpfel-unknown-none --target x86_64-unknown-linux-gnu library/std src/tools/rustdoc
64+
./x.py build -i --stage 1 --host x86_64-unknown-linux-gnu --target bpfel-unknown-none --target x86_64-unknown-linux-gnu library src/tools/rustdoc
6665
rustup toolchain link stage1 build/x86_64-unknown-linux-gnu/stage1
6766
popd
6867
rustup override set stage1

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ libc = "0.2"
2121
thiserror = { version = "1.0", optional = true }
2222
ar = { version = "0.8", optional = true }
2323
log = { version = "0.4", optional = true }
24-
llvm-sys = { version = "140", optional = true }
25-
aya-rustc-llvm-proxy = { version = "0.4.0", optional = true }
24+
llvm-sys = { version = "150", optional = true }
25+
aya-rustc-llvm-proxy = { version = "0.5.0", optional = true }
2626

2727
[dev-dependencies]
2828
compiletest_rs = { version = "0.5", path = "third-party/compiletest-rs" }

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ files with embedded bitcode (.o), optionally stored inside ar archives (.a).
1414

1515
## Installation
1616

17-
The linker requires LLVM 14. It can use the same LLVM used by the rust compiler,
17+
The linker requires LLVM 15. It can use the same LLVM used by the rust compiler,
1818
or it can use an external LLVM installation.
1919

2020
If your target is `aarch64-unknown-linux-gnu` (i.e. Linux on Apple Silicon) you
@@ -30,14 +30,14 @@ cargo install bpf-linker
3030

3131
### Using external LLVM
3232

33-
On Debian based distributions you need to install the `llvm-14-dev` and
34-
`libclang-14-dev` packages. If your distro doesn't have them you can get them
33+
On Debian based distributions you need to install the `llvm-15-dev` and
34+
`libclang-15-dev` packages. If your distro doesn't have them you can get them
3535
from the official LLVM repo at https://apt.llvm.org.
3636

3737
On rpm based distribution you need the `llvm-devel` and `clang-devel` packages.
3838
If your distro doesn't have them you can get them from Fedora Rawhide.
3939

40-
Once you have installed LLVM 14 you can install the linker running:
40+
Once you have installed LLVM 15 you can install the linker running:
4141

4242
```sh
4343
cargo install --git https://github.com/aya-rs/bpf-linker --tag v0.9.4 --no-default-features --features system-llvm -- bpf-linker

tests/assembly/ignore-inline-never.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ extern crate loop_panic_handler;
1313

1414
#[inline(never)]
1515
fn actually_inlined(a: u64) -> u64 {
16-
a + 1
16+
a + 42
1717
}
1818

1919
#[no_mangle]
2020
#[link_section = "uprobe/fun"]
2121
pub extern "C" fn fun(a: u64) -> u64 {
2222
// CHECK-LABEL: fun:
2323
actually_inlined(a)
24-
// CHECK-NEXT: r0 = r1
25-
// CHECK-NEXT: r0 += 1
24+
// CHECK-NEXT: r{{[0-9]}} = r{{[0-9]}}
25+
// CHECK-NEXT: r{{[0-9]}} += 42
2626
}

tests/assembly/unroll-loop.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
// ignore-test
12
// assembly-output: bpf-linker
23
// compile-flags: --crate-type cdylib -C link-arg=--unroll-loops -C link-arg=-O3
34
#![no_std]
4-
55
// Recent kernels starting from 5.2 support some bounded loops. Older kernels need all loops to be
66
// unrolled. The linker provides the --unroll-loops flag to aggressively try and unroll.
77

0 commit comments

Comments
 (0)