[all-commits] [llvm/llvm-project] eabc88: [BPF] make __BPF_FEATURE_MAY_GOTO available for cp...

eddyz87 via All-commits all-commits at lists.llvm.org
Tue Sep 24 01:46:55 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eabc8857e77c94a09624c12cc690753f68b87825
      https://github.com/llvm/llvm-project/commit/eabc8857e77c94a09624c12cc690753f68b87825
  Author: eddyz87 <eddyz87 at gmail.com>
  Date:   2024-09-24 (Tue, 24 Sep 2024)

  Changed paths:
    M clang/lib/Basic/Targets/BPF.cpp
    M clang/test/Preprocessor/bpf-predefined-macros.c

  Log Message:
  -----------
  [BPF] make __BPF_FEATURE_MAY_GOTO available for cpuv1 (#108071)

For some reason `__BPF_FEATURE_MAY_GOTO` is available for CPUs v{2,3,4}
but is not available for CPU v1. This limitation is arbitrary:
- the instruction is never produced by LLVM backend;
- on Linux Kernel side this instruction is available in kernels that
also support CPUv4.

Hence, it is more consistent to either always allow
`__BPF_FEATURE_MAY_GOTO` or only allow it for CPUv4.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list