Move a bunch of the CLC stuff from src/microsoft to common code
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 19 Feb 2021 03:19:24 +0000 (21:19 -0600)
committerMarge Bot <eric+marge@anholt.net>
Thu, 30 Sep 2021 07:09:08 +0000 (07:09 +0000)
commit1506ea2ecb8d017dbe1bbe7bec03294619683e13
tree01ef7acb72a72c4c96fb7f9034c744748b19b1b8
parenta9c49a05416fde272df105fdf1038fd87ca71aed
Move a bunch of the CLC stuff from src/microsoft to common code

The D3D12-specific stuff isn't useful to have in common code but all the
stuff to invoke clang really should be common.

v2: Rebase (Lionel)

v3: Define a new clc_libclc_new_dxil() entrypoint to create a clc
    context with DXIL nir_options (Jesse)

v4: Fixup meson build (Lionel)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9156>
12 files changed:
meson.build
src/compiler/clc/clc.c [new file with mode: 0644]
src/compiler/clc/clc.h [new file with mode: 0644]
src/compiler/clc/clc_helpers.cpp [moved from src/microsoft/clc/clc_helpers.cpp with 99% similarity]
src/compiler/clc/clc_helpers.h [moved from src/microsoft/clc/clc_helpers.h with 97% similarity]
src/compiler/clc/meson.build [new file with mode: 0644]
src/compiler/meson.build
src/microsoft/clc/clc_compiler.c
src/microsoft/clc/clc_compiler.h
src/microsoft/clc/clon12compiler.def
src/microsoft/clc/compute_test.cpp
src/microsoft/clc/meson.build