clairechingching wrote:
@yonghong-song The kernel verifier is indeed very restrictive and for good
reason. This feature is intended for user-space eBPF, where the decision to
allow misaligned access is up to the implementer. In such environments,
allowing misaligned accesses is far more perfor
clairechingching wrote:
Hey @yonghong-song I tried moving the `-bpf-allow-misaligned-mem-access` option
into BPFSubtarget, but realized that the parameters managed there are mostly
about CPU instruction-set features. It seems more consistent to keep
`-bpf-allow-misaligned-mem-access` where it
https://github.com/clairechingching created
https://github.com/llvm/llvm-project/pull/167013
This proposal adds a `cl::opt` CLI flag `-bpf-allow-misaligned-mem-access` to
BPF target that lets users enable allowing misaligned memory accesses.
The motivation behind the proposal is user space eBP
https://github.com/clairechingching created
https://github.com/llvm/llvm-project/pull/168314
I'd like to backport this change to handle misaligned memory access in the BPF
target which was merged in [this original
PR](https://github.com/llvm/llvm-project/pull/167013). Backporting it so I can
https://github.com/clairechingching edited
https://github.com/llvm/llvm-project/pull/168314
___
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
clairechingching wrote:
@yonghong-song I'd like to backport this change so that I can enable
misalignment in the rust nightly compiler, thanks!
https://github.com/llvm/llvm-project/pull/168314
___
llvm-branch-commits mailing list
llvm-branch-commits@l
https://github.com/clairechingching edited
https://github.com/llvm/llvm-project/pull/168314
___
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
clairechingching wrote:
@c-rhodes thanks for the clarification!
@tru
This change is a feature that doesn’t alter the default behavior, it simply
enables misalignment support for the BPF target when explicitly requested. We’d
like to backport it so that the Rust compiler can take advantage of