[llvm] [SPIR-V] Support for C++ for OpenCL source language (PR #188791)
Manuel Carrasco via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 27 03:57:11 PDT 2026
================
@@ -0,0 +1,21 @@
+; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s
+
+; When both opencl.ocl.version (2.0) and opencl.cxx.version (1.0) are present,
+; the source language should be OpenCL C++ with version 100000
+
+; CHECK: OpSource CPP_for_OpenCL 100000
+
+target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-G1"
+target triple = "spir64-unknown-unknown"
----------------
mgcarrasco wrote:
Also, I think the datalayout is not included in the tests (unless it is strictly necessary).
https://github.com/llvm/llvm-project/pull/188791
More information about the llvm-commits
mailing list