ci: upgrade LLVM to 20.1, drop LLVM 11#1800
Conversation
LLVM 20.1 is out, and LLVM 11 has reached its 5th birthday. LLVM 11 notably doesn't support decl tags, which we want to start using in loader.c, so drop it from CI. Signed-off-by: Timo Beckers <[email protected]>
336cd83 to
29b0fb0
Compare
That can't be good 🫣 |
Looking into it, I think LLVM20 may be using ISAv3 by default. |
|
Found it: llvm/llvm-project@7852ebc. -mcpu=v3 is now the default. @yonghong-song This is slightly surprising given this breaks existing tools on kernels <5.1 if they don't specify -mcpu=v1/v2 explicitly. The kernel docs (https://docs.kernel.org/bpf/bpf_devel_QA.html#q-new-bpf-instruction-for-kernel-and-llvm) need to be updated as well:
I'll set -mcpu=v2 here until we drop <5.1 in CI. |
29b0fb0 to
b8c74fe
Compare
A prior commit upgraded the toolchain to this set of LLVM versions. -mcpu=v3 is now the default in LLVM 20, so specify -mcpu=v2 explicitly to maintain compatibility with 4.x kernels. Signed-off-by: Timo Beckers <[email protected]>
b8c74fe to
cc0c1e2
Compare
Yes, in llvm20 we move -mcpu=v3 as default to handle some atomic insns (esp. for arm64). Please to use -mcpu=v1/v2 as appropriate. Thanks. |
Will update the doc soon. thanks. |
LLVM 11 is getting a bit long in the tooth and doesn't support decl tags.
Target 14, 17 and the newly-released LLVM 20.