Skip to content

Commit 4c7a172

Browse files
authored
[SYCL] Enable SPV_INTEL_arithmetic_fence extension (#4096)
1 parent 4876443 commit 4c7a172

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
@@ -8692,7 +8692,8 @@ void SPIRVTranslator::ConstructJob(Compilation &C, const JobAction &JA,
86928692
",+SPV_INTEL_fpga_cluster_attributes,+SPV_INTEL_loop_fuse"
86938693
",+SPV_INTEL_long_constant_composite"
86948694
",+SPV_INTEL_fpga_invocation_pipelining_attributes"
8695-
",+SPV_INTEL_fpga_dsp_control";
8695+
",+SPV_INTEL_fpga_dsp_control"
8696+
",+SPV_INTEL_arithmetic_fence";
86968697
ExtArg = ExtArg + DefaultExtArg + INTELExtArg;
86978698
if (!C.getDriver().isFPGAEmulationMode())
86988699
// 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
@@ -48,6 +48,7 @@
4848
// CHECK-DEFAULT-SAME:,+SPV_INTEL_long_constant_composite
4949
// CHECK-DEFAULT-SAME:,+SPV_INTEL_fpga_invocation_pipelining_attributes
5050
// CHECK-DEFAULT-SAME:,+SPV_INTEL_fpga_dsp_control
51+
// CHECK-DEFAULT-SAME:,+SPV_INTEL_arithmetic_fence
5152
// CHECK-DEFAULT-SAME:,+SPV_INTEL_token_type"
5253
// CHECK-FPGA-HW: llvm-spirv{{.*}}"-spirv-ext=-all
5354
// CHECK-FPGA-HW-SAME:,+SPV_EXT_shader_atomic_float_add
@@ -72,4 +73,5 @@
7273
// CHECK-FPGA-HW-SAME:,+SPV_INTEL_long_constant_composite
7374
// CHECK-FPGA-HW-SAME:,+SPV_INTEL_fpga_invocation_pipelining_attributes
7475
// CHECK-FPGA-HW-SAME:,+SPV_INTEL_fpga_dsp_control
75-
// CHECK-FPGA-HW-SAME:,+SPV_INTEL_usm_storage_classes"
76+
// CHECK-FPGA-HW-SAME:,+SPV_INTEL_arithmetic_fence
77+
// CHECK-FPGA-HW-SAME:,+SPV_INTEL_usm_storage_classes"

0 commit comments

Comments
 (0)