mesa/src/compiler/clc
Alyssa Rosenzweig f31b451916 clc: add mesa_clc tool
This is a generic tool to convert OpenCL C to SPIR-V.

In the future, this will be replaced by `clang` directly using the LLVM SPIR-V
backend, but for now we need a tool in Mesa to provide this functionality with
older LLVM versions.

The important parts are that:

1. It does not depend on NIR or any real platform details. An older mesa_clc
   from a previous Mesa version can generally be used to build a newer Mesa to
   ease cross-OS builds.

2. Its output can be consumed without any LLVM dependence, which will untangle
   the LLVM mess we have now.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31923>
2024-11-01 13:25:37 -07:00
..
clc.c clc: Move libclc helpers back to microsoft/clc 2024-03-26 20:12:41 +00:00
clc.h clc: add support for more image related extensions 2024-08-27 15:06:16 +00:00
clc_helpers.cpp clc: find opencl headers from the installed llvm/clang location 2024-09-17 14:29:19 +03:00
clc_helpers.h clc: silence a warn_unused_result 2024-01-18 15:20:46 +00:00
mesa_clc.c clc: add mesa_clc tool 2024-11-01 13:25:37 -07:00
meson.build clc: add mesa_clc tool 2024-11-01 13:25:37 -07:00
nir_clc_helpers.h nir: move the libclc lowering over to functions file. 2023-09-12 01:57:50 +00:00
nir_load_libclc.c compiler/clc: fix compiler issue on MacOS with st_mtim[e] in stat. 2024-03-15 10:50:11 +00:00