mesa/src/amd/llvm
Pierre-Eric Pelloux-Prayer b7c04b1790 ac/llvm: handle static/shared llvm init separately
Having a single init function works as expected for shared llvm, but
when using a static llvm only one llvm will get initialized.

This commit introduces 2 separate init function:
- shared llvm = single public init function
- static llvm = one init function for each module using llvm

Fixes: 50d20dc055 ("ac/llvm: export ac_init_llvm_once in targets")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3376
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6253>
2020-08-17 10:47:41 +00:00
..
ac_llvm_build.c amd/llvm: Mark pointer function arguments as 32-byte aligned. 2020-07-08 23:47:06 +00:00
ac_llvm_build.h ac/nir: support 16-bit data in image opcodes 2020-06-02 16:29:25 -04:00
ac_llvm_cull.c ac/cull: don't read Position.Z if it's not needed for culling 2020-01-15 15:06:20 -05:00
ac_llvm_cull.h
ac_llvm_helper.cpp amd/llvm: Reorder LLVM headers 2020-08-05 17:15:18 +00:00
ac_llvm_util.c ac/llvm: handle static/shared llvm init separately 2020-08-17 10:47:41 +00:00
ac_llvm_util.h ac/llvm: handle static/shared llvm init separately 2020-08-17 10:47:41 +00:00
ac_nir_to_llvm.c ac/nir: fix coherent global loads/stores 2020-08-05 09:45:54 +00:00
ac_nir_to_llvm.h radeonsi/nir: don't run si_nir_opts again if there is no change 2019-11-25 16:48:27 -05:00
ac_shader_abi.h ac/nir: export some undef as zero 2020-05-05 12:26:26 +02:00
meson.build meson: use gnu_symbol_visibility argument 2020-06-01 18:59:18 +00:00