[llvm-branch-commits] [llvm] [BPF] add allows-misaligned-mem-access target feature (PR #168314)

2025-11-19 Thread Claire Fan via 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

[llvm-branch-commits] [llvm] [BPF] add allows-misaligned-mem-access target feature (PR #168314)

2025-11-19 Thread Claire Fan via llvm-branch-commits
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

[llvm-branch-commits] [llvm] [BPF] add allows-misaligned-mem-access target feature (PR #168314)

2025-11-19 Thread Claire Fan via llvm-branch-commits
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

[llvm-branch-commits] [llvm] [BPF] add allows-misaligned-mem-access target feature (PR #168314)

2025-11-19 Thread Claire Fan via llvm-branch-commits
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

[llvm-branch-commits] [llvm] [BPF] add allows-misaligned-mem-access target feature (PR #168314)

2025-11-19 Thread Claire Fan via 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

[llvm-branch-commits] [llvm] [BPF] Add CLI option to enable misaligned memory access (PR #167013)

2025-11-10 Thread Claire Fan via llvm-branch-commits
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

[llvm-branch-commits] [llvm] [BPF] Add CLI option to enable misaligned memory access (PR #167013)

2025-11-09 Thread Claire Fan via llvm-branch-commits
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

[llvm-branch-commits] [llvm] [BPF] Add CLI option to enable misaligned memory access (PR #167013)

2025-11-07 Thread Claire Fan via llvm-branch-commits
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