[llvm] [SPIR-V] Support for C++ for OpenCL source language (PR #188791)

Arseniy Obolenskiy via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 27 03:53:54 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"
----------------
aobolensk wrote:

> This target triple is different than the one in the `llc` call, is this intended (same in "incompatible" test)?

I guess, it is a reflection from many other tests in the backend

https://github.com/llvm/llvm-project/pull/188791


More information about the llvm-commits mailing list