Skip to content

Commit ae00ed5

Browse files
Yonghong SongKernel Patches Daemon
authored andcommitted
docs/bpf: Default cpu version changed from v1 to v3 in llvm 20
The default cpu version is changed from v1 to v3 in llvm version 20. See [1] for more detailed reasoning. Update bpf_devel_QA.rst so developers can find such information easily. [1] llvm/llvm-project#107008 Signed-off-by: Yonghong Song <[email protected]>
1 parent 85ced06 commit ae00ed5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Documentation/bpf/bpf_devel_QA.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -611,9 +611,10 @@ Q: I have added a new BPF instruction to the kernel, how can I integrate
611611
it into LLVM?
612612

613613
A: LLVM has a ``-mcpu`` selector for the BPF back end in order to allow
614-
the selection of BPF instruction set extensions. By default the
615-
``generic`` processor target is used, which is the base instruction set
616-
(v1) of BPF.
614+
the selection of BPF instruction set extensions. Before llvm version 20,
615+
the ``generic`` processor target is used, which is the base instruction
616+
set (v1) of BPF. Since llvm 20, the default processor target has changed
617+
to instruction set v3.
617618

618619
LLVM has an option to select ``-mcpu=probe`` where it will probe the host
619620
kernel for supported BPF instruction set extensions and selects the

0 commit comments

Comments
 (0)