Skip to content

Commit f80a7f0

Browse files
authored
[NFC][SYCL] Align extensions string after FPGA extensions removal (#20605)
Signed-off-by: Sidorov, Dmitry <[email protected]>
1 parent a34b8f9 commit f80a7f0

File tree

2 files changed

+28
-32
lines changed

2 files changed

+28
-32
lines changed

clang/lib/Driver/ToolChains/Clang.cpp

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10533,11 +10533,10 @@ static void getTripleBasedSPIRVTransOpts(Compilation &C,
1053310533

1053410534
// Disable all the extensions by default
1053510535
std::string ExtArg("-spirv-ext=-all");
10536-
std::string DefaultExtArg =
10536+
ExtArg +=
1053710537
",+SPV_EXT_shader_atomic_float_add,+SPV_EXT_shader_atomic_float_min_max"
1053810538
",+SPV_KHR_no_integer_wrap_decoration,+SPV_KHR_float_controls"
10539-
",+SPV_KHR_expect_assume,+SPV_KHR_linkonce_odr";
10540-
std::string INTELExtArg =
10539+
",+SPV_KHR_expect_assume,+SPV_KHR_linkonce_odr"
1054110540
",+SPV_INTEL_subgroups,+SPV_INTEL_media_block_io"
1054210541
",+SPV_INTEL_device_side_avc_motion_estimation"
1054310542
",+SPV_INTEL_fpga_loop_controls,+SPV_INTEL_unstructured_loop_controls"
@@ -10560,19 +10559,18 @@ static void getTripleBasedSPIRVTransOpts(Compilation &C,
1056010559
",+SPV_INTEL_fpga_latency_control"
1056110560
",+SPV_KHR_shader_clock"
1056210561
",+SPV_INTEL_bindless_images"
10563-
",+SPV_INTEL_task_sequence";
10564-
ExtArg = ExtArg + DefaultExtArg + INTELExtArg;
10565-
ExtArg += ",+SPV_INTEL_bfloat16_conversion"
10566-
",+SPV_INTEL_joint_matrix"
10567-
",+SPV_INTEL_hw_thread_queries"
10568-
",+SPV_KHR_uniform_group_instructions"
10569-
",+SPV_INTEL_masked_gather_scatter"
10570-
",+SPV_INTEL_tensor_float32_conversion"
10571-
",+SPV_INTEL_optnone"
10572-
",+SPV_KHR_non_semantic_info"
10573-
",+SPV_KHR_cooperative_matrix"
10574-
",+SPV_EXT_shader_atomic_float16_add"
10575-
",+SPV_INTEL_fp_max_error";
10562+
",+SPV_INTEL_task_sequence"
10563+
",+SPV_INTEL_bfloat16_conversion"
10564+
",+SPV_INTEL_joint_matrix"
10565+
",+SPV_INTEL_hw_thread_queries"
10566+
",+SPV_KHR_uniform_group_instructions"
10567+
",+SPV_INTEL_masked_gather_scatter"
10568+
",+SPV_INTEL_tensor_float32_conversion"
10569+
",+SPV_INTEL_optnone"
10570+
",+SPV_KHR_non_semantic_info"
10571+
",+SPV_KHR_cooperative_matrix"
10572+
",+SPV_EXT_shader_atomic_float16_add"
10573+
",+SPV_INTEL_fp_max_error";
1057610574

1057710575
TranslatorArgs.push_back(TCArgs.MakeArgString(ExtArg));
1057810576
}

clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -851,11 +851,10 @@ getTripleBasedSPIRVTransOpts(const ArgList &Args,
851851

852852
// Disable all the extensions by default
853853
std::string ExtArg("-spirv-ext=-all");
854-
std::string DefaultExtArg =
854+
ExtArg +=
855855
",+SPV_EXT_shader_atomic_float_add,+SPV_EXT_shader_atomic_float_min_max"
856856
",+SPV_KHR_no_integer_wrap_decoration,+SPV_KHR_float_controls"
857-
",+SPV_KHR_expect_assume,+SPV_KHR_linkonce_odr";
858-
std::string INTELExtArg =
857+
",+SPV_KHR_expect_assume,+SPV_KHR_linkonce_odr"
859858
",+SPV_INTEL_subgroups,+SPV_INTEL_media_block_io"
860859
",+SPV_INTEL_device_side_avc_motion_estimation"
861860
",+SPV_INTEL_fpga_loop_controls,+SPV_INTEL_unstructured_loop_controls"
@@ -878,19 +877,18 @@ getTripleBasedSPIRVTransOpts(const ArgList &Args,
878877
",+SPV_INTEL_fpga_latency_control"
879878
",+SPV_KHR_shader_clock"
880879
",+SPV_INTEL_bindless_images"
881-
",+SPV_INTEL_task_sequence";
882-
ExtArg = ExtArg + DefaultExtArg + INTELExtArg;
883-
ExtArg += ",+SPV_INTEL_bfloat16_conversion"
884-
",+SPV_INTEL_joint_matrix"
885-
",+SPV_INTEL_hw_thread_queries"
886-
",+SPV_KHR_uniform_group_instructions"
887-
",+SPV_INTEL_masked_gather_scatter"
888-
",+SPV_INTEL_tensor_float32_conversion"
889-
",+SPV_INTEL_optnone"
890-
",+SPV_KHR_non_semantic_info"
891-
",+SPV_KHR_cooperative_matrix"
892-
",+SPV_EXT_shader_atomic_float16_add"
893-
",+SPV_INTEL_fp_max_error";
880+
",+SPV_INTEL_task_sequence"
881+
",+SPV_INTEL_bfloat16_conversion"
882+
",+SPV_INTEL_joint_matrix"
883+
",+SPV_INTEL_hw_thread_queries"
884+
",+SPV_KHR_uniform_group_instructions"
885+
",+SPV_INTEL_masked_gather_scatter"
886+
",+SPV_INTEL_tensor_float32_conversion"
887+
",+SPV_INTEL_optnone"
888+
",+SPV_KHR_non_semantic_info"
889+
",+SPV_KHR_cooperative_matrix"
890+
",+SPV_EXT_shader_atomic_float16_add"
891+
",+SPV_INTEL_fp_max_error";
894892
TranslatorArgs.push_back(Args.MakeArgString(ExtArg));
895893
}
896894

0 commit comments

Comments
 (0)