File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
test/tools/sycl-post-link/sycl-esimd Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 2
2
; RUN: FileCheck %s -input-file=%t.table
3
3
; RUN: FileCheck %s -input-file=%t_0.ll --check-prefixes CHECK-SYCL-IR
4
4
; RUN: FileCheck %s -input-file=%t_esimd_0.ll --check-prefixes CHECK-ESIMD-IR
5
+ ; RUN: FileCheck %s -input-file=%t_0.prop --check-prefixes CHECK-SYCL-PROP
6
+ ; RUN: FileCheck %s -input-file=%t_esimd_0.prop --check-prefixes CHECK-ESIMD-PROP
5
7
6
- ; This is basic test of splitting SYCL and ESIMD kernels into separate
7
- ; modules .
8
+ ; This is basic test of splitting SYCL and ESIMD kernels into separate modules.
9
+ ; ESIMD module should have isEsimdImage=1 property set after splitting .
8
10
9
11
target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024"
10
12
target triple = "spir64-unknown-linux-sycldevice"
@@ -41,5 +43,10 @@ attributes #0 = { "sycl-module-id"="a.cpp" }
41
43
; CHECK-SYCL-IR-DAG: define dso_local spir_kernel void @SYCL_kernel()
42
44
; CHECK-SYCL-IR-DAG: declare dso_local spir_func i64 @_Z28__spirv_GlobalInvocationId_xv()
43
45
46
+ ; CHECK-SYCL-PROP-NOT: isEsimdImage=1|1
47
+
44
48
; CHECK-ESIMD-IR-DAG: define dso_local spir_kernel void @ESIMD_kernel()
45
49
; CHECK-ESIMD-IR-DAG: declare dso_local spir_func i64 @_Z28__spirv_GlobalInvocationId_xv()
50
+
51
+ ; CHECK-ESIMD-PROP: [SYCL/misc properties]
52
+ ; CHECK-ESIMD-PROP: isEsimdImage=1|1
Original file line number Diff line number Diff line change @@ -586,6 +586,12 @@ static string_vector saveDeviceImageProperty(
586
586
NameInfoPair.first , llvm::util::PropertyValue (Data, DataBitSize)));
587
587
}
588
588
}
589
+
590
+ if (ImgPSInfo.IsEsimdKernel ) {
591
+ PropSet[llvm::util::PropertySetRegistry::SYCL_MISC_PROP].insert (
592
+ {" isEsimdImage" , true });
593
+ }
594
+
589
595
std::error_code EC;
590
596
std::string SCFile =
591
597
makeResultFileName (" .prop" , I, ImgPSInfo.IsEsimdKernel ? " esimd_" : " " );
You can’t perform that action at this time.
0 commit comments