Skip to content

Commit 715d327

Browse files
committed
[SYCL] Enable SPV_INTEL_fpga_dsp_control extension
1 parent 764b6ff commit 715d327

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

clang/lib/Driver/ToolChains/Clang.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8671,7 +8671,8 @@ void SPIRVTranslator::ConstructJob(Compilation &C, const JobAction &JA,
86718671
",+SPV_INTEL_variable_length_array,+SPV_INTEL_fp_fast_math_mode"
86728672
",+SPV_INTEL_fpga_cluster_attributes,+SPV_INTEL_loop_fuse"
86738673
",+SPV_INTEL_long_constant_composite"
8674-
",+SPV_INTEL_fpga_invocation_pipelining_attributes";
8674+
",+SPV_INTEL_fpga_invocation_pipelining_attributes"
8675+
",+SPV_INTEL_fpga_dsp_control";
86758676
ExtArg = ExtArg + DefaultExtArg + INTELExtArg;
86768677
if (!C.getDriver().isFPGAEmulationMode())
86778678
// Enable SPV_INTEL_usm_storage_classes only for FPGA hardware,

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
// CHECK-DEFAULT-SAME:,+SPV_INTEL_fpga_cluster_attributes,+SPV_INTEL_loop_fuse
4848
// CHECK-DEFAULT-SAME:,+SPV_INTEL_long_constant_composite
4949
// CHECK-DEFAULT-SAME:,+SPV_INTEL_fpga_invocation_pipelining_attributes
50+
// CHECK-DEFAULT-SAME:,+SPV_INTEL_fpga_dsp_control
5051
// CHECK-DEFAULT-SAME:,+SPV_INTEL_token_type"
5152
// CHECK-FPGA-HW: llvm-spirv{{.*}}"-spirv-ext=-all
5253
// CHECK-FPGA-HW-SAME:,+SPV_EXT_shader_atomic_float_add
@@ -70,4 +71,5 @@
7071
// CHECK-FPGA-HW-SAME:,+SPV_INTEL_fpga_cluster_attributes,+SPV_INTEL_loop_fuse
7172
// CHECK-FPGA-HW-SAME:,+SPV_INTEL_long_constant_composite
7273
// CHECK-FPGA-HW-SAME:,+SPV_INTEL_fpga_invocation_pipelining_attributes
73-
// CHECK-FPGA-HW-SAME:,+SPV_INTEL_usm_storage_classes"
74+
// CHECK-FPGA-HW-SAME:,+SPV_INTEL_fpga_dsp_control
75+
// CHECK-FPGA-HW-SAME:,+SPV_INTEL_usm_storage_classes"

0 commit comments

Comments
 (0)