Skip to content

Commit aa227b1

Browse files
authored
[SYCL][Driver] Enable SPV_KHR_linkonce_odr extension (#4683)
1 parent e7fa628 commit aa227b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/lib/Driver/ToolChains/Clang.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9021,7 +9021,7 @@ void SPIRVTranslator::ConstructJob(Compilation &C, const JobAction &JA,
90219021
std::string DefaultExtArg =
90229022
",+SPV_EXT_shader_atomic_float_add,+SPV_EXT_shader_atomic_float_min_max"
90239023
",+SPV_KHR_no_integer_wrap_decoration,+SPV_KHR_float_controls"
9024-
",+SPV_KHR_expect_assume";
9024+
",+SPV_KHR_expect_assume,+SPV_KHR_linkonce_odr";
90259025
std::string INTELExtArg =
90269026
",+SPV_INTEL_subgroups,+SPV_INTEL_media_block_io"
90279027
",+SPV_INTEL_device_side_avc_motion_estimation"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
// CHECK-DEFAULT-SAME:,+SPV_EXT_shader_atomic_float_add
3030
// CHECK-DEFAULT-SAME:,+SPV_EXT_shader_atomic_float_min_max
3131
// CHECK-DEFAULT-SAME:,+SPV_KHR_no_integer_wrap_decoration,+SPV_KHR_float_controls
32-
// CHECK-DEFAULT-SAME:,+SPV_KHR_expect_assume
32+
// CHECK-DEFAULT-SAME:,+SPV_KHR_expect_assume,+SPV_KHR_linkonce_odr
3333
// CHECK-DEFAULT-SAME:,+SPV_INTEL_subgroups,+SPV_INTEL_media_block_io
3434
// CHECK-DEFAULT-SAME:,+SPV_INTEL_device_side_avc_motion_estimation
3535
// CHECK-DEFAULT-SAME:,+SPV_INTEL_fpga_loop_controls,+SPV_INTEL_fpga_memory_attributes

0 commit comments

Comments
 (0)