[clang] [llvm] [clang][OMPIRBuilder] Fix reduction codegen for SPIR-V (PR #162529)

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 8 13:54:57 PDT 2025


================
@@ -0,0 +1,22 @@
+// RUN: %clang_cc1 -verify -fopenmp -x c++ -triple x86_64-unknown-linux -fopenmp-targets=spirv64-intel -emit-llvm-bc %s -o %t-host.bc
+// RUN: %clang_cc1 -verify -fopenmp -x c++ -triple spirv64-intel -fopenmp-targets=spirv64-intel -emit-llvm %s -fopenmp-is-target-device -fopenmp-host-ir-file-path %t-host.bc -o - | FileCheck %s
----------------
jhuber6 wrote:

Is there really not another reduction test we can just slap `spirv` onto?

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


More information about the cfe-commits mailing list