Skip to content

Commit 8efe9d2

Browse files
committed
Replace SPV_INTEL_optimization_hints with SPV_KHR_expect_assume
Signed-off-by: Dmitry Sidorov <dmitry.sidorov@intel.com>
1 parent 990a1e0 commit 8efe9d2

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

clang/lib/Driver/ToolChains/Clang.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8819,7 +8819,8 @@ void SPIRVTranslator::ConstructJob(Compilation &C, const JobAction &JA,
88198819
std::string ExtArg("-spirv-ext=-all");
88208820
std::string DefaultExtArg =
88218821
",+SPV_EXT_shader_atomic_float_add,+SPV_EXT_shader_atomic_float_min_max"
8822-
",+SPV_KHR_no_integer_wrap_decoration,+SPV_KHR_float_controls";
8822+
",+SPV_KHR_no_integer_wrap_decoration,+SPV_KHR_float_controls"
8823+
",+SPV_KHR_expect_assume";
88238824
std::string INTELExtArg =
88248825
",+SPV_INTEL_subgroups,+SPV_INTEL_media_block_io"
88258826
",+SPV_INTEL_device_side_avc_motion_estimation"
@@ -8829,9 +8830,8 @@ void SPIRVTranslator::ConstructJob(Compilation &C, const JobAction &JA,
88298830
",+SPV_INTEL_blocking_pipes,+SPV_INTEL_function_pointers"
88308831
",+SPV_INTEL_kernel_attributes,+SPV_INTEL_io_pipes"
88318832
",+SPV_INTEL_inline_assembly,+SPV_INTEL_arbitrary_precision_integers"
8832-
",+SPV_INTEL_optimization_hints,+SPV_INTEL_float_controls2"
8833-
",+SPV_INTEL_vector_compute,+SPV_INTEL_fast_composite"
8834-
",+SPV_INTEL_fpga_buffer_location"
8833+
",+SPV_INTEL_float_controls2,+SPV_INTEL_vector_compute"
8834+
",+SPV_INTEL_fast_composite,+SPV_INTEL_fpga_buffer_location"
88358835
",+SPV_INTEL_arbitrary_precision_fixed_point"
88368836
",+SPV_INTEL_arbitrary_precision_floating_point"
88378837
",+SPV_INTEL_arbitrary_precision_floating_point"

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +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
3233
// CHECK-DEFAULT-SAME:,+SPV_INTEL_subgroups,+SPV_INTEL_media_block_io
3334
// CHECK-DEFAULT-SAME:,+SPV_INTEL_device_side_avc_motion_estimation
3435
// CHECK-DEFAULT-SAME:,+SPV_INTEL_fpga_loop_controls,+SPV_INTEL_fpga_memory_attributes
@@ -37,7 +38,7 @@
3738
// CHECK-DEFAULT-SAME:,+SPV_INTEL_blocking_pipes,+SPV_INTEL_function_pointers
3839
// CHECK-DEFAULT-SAME:,+SPV_INTEL_kernel_attributes,+SPV_INTEL_io_pipes
3940
// CHECK-DEFAULT-SAME:,+SPV_INTEL_inline_assembly,+SPV_INTEL_arbitrary_precision_integers
40-
// CHECK-DEFAULT-SAME:,+SPV_INTEL_optimization_hints,+SPV_INTEL_float_controls2
41+
// CHECK-DEFAULT-SAME:,+SPV_INTEL_float_controls2
4142
// CHECK-DEFAULT-SAME:,+SPV_INTEL_vector_compute,+SPV_INTEL_fast_composite
4243
// CHECK-DEFAULT-SAME:,+SPV_INTEL_fpga_buffer_location
4344
// CHECK-DEFAULT-SAME:,+SPV_INTEL_arbitrary_precision_fixed_point
@@ -57,6 +58,7 @@
5758
// CHECK-FPGA-HW-SAME:,+SPV_EXT_shader_atomic_float_add
5859
// CHECK-FPGA-HW-SAME:,+SPV_EXT_shader_atomic_float_min_max
5960
// CHECK-FPGA-HW-SAME:,+SPV_KHR_no_integer_wrap_decoration,+SPV_KHR_float_controls
61+
// CHECK-FPGA-HW-SAME:,+SPV_KHR_expect_assume
6062
// CHECK-FPGA-HW-SAME:,+SPV_INTEL_subgroups,+SPV_INTEL_media_block_io
6163
// CHECK-FPGA-HW-SAME:,+SPV_INTEL_device_side_avc_motion_estimation
6264
// CHECK-FPGA-HW-SAME:,+SPV_INTEL_fpga_loop_controls,+SPV_INTEL_fpga_memory_attributes
@@ -65,8 +67,8 @@
6567
// CHECK-FPGA-HW-SAME:,+SPV_INTEL_blocking_pipes,+SPV_INTEL_function_pointers
6668
// CHECK-FPGA-HW-SAME:,+SPV_INTEL_kernel_attributes,+SPV_INTEL_io_pipes
6769
// CHECK-FPGA-HW-SAME:,+SPV_INTEL_inline_assembly,+SPV_INTEL_arbitrary_precision_integers
68-
// CHECK-FPGA-HW-SAME:,+SPV_INTEL_optimization_hints,+SPV_INTEL_float_controls2,
69-
// CHECK-FPGA-HW-SAME:+SPV_INTEL_vector_compute,+SPV_INTEL_fast_composite
70+
// CHECK-FPGA-HW-SAME:,+SPV_INTEL_float_controls2
71+
// CHECK-FPGA-HW-SAME:,+SPV_INTEL_vector_compute,+SPV_INTEL_fast_composite
7072
// CHECK-FPGA-HW-SAME:,+SPV_INTEL_fpga_buffer_location
7173
// CHECK-FPGA-HW-SAME:,+SPV_INTEL_arbitrary_precision_fixed_point
7274
// CHECK-FPGA-HW-SAME:,+SPV_INTEL_arbitrary_precision_floating_point

0 commit comments

Comments
 (0)