gallium: add opaque pointers shim for LLVM < 8.0
authorMihai Preda <mhpreda@gmail.com>
Mon, 2 May 2022 12:14:48 +0000 (15:14 +0300)
committerMihai Preda <42345-preda@users.noreply.gitlab.freedesktop.org>
Wed, 4 May 2022 20:00:33 +0000 (20:00 +0000)
commitaf20d46a39e4431b85d593f56912a185a157554e
tree496dfd510da4590754a88f4914cf38d1ce1fbf9c
parentbbdf7e45b15f6345c5e509827770aec8a8bdfe7c
gallium: add opaque pointers shim for LLVM < 8.0

LLVM is transitioning to "opaque pointers", and as such deprecates
LLVMBuildGEP, LLVMBuildCall, LLVMBuildLoad, replacing them with
LLVMBuildGEP2, LLVMBuildCall2, LLVMBuildLoad2 respectivelly.
These new functions were added in LLVM 8.0; so for LLVM before 8.0 we
simply forward to the non-opaque-pointer variants.

Acked-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15893>
src/gallium/auxiliary/gallivm/lp_bld.h