[all-commits] [llvm/llvm-project] 5fd5b8: [OpenCL] Emit opencl.cxx.version metadata for C++ ...
Sven van Haastregt via All-commits
all-commits at lists.llvm.org
Wed Jul 3 04:24:44 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5fd5b8ada70d9cbdaa8cc5bea50a6314e3140364
https://github.com/llvm/llvm-project/commit/5fd5b8ada70d9cbdaa8cc5bea50a6314e3140364
Author: Sven van Haastregt <sven.vanhaastregt at arm.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M clang/lib/CodeGen/CodeGenModule.cpp
A clang/test/CodeGenOpenCLCXX/version.clcpp
Log Message:
-----------
[OpenCL] Emit opencl.cxx.version metadata for C++ (#92140)
Currently there is no way to tell whether an IR module was generated
using `-cl-std=cl3.0` or `-cl-std=clc++2021`, i.e., whether the origin
was a OpenCL C or C++ for OpenCL source.
Add new `opencl.cxx.version` named metadata when compiling C++. Keep the
`opencl.ocl.version` metadata to convey the compatible OpenCL C version.
Fixes https://github.com/llvm/llvm-project/issues/91912
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