You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
aya/xtask/public-api
Tamir Duberstein e9a099f332 bpf: Remove builtin global functions
This commit removes memset and memcpy, relying instead on
implementations provided by std/compiler-builtins.

This commit adds `#![no_builtins]` to all the BPF programs written in
Rust, and the same should be propagated to aya-template and all examples
in the book and elsewhere before this commit is merged.

It turns out that without the `#![no_builtins]` annotation rustc
generates LLVM IR that calls LLVM intrinsics rather than libcalls. These
may end up as libcalls after lowering, but not before emitting errors in
BPF lowering[0].

This works thanks to https://github.com/rust-lang/rust/pull/113716 which
causes `#![no_builtins]` to behave similarly to `-fno-builtin` in clang,
which was added in https://reviews.llvm.org/D68028 with similar
motivation.

This commit implies that we now require rustc nightly >= 2023-07-20.

[0] https://github.com/llvm/llvm-project/blob/7b2745b/llvm/lib/Target/BPF/BPFISelLowering.cpp#L472-L474
2 years ago
..
aya-bpf-bindings.txt public-api: bless with new nightly 2 years ago
aya-bpf-cty.txt xtask: Add cargo-public-api 2 years ago
aya-bpf-macros.txt xtask: Add cargo-public-api 2 years ago
aya-bpf.txt bpf: Remove builtin global functions 2 years ago
aya-log-common.txt public-api: bless with new nightly 2 years ago
aya-log-ebpf-macros.txt xtask: Add cargo-public-api 2 years ago
aya-log-ebpf.txt xtask: Add cargo-public-api 2 years ago
aya-log-parser.txt public-api: bless with new nightly 2 years ago
aya-log.txt xtask: bless API with new nightly 2 years ago
aya-obj.txt public-api: bless with new nightly 2 years ago
aya-tool.txt xtask: bless API with new nightly 2 years ago
aya.txt public-api: bless with new nightly 2 years ago