Skip to content

Commit ebb9fe8

Browse files
authored
[SYCL] Enable SPV_INTEL_token_type extension (#4055)
Don't enable it for FPGA H/W yet. Signed-off-by: Dmitry Sidorov <[email protected]>
1 parent 0debfb1 commit ebb9fe8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

clang/lib/Driver/ToolChains/Clang.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8656,6 +8656,9 @@ void SPIRVTranslator::ConstructJob(Compilation &C, const JobAction &JA,
86568656
// lowered to CrossWorkgroup storage class that is mapped to just
86578657
// global address space.
86588658
ExtArg += ",+SPV_INTEL_usm_storage_classes";
8659+
else
8660+
// Don't enable several freshly added extensions on FPGA H/W
8661+
ExtArg += ",+SPV_INTEL_token_type";
86598662
TranslatorArgs.push_back(TCArgs.MakeArgString(ExtArg));
86608663
}
86618664
for (auto I : Inputs) {

clang/test/Driver/sycl-spirv-ext.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
// CHECK-DEFAULT-SAME:,+SPV_INTEL_variable_length_array,+SPV_INTEL_fp_fast_math_mode
4747
// CHECK-DEFAULT-SAME:,+SPV_INTEL_fpga_cluster_attributes,+SPV_INTEL_loop_fuse
4848
// CHECK-DEFAULT-SAME:,+SPV_INTEL_long_constant_composite
49-
// CHECK-DEFAULT-SAME:,+SPV_INTEL_fpga_invocation_pipelining_attributes"
49+
// CHECK-DEFAULT-SAME:,+SPV_INTEL_fpga_invocation_pipelining_attributes
50+
// CHECK-DEFAULT-SAME:,+SPV_INTEL_token_type"
5051
// CHECK-FPGA-HW: llvm-spirv{{.*}}"-spirv-ext=-all
5152
// CHECK-FPGA-HW-SAME:,+SPV_EXT_shader_atomic_float_add
5253
// CHECK-FPGA-HW-SAME:,+SPV_EXT_shader_atomic_float_min_max

0 commit comments

Comments
 (0)