[all-commits] [llvm/llvm-project] df5f65: [SPIR-V] Only emit __spirv__ when targeting HLSL (...
Nathan Gauër via All-commits
all-commits at lists.llvm.org
Mon Jun 2 08:52:14 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: df5f65d22a697ec67725bac3660d4540769af8b2
https://github.com/llvm/llvm-project/commit/df5f65d22a697ec67725bac3660d4540769af8b2
Author: Nathan Gauër <brioche at google.com>
Date: 2025-06-02 (Mon, 02 Jun 2025)
Changed paths:
M clang/lib/Basic/Targets/SPIR.cpp
M clang/test/Preprocessor/predefined-macros.c
Log Message:
-----------
[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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list