[PATCH] D77589: libclc: Add Mesa/SPIR-V/DXIL target
Daniel Stone via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 6 14:43:29 PDT 2020
daniels created this revision.
daniels added reviewers: jvesely, tstellar.
Herald added subscribers: llvm-commits, bader, mgorny.
Herald added a project: LLVM.
daniels added a comment.
Just as an FYI, this is what we are actually using together with a few WIP branches in Mesa. Of note is that we run the LLVM StructurizeCFG pass before generating SPIR-V, else vtn chokes on it, even with the WIP Mesa structuriser.
Add a target to emit SPIR-V targeted to Mesa's DXIL backend, using
32-bit SPIR-V 1.0.
Substantially based on Dave Airlie's earlier work.
libclc: spirv: remove step/smoothstep apis not defined for SPIR-V
libclc: disable inlines for SPIR-V builds
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D77589
Files:
libclc/CMakeLists.txt
libclc/generic/include/clc/clcfunc.h
libclc/generic/lib/common/smoothstep.cl
libclc/generic/lib/common/step.cl
libclc/spirv-mesa3d-dxil/lib/SOURCES
libclc/spirv-mesa3d-dxil/lib/subnormal_config.cl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77589.255494.patch
Type: text/x-patch
Size: 13960 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200406/bf9e7375/attachment-0001.bin>
More information about the llvm-commits
mailing list