Skip to content

Commit 4e8f8ca

Browse files
committed
[SYCL] Enable SPV_INTEL_arithmetic_fence extension
1 parent 764b6ff commit 4e8f8ca

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_arithmetic_fence";
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,7 +47,8 @@
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_token_type"
50+
// CHECK-DEFAULT-SAME:,+SPV_INTEL_token_type
51+
// CHECK-DEFAULT-SAME:,+SPV_INTEL_arithmetic_fence"
5152
// CHECK-FPGA-HW: llvm-spirv{{.*}}"-spirv-ext=-all
5253
// CHECK-FPGA-HW-SAME:,+SPV_EXT_shader_atomic_float_add
5354
// CHECK-FPGA-HW-SAME:,+SPV_EXT_shader_atomic_float_min_max
@@ -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
74+
// CHECK-FPGA-HW-SAME:,+SPV_INTEL_arithmetic_fence
7375
// CHECK-FPGA-HW-SAME:,+SPV_INTEL_usm_storage_classes"

0 commit comments

Comments
 (0)