[all-commits] [llvm/llvm-project] b5fe3e: [OpenCL] Add decls for cl_intel_bfloat16_conversio...
Mészáros Gergely via All-commits
all-commits at lists.llvm.org
Tue Jul 29 06:15:04 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b5fe3eb2d17b711fded1a8c2fbd05a9e4dc06a7f
https://github.com/llvm/llvm-project/commit/b5fe3eb2d17b711fded1a8c2fbd05a9e4dc06a7f
Author: Mészáros Gergely <gergely.meszaros at intel.com>
Date: 2025-07-29 (Tue, 29 Jul 2025)
Changed paths:
M clang/lib/Headers/opencl-c.h
Log Message:
-----------
[OpenCL] Add decls for cl_intel_bfloat16_conversions (#150393)
These map to SPIR-V instructions, which are long supported by the llvm
SPIR-V target [1] and the llvm-spirv translator [2].
Intel's offline compiler (ocloc) and OpenCL implementation trivially
supports these, by having these same declarations [3] and relying on
llvm-spirv to map calls to them to their corresponding SPIR-V
instructions.
[1]:
https://github.com/llvm/llvm-project/blob/531cf8298b08eacdf670bac8c28db97a5dc8cb01/llvm/lib/Target/SPIRV/SPIRVBuiltins.td#L1546C11-L1546C27
[2]:
https://github.com/KhronosGroup/SPIRV-LLVM-Translator/blob/10c7569b3c4cb456fbfdcc86c3de45d46c7f5fa8/lib/SPIRV/OCLUtil.h#L327
[3]:
https://github.com/intel/intel-graphics-compiler/blob/342c4fb729ff6a20a41e19adc8329ad18ba05660/IGC/BiFModule/Languages/OpenCL/opencl_cth_released.h#L6899
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