ac/llvm: fix build with LLVM 17
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Mon, 20 Mar 2023 09:26:11 +0000 (10:26 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 21 Mar 2023 15:05:25 +0000 (15:05 +0000)
commit3f272fd15e9f0776056699e90ce021f4766d3384
treee2d1e9d80e17a4ee807dcc74385f59b43c96950a
parent4659a94cfe860f6ba8099d3f9f25ab6ad05c2b78
ac/llvm: fix build with LLVM 17

This builds with LLVM 12 -> 17 and a running a simple app seems to work.

I couldn't test LLVM 11 because meson fails with:

    Looking for a fallback subproject for the dependency llvm (modules:
    bitwriter, engine, mcdisassembler, mcjit, core, executionengine,
    scalaropts, transformutils, instcombine, amdgpu, bitreader, ipo, native)

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8297
Cc: mesa-stable
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22021>
src/amd/llvm/ac_llvm_build.h
src/amd/llvm/ac_llvm_helper.cpp
src/amd/llvm/ac_llvm_util.c
src/amd/llvm/ac_llvm_util.h