Skip to content

Commit fdb610d

Browse files
authored
[SYCL] Enable SPV_INTEL_fpga_dsp_control extension (#3867)
1 parent 5cc5018 commit fdb610d

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
@@ -8674,7 +8674,8 @@ void SPIRVTranslator::ConstructJob(Compilation &C, const JobAction &JA,
86748674
",+SPV_INTEL_variable_length_array,+SPV_INTEL_fp_fast_math_mode"
86758675
",+SPV_INTEL_fpga_cluster_attributes,+SPV_INTEL_loop_fuse"
86768676
",+SPV_INTEL_long_constant_composite"
8677-
",+SPV_INTEL_fpga_invocation_pipelining_attributes";
8677+
",+SPV_INTEL_fpga_invocation_pipelining_attributes"
8678+
",+SPV_INTEL_fpga_dsp_control";
86788679
ExtArg = ExtArg + DefaultExtArg + INTELExtArg;
86798680
if (!C.getDriver().isFPGAEmulationMode())
86808681
// 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)