Files
clang-p2996/clang/lib/Basic/Targets/SPIR.cpp
Nathan Gauër df5f65d22a [SPIR-V] Only emit __spirv__ when targeting HLSL (#142401)
OpenCL translator has a `__spirv` namespace, and defining the
`__spirv__` macro causes issues downstream on the OpenCL side. This
macro is needed to keep compatibility with HLSL/DXC, but can be avoided
for other targets/languages.
2025-06-02 11:51:53 -04:00

6.4 KiB