[tint] Move AST transforms to a subdirectory

This prepares for the addition of IR transforms. Subsequent patches
will introduce an ast::transform namespace and refactor the Transform
class into a common base class for the two types of transform.

Bug: tint:1718
Change-Id: I0088d8356341e861df68df1f4f755ee82757dd2d
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/132423
Commit-Queue: James Price <jrprice@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
James Price 2023-05-11 13:10:59 +00:00 committed by Dawn LUCI CQ
parent f7a4d9fe59
commit 7d2e204911
175 changed files with 821 additions and 821 deletions

View File

@ -21,15 +21,15 @@
// TODO(tint:88): When implementing support for an install target, all of these // TODO(tint:88): When implementing support for an install target, all of these
// headers will need to be moved to include/tint/. // headers will need to be moved to include/tint/.
#include "src/tint/ast/transform/first_index_offset.h"
#include "src/tint/ast/transform/renamer.h"
#include "src/tint/ast/transform/single_entry_point.h"
#include "src/tint/ast/transform/substitute_override.h"
#include "src/tint/ast/transform/vertex_pulling.h"
#include "src/tint/diagnostic/printer.h" #include "src/tint/diagnostic/printer.h"
#include "src/tint/inspector/inspector.h" #include "src/tint/inspector/inspector.h"
#include "src/tint/reader/reader.h" #include "src/tint/reader/reader.h"
#include "src/tint/transform/first_index_offset.h"
#include "src/tint/transform/manager.h" #include "src/tint/transform/manager.h"
#include "src/tint/transform/renamer.h"
#include "src/tint/transform/single_entry_point.h"
#include "src/tint/transform/substitute_override.h"
#include "src/tint/transform/vertex_pulling.h"
#include "src/tint/type/manager.h" #include "src/tint/type/manager.h"
#include "src/tint/utils/unicode.h" #include "src/tint/utils/unicode.h"
#include "src/tint/writer/array_length_from_uniform_options.h" #include "src/tint/writer/array_length_from_uniform_options.h"

View File

@ -356,108 +356,108 @@ libtint_source_set("libtint_inspector_src") {
libtint_source_set("libtint_transform_src") { libtint_source_set("libtint_transform_src") {
sources = [ sources = [
"transform/add_block_attribute.cc", "ast/transform/add_block_attribute.cc",
"transform/add_block_attribute.h", "ast/transform/add_block_attribute.h",
"transform/add_empty_entry_point.cc", "ast/transform/add_empty_entry_point.cc",
"transform/add_empty_entry_point.h", "ast/transform/add_empty_entry_point.h",
"transform/array_length_from_uniform.cc", "ast/transform/array_length_from_uniform.cc",
"transform/array_length_from_uniform.h", "ast/transform/array_length_from_uniform.h",
"transform/binding_remapper.cc", "ast/transform/binding_remapper.cc",
"transform/binding_remapper.h", "ast/transform/binding_remapper.h",
"transform/builtin_polyfill.cc", "ast/transform/builtin_polyfill.cc",
"transform/builtin_polyfill.h", "ast/transform/builtin_polyfill.h",
"transform/calculate_array_length.cc", "ast/transform/calculate_array_length.cc",
"transform/calculate_array_length.h", "ast/transform/calculate_array_length.h",
"transform/canonicalize_entry_point_io.cc", "ast/transform/canonicalize_entry_point_io.cc",
"transform/canonicalize_entry_point_io.h", "ast/transform/canonicalize_entry_point_io.h",
"transform/clamp_frag_depth.cc", "ast/transform/clamp_frag_depth.cc",
"transform/clamp_frag_depth.h", "ast/transform/clamp_frag_depth.h",
"transform/combine_samplers.cc", "ast/transform/combine_samplers.cc",
"transform/combine_samplers.h", "ast/transform/combine_samplers.h",
"transform/decompose_memory_access.cc", "ast/transform/decompose_memory_access.cc",
"transform/decompose_memory_access.h", "ast/transform/decompose_memory_access.h",
"transform/decompose_strided_array.cc", "ast/transform/decompose_strided_array.cc",
"transform/decompose_strided_array.h", "ast/transform/decompose_strided_array.h",
"transform/decompose_strided_matrix.cc", "ast/transform/decompose_strided_matrix.cc",
"transform/decompose_strided_matrix.h", "ast/transform/decompose_strided_matrix.h",
"transform/demote_to_helper.cc", "ast/transform/demote_to_helper.cc",
"transform/demote_to_helper.h", "ast/transform/demote_to_helper.h",
"transform/direct_variable_access.cc", "ast/transform/direct_variable_access.cc",
"transform/direct_variable_access.h", "ast/transform/direct_variable_access.h",
"transform/disable_uniformity_analysis.cc", "ast/transform/disable_uniformity_analysis.cc",
"transform/disable_uniformity_analysis.h", "ast/transform/disable_uniformity_analysis.h",
"transform/expand_compound_assignment.cc", "ast/transform/expand_compound_assignment.cc",
"transform/expand_compound_assignment.h", "ast/transform/expand_compound_assignment.h",
"transform/first_index_offset.cc", "ast/transform/first_index_offset.cc",
"transform/first_index_offset.h", "ast/transform/first_index_offset.h",
"transform/for_loop_to_loop.cc", "ast/transform/for_loop_to_loop.cc",
"transform/for_loop_to_loop.h", "ast/transform/for_loop_to_loop.h",
"transform/localize_struct_array_assignment.cc", "ast/transform/localize_struct_array_assignment.cc",
"transform/localize_struct_array_assignment.h", "ast/transform/localize_struct_array_assignment.h",
"ast/transform/merge_return.cc",
"ast/transform/merge_return.h",
"ast/transform/module_scope_var_to_entry_point_param.cc",
"ast/transform/module_scope_var_to_entry_point_param.h",
"ast/transform/multiplanar_external_texture.cc",
"ast/transform/multiplanar_external_texture.h",
"ast/transform/num_workgroups_from_uniform.cc",
"ast/transform/num_workgroups_from_uniform.h",
"ast/transform/packed_vec3.cc",
"ast/transform/packed_vec3.h",
"ast/transform/pad_structs.cc",
"ast/transform/pad_structs.h",
"ast/transform/preserve_padding.cc",
"ast/transform/preserve_padding.h",
"ast/transform/promote_initializers_to_let.cc",
"ast/transform/promote_initializers_to_let.h",
"ast/transform/promote_side_effects_to_decl.cc",
"ast/transform/promote_side_effects_to_decl.h",
"ast/transform/remove_continue_in_switch.cc",
"ast/transform/remove_continue_in_switch.h",
"ast/transform/remove_phonies.cc",
"ast/transform/remove_phonies.h",
"ast/transform/remove_unreachable_statements.cc",
"ast/transform/remove_unreachable_statements.h",
"ast/transform/renamer.cc",
"ast/transform/renamer.h",
"ast/transform/robustness.cc",
"ast/transform/robustness.h",
"ast/transform/simplify_pointers.cc",
"ast/transform/simplify_pointers.h",
"ast/transform/single_entry_point.cc",
"ast/transform/single_entry_point.h",
"ast/transform/spirv_atomic.cc",
"ast/transform/spirv_atomic.h",
"ast/transform/std140.cc",
"ast/transform/std140.h",
"ast/transform/substitute_override.cc",
"ast/transform/substitute_override.h",
"ast/transform/texture_1d_to_2d.cc",
"ast/transform/texture_1d_to_2d.h",
"ast/transform/transform.cc",
"ast/transform/transform.h",
"ast/transform/truncate_interstage_variables.cc",
"ast/transform/truncate_interstage_variables.h",
"ast/transform/unshadow.cc",
"ast/transform/unshadow.h",
"ast/transform/utils/get_insertion_point.cc",
"ast/transform/utils/get_insertion_point.h",
"ast/transform/utils/hoist_to_decl_before.cc",
"ast/transform/utils/hoist_to_decl_before.h",
"ast/transform/var_for_dynamic_index.cc",
"ast/transform/var_for_dynamic_index.h",
"ast/transform/vectorize_matrix_conversions.cc",
"ast/transform/vectorize_matrix_conversions.h",
"ast/transform/vectorize_scalar_matrix_initializers.cc",
"ast/transform/vectorize_scalar_matrix_initializers.h",
"ast/transform/vertex_pulling.cc",
"ast/transform/vertex_pulling.h",
"ast/transform/while_to_loop.cc",
"ast/transform/while_to_loop.h",
"ast/transform/zero_init_workgroup_memory.cc",
"ast/transform/zero_init_workgroup_memory.h",
"transform/manager.cc", "transform/manager.cc",
"transform/manager.h", "transform/manager.h",
"transform/merge_return.cc",
"transform/merge_return.h",
"transform/module_scope_var_to_entry_point_param.cc",
"transform/module_scope_var_to_entry_point_param.h",
"transform/multiplanar_external_texture.cc",
"transform/multiplanar_external_texture.h",
"transform/num_workgroups_from_uniform.cc",
"transform/num_workgroups_from_uniform.h",
"transform/packed_vec3.cc",
"transform/packed_vec3.h",
"transform/pad_structs.cc",
"transform/pad_structs.h",
"transform/preserve_padding.cc",
"transform/preserve_padding.h",
"transform/promote_initializers_to_let.cc",
"transform/promote_initializers_to_let.h",
"transform/promote_side_effects_to_decl.cc",
"transform/promote_side_effects_to_decl.h",
"transform/remove_continue_in_switch.cc",
"transform/remove_continue_in_switch.h",
"transform/remove_phonies.cc",
"transform/remove_phonies.h",
"transform/remove_unreachable_statements.cc",
"transform/remove_unreachable_statements.h",
"transform/renamer.cc",
"transform/renamer.h",
"transform/robustness.cc",
"transform/robustness.h",
"transform/simplify_pointers.cc",
"transform/simplify_pointers.h",
"transform/single_entry_point.cc",
"transform/single_entry_point.h",
"transform/spirv_atomic.cc",
"transform/spirv_atomic.h",
"transform/std140.cc",
"transform/std140.h",
"transform/substitute_override.cc",
"transform/substitute_override.h",
"transform/texture_1d_to_2d.cc",
"transform/texture_1d_to_2d.h",
"transform/transform.cc",
"transform/transform.h",
"transform/truncate_interstage_variables.cc",
"transform/truncate_interstage_variables.h",
"transform/unshadow.cc",
"transform/unshadow.h",
"transform/utils/get_insertion_point.cc",
"transform/utils/get_insertion_point.h",
"transform/utils/hoist_to_decl_before.cc",
"transform/utils/hoist_to_decl_before.h",
"transform/var_for_dynamic_index.cc",
"transform/var_for_dynamic_index.h",
"transform/vectorize_matrix_conversions.cc",
"transform/vectorize_matrix_conversions.h",
"transform/vectorize_scalar_matrix_initializers.cc",
"transform/vectorize_scalar_matrix_initializers.h",
"transform/vertex_pulling.cc",
"transform/vertex_pulling.h",
"transform/while_to_loop.cc",
"transform/while_to_loop.h",
"transform/zero_init_workgroup_memory.cc",
"transform/zero_init_workgroup_memory.h",
] ]
deps = [ deps = [
":libtint_ast_src", ":libtint_ast_src",
@ -1640,60 +1640,60 @@ if (tint_build_unittests) {
tint_unittests_source_set("tint_unittests_transform_src") { tint_unittests_source_set("tint_unittests_transform_src") {
sources = [ sources = [
"transform/add_block_attribute_test.cc", "ast/transform/add_block_attribute_test.cc",
"transform/add_empty_entry_point_test.cc", "ast/transform/add_empty_entry_point_test.cc",
"transform/array_length_from_uniform_test.cc", "ast/transform/array_length_from_uniform_test.cc",
"transform/binding_remapper_test.cc", "ast/transform/binding_remapper_test.cc",
"transform/builtin_polyfill_test.cc", "ast/transform/builtin_polyfill_test.cc",
"transform/calculate_array_length_test.cc", "ast/transform/calculate_array_length_test.cc",
"transform/canonicalize_entry_point_io_test.cc", "ast/transform/canonicalize_entry_point_io_test.cc",
"transform/clamp_frag_depth_test.cc", "ast/transform/clamp_frag_depth_test.cc",
"transform/combine_samplers_test.cc", "ast/transform/combine_samplers_test.cc",
"transform/decompose_memory_access_test.cc", "ast/transform/decompose_memory_access_test.cc",
"transform/decompose_strided_array_test.cc", "ast/transform/decompose_strided_array_test.cc",
"transform/decompose_strided_matrix_test.cc", "ast/transform/decompose_strided_matrix_test.cc",
"transform/demote_to_helper_test.cc", "ast/transform/demote_to_helper_test.cc",
"transform/direct_variable_access_test.cc", "ast/transform/direct_variable_access_test.cc",
"transform/disable_uniformity_analysis_test.cc", "ast/transform/disable_uniformity_analysis_test.cc",
"transform/expand_compound_assignment_test.cc", "ast/transform/expand_compound_assignment_test.cc",
"transform/first_index_offset_test.cc", "ast/transform/first_index_offset_test.cc",
"transform/for_loop_to_loop_test.cc", "ast/transform/for_loop_to_loop_test.cc",
"transform/localize_struct_array_assignment_test.cc", "ast/transform/localize_struct_array_assignment_test.cc",
"transform/merge_return_test.cc", "ast/transform/merge_return_test.cc",
"transform/module_scope_var_to_entry_point_param_test.cc", "ast/transform/module_scope_var_to_entry_point_param_test.cc",
"transform/multiplanar_external_texture_test.cc", "ast/transform/multiplanar_external_texture_test.cc",
"transform/num_workgroups_from_uniform_test.cc", "ast/transform/num_workgroups_from_uniform_test.cc",
"transform/packed_vec3_test.cc", "ast/transform/packed_vec3_test.cc",
"transform/pad_structs_test.cc", "ast/transform/pad_structs_test.cc",
"transform/preserve_padding_test.cc", "ast/transform/preserve_padding_test.cc",
"transform/promote_initializers_to_let_test.cc", "ast/transform/promote_initializers_to_let_test.cc",
"transform/promote_side_effects_to_decl_test.cc", "ast/transform/promote_side_effects_to_decl_test.cc",
"transform/remove_continue_in_switch_test.cc", "ast/transform/remove_continue_in_switch_test.cc",
"transform/remove_phonies_test.cc", "ast/transform/remove_phonies_test.cc",
"transform/remove_unreachable_statements_test.cc", "ast/transform/remove_unreachable_statements_test.cc",
"transform/renamer_test.cc", "ast/transform/renamer_test.cc",
"transform/robustness_test.cc", "ast/transform/robustness_test.cc",
"transform/simplify_pointers_test.cc", "ast/transform/simplify_pointers_test.cc",
"transform/single_entry_point_test.cc", "ast/transform/single_entry_point_test.cc",
"transform/spirv_atomic_test.cc", "ast/transform/spirv_atomic_test.cc",
"transform/std140_exhaustive_test.cc", "ast/transform/std140_exhaustive_test.cc",
"transform/std140_f16_test.cc", "ast/transform/std140_f16_test.cc",
"transform/std140_f32_test.cc", "ast/transform/std140_f32_test.cc",
"transform/std140_test.cc", "ast/transform/std140_test.cc",
"transform/substitute_override_test.cc", "ast/transform/substitute_override_test.cc",
"transform/test_helper.h", "ast/transform/test_helper.h",
"transform/texture_1d_to_2d_test.cc", "ast/transform/texture_1d_to_2d_test.cc",
"transform/transform_test.cc", "ast/transform/transform_test.cc",
"transform/truncate_interstage_variables_test.cc", "ast/transform/truncate_interstage_variables_test.cc",
"transform/unshadow_test.cc", "ast/transform/unshadow_test.cc",
"transform/utils/get_insertion_point_test.cc", "ast/transform/utils/get_insertion_point_test.cc",
"transform/utils/hoist_to_decl_before_test.cc", "ast/transform/utils/hoist_to_decl_before_test.cc",
"transform/var_for_dynamic_index_test.cc", "ast/transform/var_for_dynamic_index_test.cc",
"transform/vectorize_matrix_conversions_test.cc", "ast/transform/vectorize_matrix_conversions_test.cc",
"transform/vectorize_scalar_matrix_initializers_test.cc", "ast/transform/vectorize_scalar_matrix_initializers_test.cc",
"transform/vertex_pulling_test.cc", "ast/transform/vertex_pulling_test.cc",
"transform/while_to_loop_test.cc", "ast/transform/while_to_loop_test.cc",
"transform/zero_init_workgroup_memory_test.cc", "ast/transform/zero_init_workgroup_memory_test.cc",
] ]
deps = [ deps = [

View File

@ -350,108 +350,108 @@ list(APPEND TINT_LIB_SRCS
symbol.cc symbol.cc
symbol.h symbol.h
tint.cc tint.cc
transform/add_empty_entry_point.cc ast/transform/add_empty_entry_point.cc
transform/add_empty_entry_point.h ast/transform/add_empty_entry_point.h
transform/add_block_attribute.cc ast/transform/add_block_attribute.cc
transform/add_block_attribute.h ast/transform/add_block_attribute.h
transform/array_length_from_uniform.cc ast/transform/array_length_from_uniform.cc
transform/array_length_from_uniform.h ast/transform/array_length_from_uniform.h
transform/binding_remapper.cc ast/transform/binding_remapper.cc
transform/binding_remapper.h ast/transform/binding_remapper.h
transform/builtin_polyfill.cc ast/transform/builtin_polyfill.cc
transform/builtin_polyfill.h ast/transform/builtin_polyfill.h
transform/calculate_array_length.cc ast/transform/calculate_array_length.cc
transform/calculate_array_length.h ast/transform/calculate_array_length.h
transform/clamp_frag_depth.cc ast/transform/clamp_frag_depth.cc
transform/clamp_frag_depth.h ast/transform/clamp_frag_depth.h
transform/canonicalize_entry_point_io.cc ast/transform/canonicalize_entry_point_io.cc
transform/canonicalize_entry_point_io.h ast/transform/canonicalize_entry_point_io.h
transform/combine_samplers.cc ast/transform/combine_samplers.cc
transform/combine_samplers.h ast/transform/combine_samplers.h
transform/decompose_memory_access.cc ast/transform/decompose_memory_access.cc
transform/decompose_memory_access.h ast/transform/decompose_memory_access.h
transform/decompose_strided_array.cc ast/transform/decompose_strided_array.cc
transform/decompose_strided_array.h ast/transform/decompose_strided_array.h
transform/decompose_strided_matrix.cc ast/transform/decompose_strided_matrix.cc
transform/decompose_strided_matrix.h ast/transform/decompose_strided_matrix.h
transform/demote_to_helper.cc ast/transform/demote_to_helper.cc
transform/demote_to_helper.h ast/transform/demote_to_helper.h
transform/direct_variable_access.cc ast/transform/direct_variable_access.cc
transform/direct_variable_access.h ast/transform/direct_variable_access.h
transform/disable_uniformity_analysis.cc ast/transform/disable_uniformity_analysis.cc
transform/disable_uniformity_analysis.h ast/transform/disable_uniformity_analysis.h
transform/expand_compound_assignment.cc ast/transform/expand_compound_assignment.cc
transform/expand_compound_assignment.h ast/transform/expand_compound_assignment.h
transform/first_index_offset.cc ast/transform/first_index_offset.cc
transform/first_index_offset.h ast/transform/first_index_offset.h
transform/for_loop_to_loop.cc ast/transform/for_loop_to_loop.cc
transform/for_loop_to_loop.h ast/transform/for_loop_to_loop.h
transform/localize_struct_array_assignment.cc ast/transform/localize_struct_array_assignment.cc
transform/localize_struct_array_assignment.h ast/transform/localize_struct_array_assignment.h
ast/transform/merge_return.cc
ast/transform/merge_return.h
ast/transform/module_scope_var_to_entry_point_param.cc
ast/transform/module_scope_var_to_entry_point_param.h
ast/transform/multiplanar_external_texture.cc
ast/transform/multiplanar_external_texture.h
ast/transform/num_workgroups_from_uniform.cc
ast/transform/num_workgroups_from_uniform.h
ast/transform/packed_vec3.cc
ast/transform/packed_vec3.h
ast/transform/pad_structs.cc
ast/transform/pad_structs.h
ast/transform/preserve_padding.cc
ast/transform/preserve_padding.h
ast/transform/promote_initializers_to_let.cc
ast/transform/promote_initializers_to_let.h
ast/transform/promote_side_effects_to_decl.cc
ast/transform/promote_side_effects_to_decl.h
ast/transform/remove_continue_in_switch.cc
ast/transform/remove_continue_in_switch.h
ast/transform/remove_phonies.cc
ast/transform/remove_phonies.h
ast/transform/remove_unreachable_statements.cc
ast/transform/remove_unreachable_statements.h
ast/transform/renamer.cc
ast/transform/renamer.h
ast/transform/robustness.cc
ast/transform/robustness.h
ast/transform/simplify_pointers.cc
ast/transform/simplify_pointers.h
ast/transform/single_entry_point.cc
ast/transform/single_entry_point.h
ast/transform/spirv_atomic.cc
ast/transform/spirv_atomic.h
ast/transform/std140.cc
ast/transform/std140.h
ast/transform/substitute_override.cc
ast/transform/substitute_override.h
ast/transform/texture_1d_to_2d.cc
ast/transform/texture_1d_to_2d.h
ast/transform/transform.cc
ast/transform/transform.h
ast/transform/truncate_interstage_variables.cc
ast/transform/truncate_interstage_variables.h
ast/transform/unshadow.cc
ast/transform/unshadow.h
ast/transform/utils/get_insertion_point.cc
ast/transform/utils/get_insertion_point.h
ast/transform/utils/hoist_to_decl_before.cc
ast/transform/utils/hoist_to_decl_before.h
ast/transform/var_for_dynamic_index.cc
ast/transform/var_for_dynamic_index.h
ast/transform/vectorize_matrix_conversions.cc
ast/transform/vectorize_matrix_conversions.h
ast/transform/vectorize_scalar_matrix_initializers.cc
ast/transform/vectorize_scalar_matrix_initializers.h
ast/transform/vertex_pulling.cc
ast/transform/vertex_pulling.h
ast/transform/while_to_loop.cc
ast/transform/while_to_loop.h
ast/transform/zero_init_workgroup_memory.cc
ast/transform/zero_init_workgroup_memory.h
transform/manager.cc transform/manager.cc
transform/manager.h transform/manager.h
transform/merge_return.cc
transform/merge_return.h
transform/module_scope_var_to_entry_point_param.cc
transform/module_scope_var_to_entry_point_param.h
transform/multiplanar_external_texture.cc
transform/multiplanar_external_texture.h
transform/num_workgroups_from_uniform.cc
transform/num_workgroups_from_uniform.h
transform/packed_vec3.cc
transform/packed_vec3.h
transform/pad_structs.cc
transform/pad_structs.h
transform/preserve_padding.cc
transform/preserve_padding.h
transform/promote_initializers_to_let.cc
transform/promote_initializers_to_let.h
transform/promote_side_effects_to_decl.cc
transform/promote_side_effects_to_decl.h
transform/remove_continue_in_switch.cc
transform/remove_continue_in_switch.h
transform/remove_phonies.cc
transform/remove_phonies.h
transform/remove_unreachable_statements.cc
transform/remove_unreachable_statements.h
transform/renamer.cc
transform/renamer.h
transform/robustness.cc
transform/robustness.h
transform/simplify_pointers.cc
transform/simplify_pointers.h
transform/single_entry_point.cc
transform/single_entry_point.h
transform/spirv_atomic.cc
transform/spirv_atomic.h
transform/std140.cc
transform/std140.h
transform/substitute_override.cc
transform/substitute_override.h
transform/texture_1d_to_2d.cc
transform/texture_1d_to_2d.h
transform/transform.cc
transform/transform.h
transform/truncate_interstage_variables.cc
transform/truncate_interstage_variables.h
transform/unshadow.cc
transform/unshadow.h
transform/utils/get_insertion_point.cc
transform/utils/get_insertion_point.h
transform/utils/hoist_to_decl_before.cc
transform/utils/hoist_to_decl_before.h
transform/var_for_dynamic_index.cc
transform/var_for_dynamic_index.h
transform/vectorize_matrix_conversions.cc
transform/vectorize_matrix_conversions.h
transform/vectorize_scalar_matrix_initializers.cc
transform/vectorize_scalar_matrix_initializers.h
transform/vertex_pulling.cc
transform/vertex_pulling.h
transform/while_to_loop.cc
transform/while_to_loop.h
transform/zero_init_workgroup_memory.cc
transform/zero_init_workgroup_memory.h
type/abstract_float.cc type/abstract_float.cc
type/abstract_float.h type/abstract_float.h
type/abstract_int.cc type/abstract_int.cc
@ -993,7 +993,7 @@ if(TINT_BUILD_TESTS)
symbol_table_test.cc symbol_table_test.cc
symbol_test.cc symbol_test.cc
test_main.cc test_main.cc
transform/transform_test.cc ast/transform/transform_test.cc
type/array_test.cc type/array_test.cc
type/atomic_test.cc type/atomic_test.cc
type/bool_test.cc type/bool_test.cc
@ -1278,60 +1278,60 @@ if(TINT_BUILD_TESTS)
if(${TINT_BUILD_WGSL_READER} AND ${TINT_BUILD_WGSL_WRITER}) if(${TINT_BUILD_WGSL_READER} AND ${TINT_BUILD_WGSL_WRITER})
list(APPEND TINT_TEST_SRCS list(APPEND TINT_TEST_SRCS
ast/module_clone_test.cc ast/module_clone_test.cc
transform/add_empty_entry_point_test.cc ast/transform/add_empty_entry_point_test.cc
transform/add_block_attribute_test.cc ast/transform/add_block_attribute_test.cc
transform/array_length_from_uniform_test.cc ast/transform/array_length_from_uniform_test.cc
transform/binding_remapper_test.cc ast/transform/binding_remapper_test.cc
transform/builtin_polyfill_test.cc ast/transform/builtin_polyfill_test.cc
transform/calculate_array_length_test.cc ast/transform/calculate_array_length_test.cc
transform/clamp_frag_depth_test.cc ast/transform/clamp_frag_depth_test.cc
transform/canonicalize_entry_point_io_test.cc ast/transform/canonicalize_entry_point_io_test.cc
transform/combine_samplers_test.cc ast/transform/combine_samplers_test.cc
transform/decompose_memory_access_test.cc ast/transform/decompose_memory_access_test.cc
transform/decompose_strided_array_test.cc ast/transform/decompose_strided_array_test.cc
transform/decompose_strided_matrix_test.cc ast/transform/decompose_strided_matrix_test.cc
transform/demote_to_helper_test.cc ast/transform/demote_to_helper_test.cc
transform/direct_variable_access_test.cc ast/transform/direct_variable_access_test.cc
transform/disable_uniformity_analysis_test.cc ast/transform/disable_uniformity_analysis_test.cc
transform/expand_compound_assignment_test.cc ast/transform/expand_compound_assignment_test.cc
transform/first_index_offset_test.cc ast/transform/first_index_offset_test.cc
transform/for_loop_to_loop_test.cc ast/transform/for_loop_to_loop_test.cc
transform/expand_compound_assignment_test.cc ast/transform/expand_compound_assignment_test.cc
transform/localize_struct_array_assignment_test.cc ast/transform/localize_struct_array_assignment_test.cc
transform/merge_return_test.cc ast/transform/merge_return_test.cc
transform/module_scope_var_to_entry_point_param_test.cc ast/transform/module_scope_var_to_entry_point_param_test.cc
transform/multiplanar_external_texture_test.cc ast/transform/multiplanar_external_texture_test.cc
transform/num_workgroups_from_uniform_test.cc ast/transform/num_workgroups_from_uniform_test.cc
transform/packed_vec3_test.cc ast/transform/packed_vec3_test.cc
transform/pad_structs_test.cc ast/transform/pad_structs_test.cc
transform/preserve_padding_test.cc ast/transform/preserve_padding_test.cc
transform/promote_initializers_to_let_test.cc ast/transform/promote_initializers_to_let_test.cc
transform/promote_side_effects_to_decl_test.cc ast/transform/promote_side_effects_to_decl_test.cc
transform/remove_continue_in_switch_test.cc ast/transform/remove_continue_in_switch_test.cc
transform/remove_phonies_test.cc ast/transform/remove_phonies_test.cc
transform/remove_unreachable_statements_test.cc ast/transform/remove_unreachable_statements_test.cc
transform/renamer_test.cc ast/transform/renamer_test.cc
transform/robustness_test.cc ast/transform/robustness_test.cc
transform/simplify_pointers_test.cc ast/transform/simplify_pointers_test.cc
transform/single_entry_point_test.cc ast/transform/single_entry_point_test.cc
transform/spirv_atomic_test.cc ast/transform/spirv_atomic_test.cc
transform/std140_exhaustive_test.cc ast/transform/std140_exhaustive_test.cc
transform/std140_f16_test.cc ast/transform/std140_f16_test.cc
transform/std140_f32_test.cc ast/transform/std140_f32_test.cc
transform/std140_test.cc ast/transform/std140_test.cc
transform/substitute_override_test.cc ast/transform/substitute_override_test.cc
transform/test_helper.h ast/transform/test_helper.h
transform/texture_1d_to_2d_test.cc ast/transform/texture_1d_to_2d_test.cc
transform/truncate_interstage_variables_test.cc ast/transform/truncate_interstage_variables_test.cc
transform/unshadow_test.cc ast/transform/unshadow_test.cc
transform/var_for_dynamic_index_test.cc ast/transform/var_for_dynamic_index_test.cc
transform/vectorize_matrix_conversions_test.cc ast/transform/vectorize_matrix_conversions_test.cc
transform/vectorize_scalar_matrix_initializers_test.cc ast/transform/vectorize_scalar_matrix_initializers_test.cc
transform/vertex_pulling_test.cc ast/transform/vertex_pulling_test.cc
transform/while_to_loop_test.cc ast/transform/while_to_loop_test.cc
transform/zero_init_workgroup_memory_test.cc ast/transform/zero_init_workgroup_memory_test.cc
transform/utils/get_insertion_point_test.cc ast/transform/utils/get_insertion_point_test.cc
transform/utils/hoist_to_decl_before_test.cc ast/transform/utils/hoist_to_decl_before_test.cc
) )
endif() endif()

View File

@ -16,7 +16,7 @@
#include "gtest/gtest-spi.h" #include "gtest/gtest-spi.h"
#include "src/tint/ast/alias.h" #include "src/tint/ast/alias.h"
#include "src/tint/ast/test_helper.h" #include "src/tint/ast/test_helper.h"
#include "src/tint/transform/add_block_attribute.h" #include "src/tint/ast/transform/add_block_attribute.h"
namespace tint::ast { namespace tint::ast {
namespace { namespace {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/add_block_attribute.h" #include "src/tint/ast/transform/add_block_attribute.h"
#include <unordered_set> #include <unordered_set>
#include <utility> #include <utility>

View File

@ -12,13 +12,13 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#ifndef SRC_TINT_TRANSFORM_ADD_BLOCK_ATTRIBUTE_H_ #ifndef SRC_TINT_AST_TRANSFORM_ADD_BLOCK_ATTRIBUTE_H_
#define SRC_TINT_TRANSFORM_ADD_BLOCK_ATTRIBUTE_H_ #define SRC_TINT_AST_TRANSFORM_ADD_BLOCK_ATTRIBUTE_H_
#include <string> #include <string>
#include "src/tint/ast/internal_attribute.h" #include "src/tint/ast/internal_attribute.h"
#include "src/tint/transform/transform.h" #include "src/tint/ast/transform/transform.h"
namespace tint::transform { namespace tint::transform {
@ -61,4 +61,4 @@ class AddBlockAttribute final : public utils::Castable<AddBlockAttribute, Transf
} // namespace tint::transform } // namespace tint::transform
#endif // SRC_TINT_TRANSFORM_ADD_BLOCK_ATTRIBUTE_H_ #endif // SRC_TINT_AST_TRANSFORM_ADD_BLOCK_ATTRIBUTE_H_

View File

@ -12,12 +12,12 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/add_block_attribute.h" #include "src/tint/ast/transform/add_block_attribute.h"
#include <memory> #include <memory>
#include <utility> #include <utility>
#include "src/tint/transform/test_helper.h" #include "src/tint/ast/transform/test_helper.h"
namespace tint::transform { namespace tint::transform {
namespace { namespace {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/add_empty_entry_point.h" #include "src/tint/ast/transform/add_empty_entry_point.h"
#include <utility> #include <utility>

View File

@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#ifndef SRC_TINT_TRANSFORM_ADD_EMPTY_ENTRY_POINT_H_ #ifndef SRC_TINT_AST_TRANSFORM_ADD_EMPTY_ENTRY_POINT_H_
#define SRC_TINT_TRANSFORM_ADD_EMPTY_ENTRY_POINT_H_ #define SRC_TINT_AST_TRANSFORM_ADD_EMPTY_ENTRY_POINT_H_
#include "src/tint/transform/transform.h" #include "src/tint/ast/transform/transform.h"
namespace tint::transform { namespace tint::transform {
@ -35,4 +35,4 @@ class AddEmptyEntryPoint final : public utils::Castable<AddEmptyEntryPoint, Tran
} // namespace tint::transform } // namespace tint::transform
#endif // SRC_TINT_TRANSFORM_ADD_EMPTY_ENTRY_POINT_H_ #endif // SRC_TINT_AST_TRANSFORM_ADD_EMPTY_ENTRY_POINT_H_

View File

@ -12,11 +12,11 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/add_empty_entry_point.h" #include "src/tint/ast/transform/add_empty_entry_point.h"
#include <utility> #include <utility>
#include "src/tint/transform/test_helper.h" #include "src/tint/ast/transform/test_helper.h"
namespace tint::transform { namespace tint::transform {
namespace { namespace {

View File

@ -12,18 +12,18 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/array_length_from_uniform.h" #include "src/tint/ast/transform/array_length_from_uniform.h"
#include <memory> #include <memory>
#include <string> #include <string>
#include <utility> #include <utility>
#include "src/tint/ast/transform/simplify_pointers.h"
#include "src/tint/program_builder.h" #include "src/tint/program_builder.h"
#include "src/tint/sem/call.h" #include "src/tint/sem/call.h"
#include "src/tint/sem/function.h" #include "src/tint/sem/function.h"
#include "src/tint/sem/statement.h" #include "src/tint/sem/statement.h"
#include "src/tint/sem/variable.h" #include "src/tint/sem/variable.h"
#include "src/tint/transform/simplify_pointers.h"
TINT_INSTANTIATE_TYPEINFO(tint::transform::ArrayLengthFromUniform); TINT_INSTANTIATE_TYPEINFO(tint::transform::ArrayLengthFromUniform);
TINT_INSTANTIATE_TYPEINFO(tint::transform::ArrayLengthFromUniform::Config); TINT_INSTANTIATE_TYPEINFO(tint::transform::ArrayLengthFromUniform::Config);

View File

@ -12,14 +12,14 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#ifndef SRC_TINT_TRANSFORM_ARRAY_LENGTH_FROM_UNIFORM_H_ #ifndef SRC_TINT_AST_TRANSFORM_ARRAY_LENGTH_FROM_UNIFORM_H_
#define SRC_TINT_TRANSFORM_ARRAY_LENGTH_FROM_UNIFORM_H_ #define SRC_TINT_AST_TRANSFORM_ARRAY_LENGTH_FROM_UNIFORM_H_
#include <unordered_map> #include <unordered_map>
#include <unordered_set> #include <unordered_set>
#include "src/tint/ast/transform/transform.h"
#include "src/tint/sem/binding_point.h" #include "src/tint/sem/binding_point.h"
#include "src/tint/transform/transform.h"
// Forward declarations // Forward declarations
namespace tint { namespace tint {
@ -111,4 +111,4 @@ class ArrayLengthFromUniform final : public utils::Castable<ArrayLengthFromUnifo
} // namespace tint::transform } // namespace tint::transform
#endif // SRC_TINT_TRANSFORM_ARRAY_LENGTH_FROM_UNIFORM_H_ #endif // SRC_TINT_AST_TRANSFORM_ARRAY_LENGTH_FROM_UNIFORM_H_

View File

@ -12,13 +12,13 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/array_length_from_uniform.h" #include "src/tint/ast/transform/array_length_from_uniform.h"
#include <utility> #include <utility>
#include "src/tint/transform/simplify_pointers.h" #include "src/tint/ast/transform/simplify_pointers.h"
#include "src/tint/transform/test_helper.h" #include "src/tint/ast/transform/test_helper.h"
#include "src/tint/transform/unshadow.h" #include "src/tint/ast/transform/unshadow.h"
namespace tint::transform { namespace tint::transform {
namespace { namespace {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/binding_remapper.h" #include "src/tint/ast/transform/binding_remapper.h"
#include <string> #include <string>
#include <unordered_set> #include <unordered_set>

View File

@ -12,14 +12,14 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#ifndef SRC_TINT_TRANSFORM_BINDING_REMAPPER_H_ #ifndef SRC_TINT_AST_TRANSFORM_BINDING_REMAPPER_H_
#define SRC_TINT_TRANSFORM_BINDING_REMAPPER_H_ #define SRC_TINT_AST_TRANSFORM_BINDING_REMAPPER_H_
#include <unordered_map> #include <unordered_map>
#include "src/tint/ast/transform/transform.h"
#include "src/tint/builtin/access.h" #include "src/tint/builtin/access.h"
#include "src/tint/sem/binding_point.h" #include "src/tint/sem/binding_point.h"
#include "src/tint/transform/transform.h"
namespace tint::transform { namespace tint::transform {
@ -75,4 +75,4 @@ class BindingRemapper final : public utils::Castable<BindingRemapper, Transform>
} // namespace tint::transform } // namespace tint::transform
#endif // SRC_TINT_TRANSFORM_BINDING_REMAPPER_H_ #endif // SRC_TINT_AST_TRANSFORM_BINDING_REMAPPER_H_

View File

@ -12,11 +12,11 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/binding_remapper.h" #include "src/tint/ast/transform/binding_remapper.h"
#include <utility> #include <utility>
#include "src/tint/transform/test_helper.h" #include "src/tint/ast/transform/test_helper.h"
namespace tint::transform { namespace tint::transform {
namespace { namespace {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/builtin_polyfill.h" #include "src/tint/ast/transform/builtin_polyfill.h"
#include <algorithm> #include <algorithm>
#include <tuple> #include <tuple>

View File

@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#ifndef SRC_TINT_TRANSFORM_BUILTIN_POLYFILL_H_ #ifndef SRC_TINT_AST_TRANSFORM_BUILTIN_POLYFILL_H_
#define SRC_TINT_TRANSFORM_BUILTIN_POLYFILL_H_ #define SRC_TINT_AST_TRANSFORM_BUILTIN_POLYFILL_H_
#include "src/tint/transform/transform.h" #include "src/tint/ast/transform/transform.h"
namespace tint::transform { namespace tint::transform {
@ -115,4 +115,4 @@ class BuiltinPolyfill final : public utils::Castable<BuiltinPolyfill, Transform>
} // namespace tint::transform } // namespace tint::transform
#endif // SRC_TINT_TRANSFORM_BUILTIN_POLYFILL_H_ #endif // SRC_TINT_AST_TRANSFORM_BUILTIN_POLYFILL_H_

View File

@ -12,12 +12,12 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/builtin_polyfill.h" #include "src/tint/ast/transform/builtin_polyfill.h"
#include <utility> #include <utility>
#include "src/tint/transform/direct_variable_access.h" #include "src/tint/ast/transform/direct_variable_access.h"
#include "src/tint/transform/test_helper.h" #include "src/tint/ast/transform/test_helper.h"
namespace tint::transform { namespace tint::transform {
namespace { namespace {

View File

@ -12,13 +12,14 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/calculate_array_length.h" #include "src/tint/ast/transform/calculate_array_length.h"
#include <unordered_map> #include <unordered_map>
#include <utility> #include <utility>
#include "src/tint/ast/call_statement.h" #include "src/tint/ast/call_statement.h"
#include "src/tint/ast/disable_validation_attribute.h" #include "src/tint/ast/disable_validation_attribute.h"
#include "src/tint/ast/transform/simplify_pointers.h"
#include "src/tint/program_builder.h" #include "src/tint/program_builder.h"
#include "src/tint/sem/block_statement.h" #include "src/tint/sem/block_statement.h"
#include "src/tint/sem/call.h" #include "src/tint/sem/call.h"
@ -27,7 +28,6 @@
#include "src/tint/sem/struct.h" #include "src/tint/sem/struct.h"
#include "src/tint/sem/variable.h" #include "src/tint/sem/variable.h"
#include "src/tint/switch.h" #include "src/tint/switch.h"
#include "src/tint/transform/simplify_pointers.h"
#include "src/tint/type/reference.h" #include "src/tint/type/reference.h"
#include "src/tint/utils/hash.h" #include "src/tint/utils/hash.h"
#include "src/tint/utils/map.h" #include "src/tint/utils/map.h"

View File

@ -12,13 +12,13 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#ifndef SRC_TINT_TRANSFORM_CALCULATE_ARRAY_LENGTH_H_ #ifndef SRC_TINT_AST_TRANSFORM_CALCULATE_ARRAY_LENGTH_H_
#define SRC_TINT_TRANSFORM_CALCULATE_ARRAY_LENGTH_H_ #define SRC_TINT_AST_TRANSFORM_CALCULATE_ARRAY_LENGTH_H_
#include <string> #include <string>
#include "src/tint/ast/internal_attribute.h" #include "src/tint/ast/internal_attribute.h"
#include "src/tint/transform/transform.h" #include "src/tint/ast/transform/transform.h"
// Forward declarations // Forward declarations
namespace tint { namespace tint {
@ -68,4 +68,4 @@ class CalculateArrayLength final : public utils::Castable<CalculateArrayLength,
} // namespace tint::transform } // namespace tint::transform
#endif // SRC_TINT_TRANSFORM_CALCULATE_ARRAY_LENGTH_H_ #endif // SRC_TINT_AST_TRANSFORM_CALCULATE_ARRAY_LENGTH_H_

View File

@ -12,11 +12,11 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/calculate_array_length.h" #include "src/tint/ast/transform/calculate_array_length.h"
#include "src/tint/transform/simplify_pointers.h" #include "src/tint/ast/transform/simplify_pointers.h"
#include "src/tint/transform/test_helper.h" #include "src/tint/ast/transform/test_helper.h"
#include "src/tint/transform/unshadow.h" #include "src/tint/ast/transform/unshadow.h"
namespace tint::transform { namespace tint::transform {
namespace { namespace {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/canonicalize_entry_point_io.h" #include "src/tint/ast/transform/canonicalize_entry_point_io.h"
#include <algorithm> #include <algorithm>
#include <string> #include <string>
@ -21,10 +21,10 @@
#include <vector> #include <vector>
#include "src/tint/ast/disable_validation_attribute.h" #include "src/tint/ast/disable_validation_attribute.h"
#include "src/tint/ast/transform/unshadow.h"
#include "src/tint/builtin/builtin_value.h" #include "src/tint/builtin/builtin_value.h"
#include "src/tint/program_builder.h" #include "src/tint/program_builder.h"
#include "src/tint/sem/function.h" #include "src/tint/sem/function.h"
#include "src/tint/transform/unshadow.h"
using namespace tint::number_suffixes; // NOLINT using namespace tint::number_suffixes; // NOLINT

View File

@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#ifndef SRC_TINT_TRANSFORM_CANONICALIZE_ENTRY_POINT_IO_H_ #ifndef SRC_TINT_AST_TRANSFORM_CANONICALIZE_ENTRY_POINT_IO_H_
#define SRC_TINT_TRANSFORM_CANONICALIZE_ENTRY_POINT_IO_H_ #define SRC_TINT_AST_TRANSFORM_CANONICALIZE_ENTRY_POINT_IO_H_
#include "src/tint/transform/transform.h" #include "src/tint/ast/transform/transform.h"
namespace tint::transform { namespace tint::transform {
@ -138,4 +138,4 @@ class CanonicalizeEntryPointIO final : public utils::Castable<CanonicalizeEntryP
} // namespace tint::transform } // namespace tint::transform
#endif // SRC_TINT_TRANSFORM_CANONICALIZE_ENTRY_POINT_IO_H_ #endif // SRC_TINT_AST_TRANSFORM_CANONICALIZE_ENTRY_POINT_IO_H_

View File

@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/canonicalize_entry_point_io.h" #include "src/tint/ast/transform/canonicalize_entry_point_io.h"
#include "src/tint/transform/test_helper.h" #include "src/tint/ast/transform/test_helper.h"
#include "src/tint/transform/unshadow.h" #include "src/tint/ast/transform/unshadow.h"
namespace tint::transform { namespace tint::transform {
namespace { namespace {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/clamp_frag_depth.h" #include "src/tint/ast/transform/clamp_frag_depth.h"
#include <utility> #include <utility>

View File

@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#ifndef SRC_TINT_TRANSFORM_CLAMP_FRAG_DEPTH_H_ #ifndef SRC_TINT_AST_TRANSFORM_CLAMP_FRAG_DEPTH_H_
#define SRC_TINT_TRANSFORM_CLAMP_FRAG_DEPTH_H_ #define SRC_TINT_AST_TRANSFORM_CLAMP_FRAG_DEPTH_H_
#include "src/tint/transform/transform.h" #include "src/tint/ast/transform/transform.h"
// Forward declarations // Forward declarations
namespace tint { namespace tint {
@ -72,4 +72,4 @@ class ClampFragDepth final : public utils::Castable<ClampFragDepth, Transform> {
} // namespace tint::transform } // namespace tint::transform
#endif // SRC_TINT_TRANSFORM_CLAMP_FRAG_DEPTH_H_ #endif // SRC_TINT_AST_TRANSFORM_CLAMP_FRAG_DEPTH_H_

View File

@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/clamp_frag_depth.h" #include "src/tint/ast/transform/clamp_frag_depth.h"
#include "src/tint/transform/test_helper.h" #include "src/tint/ast/transform/test_helper.h"
namespace tint::transform { namespace tint::transform {
namespace { namespace {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/combine_samplers.h" #include "src/tint/ast/transform/combine_samplers.h"
#include <string> #include <string>
#include <unordered_map> #include <unordered_map>

View File

@ -12,14 +12,14 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#ifndef SRC_TINT_TRANSFORM_COMBINE_SAMPLERS_H_ #ifndef SRC_TINT_AST_TRANSFORM_COMBINE_SAMPLERS_H_
#define SRC_TINT_TRANSFORM_COMBINE_SAMPLERS_H_ #define SRC_TINT_AST_TRANSFORM_COMBINE_SAMPLERS_H_
#include <string> #include <string>
#include <unordered_map> #include <unordered_map>
#include "src/tint/ast/transform/transform.h"
#include "src/tint/sem/sampler_texture_pair.h" #include "src/tint/sem/sampler_texture_pair.h"
#include "src/tint/transform/transform.h"
namespace tint::transform { namespace tint::transform {
@ -99,4 +99,4 @@ class CombineSamplers final : public utils::Castable<CombineSamplers, Transform>
} // namespace tint::transform } // namespace tint::transform
#endif // SRC_TINT_TRANSFORM_COMBINE_SAMPLERS_H_ #endif // SRC_TINT_AST_TRANSFORM_COMBINE_SAMPLERS_H_

View File

@ -12,12 +12,12 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/combine_samplers.h" #include "src/tint/ast/transform/combine_samplers.h"
#include <memory> #include <memory>
#include <utility> #include <utility>
#include "src/tint/transform/test_helper.h" #include "src/tint/ast/transform/test_helper.h"
namespace tint::transform { namespace tint::transform {
namespace { namespace {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/decompose_memory_access.h" #include "src/tint/ast/transform/decompose_memory_access.h"
#include <memory> #include <memory>
#include <string> #include <string>

View File

@ -12,13 +12,13 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#ifndef SRC_TINT_TRANSFORM_DECOMPOSE_MEMORY_ACCESS_H_ #ifndef SRC_TINT_AST_TRANSFORM_DECOMPOSE_MEMORY_ACCESS_H_
#define SRC_TINT_TRANSFORM_DECOMPOSE_MEMORY_ACCESS_H_ #define SRC_TINT_AST_TRANSFORM_DECOMPOSE_MEMORY_ACCESS_H_
#include <string> #include <string>
#include "src/tint/ast/internal_attribute.h" #include "src/tint/ast/internal_attribute.h"
#include "src/tint/transform/transform.h" #include "src/tint/ast/transform/transform.h"
// Forward declarations // Forward declarations
namespace tint { namespace tint {
@ -131,4 +131,4 @@ class DecomposeMemoryAccess final : public utils::Castable<DecomposeMemoryAccess
} // namespace tint::transform } // namespace tint::transform
#endif // SRC_TINT_TRANSFORM_DECOMPOSE_MEMORY_ACCESS_H_ #endif // SRC_TINT_AST_TRANSFORM_DECOMPOSE_MEMORY_ACCESS_H_

View File

@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/decompose_memory_access.h" #include "src/tint/ast/transform/decompose_memory_access.h"
#include "src/tint/transform/test_helper.h" #include "src/tint/ast/transform/test_helper.h"
namespace tint::transform { namespace tint::transform {
namespace { namespace {

View File

@ -12,19 +12,19 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/decompose_strided_array.h" #include "src/tint/ast/transform/decompose_strided_array.h"
#include <unordered_map> #include <unordered_map>
#include <utility> #include <utility>
#include <vector> #include <vector>
#include "src/tint/ast/transform/simplify_pointers.h"
#include "src/tint/program_builder.h" #include "src/tint/program_builder.h"
#include "src/tint/sem/call.h" #include "src/tint/sem/call.h"
#include "src/tint/sem/member_accessor_expression.h" #include "src/tint/sem/member_accessor_expression.h"
#include "src/tint/sem/type_expression.h" #include "src/tint/sem/type_expression.h"
#include "src/tint/sem/value_constructor.h" #include "src/tint/sem/value_constructor.h"
#include "src/tint/sem/value_expression.h" #include "src/tint/sem/value_expression.h"
#include "src/tint/transform/simplify_pointers.h"
#include "src/tint/utils/hash.h" #include "src/tint/utils/hash.h"
#include "src/tint/utils/map.h" #include "src/tint/utils/map.h"

View File

@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#ifndef SRC_TINT_TRANSFORM_DECOMPOSE_STRIDED_ARRAY_H_ #ifndef SRC_TINT_AST_TRANSFORM_DECOMPOSE_STRIDED_ARRAY_H_
#define SRC_TINT_TRANSFORM_DECOMPOSE_STRIDED_ARRAY_H_ #define SRC_TINT_AST_TRANSFORM_DECOMPOSE_STRIDED_ARRAY_H_
#include "src/tint/transform/transform.h" #include "src/tint/ast/transform/transform.h"
namespace tint::transform { namespace tint::transform {
@ -43,4 +43,4 @@ class DecomposeStridedArray final : public utils::Castable<DecomposeStridedArray
} // namespace tint::transform } // namespace tint::transform
#endif // SRC_TINT_TRANSFORM_DECOMPOSE_STRIDED_ARRAY_H_ #endif // SRC_TINT_AST_TRANSFORM_DECOMPOSE_STRIDED_ARRAY_H_

View File

@ -12,16 +12,16 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/decompose_strided_array.h" #include "src/tint/ast/transform/decompose_strided_array.h"
#include <memory> #include <memory>
#include <utility> #include <utility>
#include <vector> #include <vector>
#include "src/tint/ast/transform/simplify_pointers.h"
#include "src/tint/ast/transform/test_helper.h"
#include "src/tint/ast/transform/unshadow.h"
#include "src/tint/program_builder.h" #include "src/tint/program_builder.h"
#include "src/tint/transform/simplify_pointers.h"
#include "src/tint/transform/test_helper.h"
#include "src/tint/transform/unshadow.h"
using namespace tint::number_suffixes; // NOLINT using namespace tint::number_suffixes; // NOLINT

View File

@ -12,16 +12,16 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/decompose_strided_matrix.h" #include "src/tint/ast/transform/decompose_strided_matrix.h"
#include <unordered_map> #include <unordered_map>
#include <utility> #include <utility>
#include <vector> #include <vector>
#include "src/tint/ast/transform/simplify_pointers.h"
#include "src/tint/program_builder.h" #include "src/tint/program_builder.h"
#include "src/tint/sem/member_accessor_expression.h" #include "src/tint/sem/member_accessor_expression.h"
#include "src/tint/sem/value_expression.h" #include "src/tint/sem/value_expression.h"
#include "src/tint/transform/simplify_pointers.h"
#include "src/tint/utils/hash.h" #include "src/tint/utils/hash.h"
#include "src/tint/utils/map.h" #include "src/tint/utils/map.h"

View File

@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#ifndef SRC_TINT_TRANSFORM_DECOMPOSE_STRIDED_MATRIX_H_ #ifndef SRC_TINT_AST_TRANSFORM_DECOMPOSE_STRIDED_MATRIX_H_
#define SRC_TINT_TRANSFORM_DECOMPOSE_STRIDED_MATRIX_H_ #define SRC_TINT_AST_TRANSFORM_DECOMPOSE_STRIDED_MATRIX_H_
#include "src/tint/transform/transform.h" #include "src/tint/ast/transform/transform.h"
namespace tint::transform { namespace tint::transform {
@ -43,4 +43,4 @@ class DecomposeStridedMatrix final : public utils::Castable<DecomposeStridedMatr
} // namespace tint::transform } // namespace tint::transform
#endif // SRC_TINT_TRANSFORM_DECOMPOSE_STRIDED_MATRIX_H_ #endif // SRC_TINT_AST_TRANSFORM_DECOMPOSE_STRIDED_MATRIX_H_

View File

@ -12,17 +12,17 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/decompose_strided_matrix.h" #include "src/tint/ast/transform/decompose_strided_matrix.h"
#include <memory> #include <memory>
#include <utility> #include <utility>
#include <vector> #include <vector>
#include "src/tint/ast/disable_validation_attribute.h" #include "src/tint/ast/disable_validation_attribute.h"
#include "src/tint/ast/transform/simplify_pointers.h"
#include "src/tint/ast/transform/test_helper.h"
#include "src/tint/ast/transform/unshadow.h"
#include "src/tint/program_builder.h" #include "src/tint/program_builder.h"
#include "src/tint/transform/simplify_pointers.h"
#include "src/tint/transform/test_helper.h"
#include "src/tint/transform/unshadow.h"
using namespace tint::number_suffixes; // NOLINT using namespace tint::number_suffixes; // NOLINT

View File

@ -12,19 +12,19 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/demote_to_helper.h" #include "src/tint/ast/transform/demote_to_helper.h"
#include <unordered_map> #include <unordered_map>
#include <unordered_set> #include <unordered_set>
#include <utility> #include <utility>
#include "src/tint/ast/transform/utils/hoist_to_decl_before.h"
#include "src/tint/program_builder.h" #include "src/tint/program_builder.h"
#include "src/tint/sem/block_statement.h" #include "src/tint/sem/block_statement.h"
#include "src/tint/sem/call.h" #include "src/tint/sem/call.h"
#include "src/tint/sem/function.h" #include "src/tint/sem/function.h"
#include "src/tint/sem/statement.h" #include "src/tint/sem/statement.h"
#include "src/tint/switch.h" #include "src/tint/switch.h"
#include "src/tint/transform/utils/hoist_to_decl_before.h"
#include "src/tint/type/reference.h" #include "src/tint/type/reference.h"
#include "src/tint/utils/map.h" #include "src/tint/utils/map.h"

View File

@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#ifndef SRC_TINT_TRANSFORM_DEMOTE_TO_HELPER_H_ #ifndef SRC_TINT_AST_TRANSFORM_DEMOTE_TO_HELPER_H_
#define SRC_TINT_TRANSFORM_DEMOTE_TO_HELPER_H_ #define SRC_TINT_AST_TRANSFORM_DEMOTE_TO_HELPER_H_
#include "src/tint/transform/transform.h" #include "src/tint/ast/transform/transform.h"
namespace tint::transform { namespace tint::transform {
@ -44,4 +44,4 @@ class DemoteToHelper final : public utils::Castable<DemoteToHelper, Transform> {
} // namespace tint::transform } // namespace tint::transform
#endif // SRC_TINT_TRANSFORM_DEMOTE_TO_HELPER_H_ #endif // SRC_TINT_AST_TRANSFORM_DEMOTE_TO_HELPER_H_

View File

@ -12,11 +12,11 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/demote_to_helper.h" #include "src/tint/ast/transform/demote_to_helper.h"
#include <utility> #include <utility>
#include "src/tint/transform/test_helper.h" #include "src/tint/ast/transform/test_helper.h"
namespace tint::transform { namespace tint::transform {
namespace { namespace {

View File

@ -12,12 +12,13 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/direct_variable_access.h" #include "src/tint/ast/transform/direct_variable_access.h"
#include <algorithm> #include <algorithm>
#include <string> #include <string>
#include <utility> #include <utility>
#include "src/tint/ast/transform/utils/hoist_to_decl_before.h"
#include "src/tint/ast/traverse_expressions.h" #include "src/tint/ast/traverse_expressions.h"
#include "src/tint/program_builder.h" #include "src/tint/program_builder.h"
#include "src/tint/sem/call.h" #include "src/tint/sem/call.h"
@ -28,7 +29,6 @@
#include "src/tint/sem/statement.h" #include "src/tint/sem/statement.h"
#include "src/tint/sem/struct.h" #include "src/tint/sem/struct.h"
#include "src/tint/sem/variable.h" #include "src/tint/sem/variable.h"
#include "src/tint/transform/utils/hoist_to_decl_before.h"
#include "src/tint/type/abstract_int.h" #include "src/tint/type/abstract_int.h"
#include "src/tint/utils/reverse.h" #include "src/tint/utils/reverse.h"
#include "src/tint/utils/scoped_assignment.h" #include "src/tint/utils/scoped_assignment.h"

View File

@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#ifndef SRC_TINT_TRANSFORM_DIRECT_VARIABLE_ACCESS_H_ #ifndef SRC_TINT_AST_TRANSFORM_DIRECT_VARIABLE_ACCESS_H_
#define SRC_TINT_TRANSFORM_DIRECT_VARIABLE_ACCESS_H_ #define SRC_TINT_AST_TRANSFORM_DIRECT_VARIABLE_ACCESS_H_
#include "src/tint/transform/transform.h" #include "src/tint/ast/transform/transform.h"
namespace tint::transform { namespace tint::transform {
@ -29,7 +29,7 @@ namespace tint::transform {
/// unique variable. Calls to specialized functions are transformed so that the pointer arguments /// unique variable. Calls to specialized functions are transformed so that the pointer arguments
/// are replaced with an array of access-chain indicies, and if the pointer is in the 'function' or /// are replaced with an array of access-chain indicies, and if the pointer is in the 'function' or
/// 'private' address space, also with a pointer to the root object. For more information, see the /// 'private' address space, also with a pointer to the root object. For more information, see the
/// comments in src/tint/transform/direct_variable_access.cc. /// comments in src/tint/ast/transform/direct_variable_access.cc.
/// ///
/// @note DirectVariableAccess requires the transform::Unshadow transform to have been run first. /// @note DirectVariableAccess requires the transform::Unshadow transform to have been run first.
class DirectVariableAccess final : public utils::Castable<DirectVariableAccess, Transform> { class DirectVariableAccess final : public utils::Castable<DirectVariableAccess, Transform> {
@ -71,4 +71,4 @@ class DirectVariableAccess final : public utils::Castable<DirectVariableAccess,
} // namespace tint::transform } // namespace tint::transform
#endif // SRC_TINT_TRANSFORM_DIRECT_VARIABLE_ACCESS_H_ #endif // SRC_TINT_AST_TRANSFORM_DIRECT_VARIABLE_ACCESS_H_

View File

@ -12,12 +12,12 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/direct_variable_access.h" #include "src/tint/ast/transform/direct_variable_access.h"
#include <memory> #include <memory>
#include <utility> #include <utility>
#include "src/tint/transform/test_helper.h" #include "src/tint/ast/transform/test_helper.h"
#include "src/tint/utils/string.h" #include "src/tint/utils/string.h"
namespace tint::transform { namespace tint::transform {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/disable_uniformity_analysis.h" #include "src/tint/ast/transform/disable_uniformity_analysis.h"
#include <utility> #include <utility>

View File

@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#ifndef SRC_TINT_TRANSFORM_DISABLE_UNIFORMITY_ANALYSIS_H_ #ifndef SRC_TINT_AST_TRANSFORM_DISABLE_UNIFORMITY_ANALYSIS_H_
#define SRC_TINT_TRANSFORM_DISABLE_UNIFORMITY_ANALYSIS_H_ #define SRC_TINT_AST_TRANSFORM_DISABLE_UNIFORMITY_ANALYSIS_H_
#include "src/tint/transform/transform.h" #include "src/tint/ast/transform/transform.h"
namespace tint::transform { namespace tint::transform {
@ -36,4 +36,4 @@ class DisableUniformityAnalysis final
} // namespace tint::transform } // namespace tint::transform
#endif // SRC_TINT_TRANSFORM_DISABLE_UNIFORMITY_ANALYSIS_H_ #endif // SRC_TINT_AST_TRANSFORM_DISABLE_UNIFORMITY_ANALYSIS_H_

View File

@ -12,12 +12,12 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/disable_uniformity_analysis.h" #include "src/tint/ast/transform/disable_uniformity_analysis.h"
#include <string> #include <string>
#include <utility> #include <utility>
#include "src/tint/transform/test_helper.h" #include "src/tint/ast/transform/test_helper.h"
namespace tint::transform { namespace tint::transform {
namespace { namespace {

View File

@ -12,18 +12,18 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/expand_compound_assignment.h" #include "src/tint/ast/transform/expand_compound_assignment.h"
#include <utility> #include <utility>
#include "src/tint/ast/compound_assignment_statement.h" #include "src/tint/ast/compound_assignment_statement.h"
#include "src/tint/ast/increment_decrement_statement.h" #include "src/tint/ast/increment_decrement_statement.h"
#include "src/tint/ast/transform/utils/hoist_to_decl_before.h"
#include "src/tint/program_builder.h" #include "src/tint/program_builder.h"
#include "src/tint/sem/block_statement.h" #include "src/tint/sem/block_statement.h"
#include "src/tint/sem/for_loop_statement.h" #include "src/tint/sem/for_loop_statement.h"
#include "src/tint/sem/statement.h" #include "src/tint/sem/statement.h"
#include "src/tint/sem/value_expression.h" #include "src/tint/sem/value_expression.h"
#include "src/tint/transform/utils/hoist_to_decl_before.h"
TINT_INSTANTIATE_TYPEINFO(tint::transform::ExpandCompoundAssignment); TINT_INSTANTIATE_TYPEINFO(tint::transform::ExpandCompoundAssignment);

View File

@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#ifndef SRC_TINT_TRANSFORM_EXPAND_COMPOUND_ASSIGNMENT_H_ #ifndef SRC_TINT_AST_TRANSFORM_EXPAND_COMPOUND_ASSIGNMENT_H_
#define SRC_TINT_TRANSFORM_EXPAND_COMPOUND_ASSIGNMENT_H_ #define SRC_TINT_AST_TRANSFORM_EXPAND_COMPOUND_ASSIGNMENT_H_
#include "src/tint/transform/transform.h" #include "src/tint/ast/transform/transform.h"
namespace tint::transform { namespace tint::transform {
@ -56,4 +56,4 @@ class ExpandCompoundAssignment final : public utils::Castable<ExpandCompoundAssi
} // namespace tint::transform } // namespace tint::transform
#endif // SRC_TINT_TRANSFORM_EXPAND_COMPOUND_ASSIGNMENT_H_ #endif // SRC_TINT_AST_TRANSFORM_EXPAND_COMPOUND_ASSIGNMENT_H_

View File

@ -12,11 +12,11 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/expand_compound_assignment.h" #include "src/tint/ast/transform/expand_compound_assignment.h"
#include <utility> #include <utility>
#include "src/tint/transform/test_helper.h" #include "src/tint/ast/transform/test_helper.h"
namespace tint::transform { namespace tint::transform {
namespace { namespace {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/first_index_offset.h" #include "src/tint/ast/transform/first_index_offset.h"
#include <memory> #include <memory>
#include <unordered_map> #include <unordered_map>

View File

@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#ifndef SRC_TINT_TRANSFORM_FIRST_INDEX_OFFSET_H_ #ifndef SRC_TINT_AST_TRANSFORM_FIRST_INDEX_OFFSET_H_
#define SRC_TINT_TRANSFORM_FIRST_INDEX_OFFSET_H_ #define SRC_TINT_AST_TRANSFORM_FIRST_INDEX_OFFSET_H_
#include "src/tint/transform/transform.h" #include "src/tint/ast/transform/transform.h"
namespace tint::transform { namespace tint::transform {
@ -115,4 +115,4 @@ class FirstIndexOffset final : public utils::Castable<FirstIndexOffset, Transfor
} // namespace tint::transform } // namespace tint::transform
#endif // SRC_TINT_TRANSFORM_FIRST_INDEX_OFFSET_H_ #endif // SRC_TINT_AST_TRANSFORM_FIRST_INDEX_OFFSET_H_

View File

@ -12,13 +12,13 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/first_index_offset.h" #include "src/tint/ast/transform/first_index_offset.h"
#include <memory> #include <memory>
#include <utility> #include <utility>
#include <vector> #include <vector>
#include "src/tint/transform/test_helper.h" #include "src/tint/ast/transform/test_helper.h"
namespace tint::transform { namespace tint::transform {
namespace { namespace {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/for_loop_to_loop.h" #include "src/tint/ast/transform/for_loop_to_loop.h"
#include <utility> #include <utility>

View File

@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#ifndef SRC_TINT_TRANSFORM_FOR_LOOP_TO_LOOP_H_ #ifndef SRC_TINT_AST_TRANSFORM_FOR_LOOP_TO_LOOP_H_
#define SRC_TINT_TRANSFORM_FOR_LOOP_TO_LOOP_H_ #define SRC_TINT_AST_TRANSFORM_FOR_LOOP_TO_LOOP_H_
#include "src/tint/transform/transform.h" #include "src/tint/ast/transform/transform.h"
namespace tint::transform { namespace tint::transform {
@ -37,4 +37,4 @@ class ForLoopToLoop final : public utils::Castable<ForLoopToLoop, Transform> {
} // namespace tint::transform } // namespace tint::transform
#endif // SRC_TINT_TRANSFORM_FOR_LOOP_TO_LOOP_H_ #endif // SRC_TINT_AST_TRANSFORM_FOR_LOOP_TO_LOOP_H_

View File

@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/for_loop_to_loop.h" #include "src/tint/ast/transform/for_loop_to_loop.h"
#include "src/tint/transform/test_helper.h" #include "src/tint/ast/transform/test_helper.h"
namespace tint::transform { namespace tint::transform {
namespace { namespace {

View File

@ -12,19 +12,19 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/localize_struct_array_assignment.h" #include "src/tint/ast/transform/localize_struct_array_assignment.h"
#include <unordered_map> #include <unordered_map>
#include <utility> #include <utility>
#include "src/tint/ast/assignment_statement.h" #include "src/tint/ast/assignment_statement.h"
#include "src/tint/ast/transform/simplify_pointers.h"
#include "src/tint/ast/traverse_expressions.h" #include "src/tint/ast/traverse_expressions.h"
#include "src/tint/program_builder.h" #include "src/tint/program_builder.h"
#include "src/tint/sem/member_accessor_expression.h" #include "src/tint/sem/member_accessor_expression.h"
#include "src/tint/sem/statement.h" #include "src/tint/sem/statement.h"
#include "src/tint/sem/value_expression.h" #include "src/tint/sem/value_expression.h"
#include "src/tint/sem/variable.h" #include "src/tint/sem/variable.h"
#include "src/tint/transform/simplify_pointers.h"
#include "src/tint/type/reference.h" #include "src/tint/type/reference.h"
#include "src/tint/utils/scoped_assignment.h" #include "src/tint/utils/scoped_assignment.h"

View File

@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#ifndef SRC_TINT_TRANSFORM_LOCALIZE_STRUCT_ARRAY_ASSIGNMENT_H_ #ifndef SRC_TINT_AST_TRANSFORM_LOCALIZE_STRUCT_ARRAY_ASSIGNMENT_H_
#define SRC_TINT_TRANSFORM_LOCALIZE_STRUCT_ARRAY_ASSIGNMENT_H_ #define SRC_TINT_AST_TRANSFORM_LOCALIZE_STRUCT_ARRAY_ASSIGNMENT_H_
#include "src/tint/transform/transform.h" #include "src/tint/ast/transform/transform.h"
namespace tint::transform { namespace tint::transform {
@ -47,4 +47,4 @@ class LocalizeStructArrayAssignment final
} // namespace tint::transform } // namespace tint::transform
#endif // SRC_TINT_TRANSFORM_LOCALIZE_STRUCT_ARRAY_ASSIGNMENT_H_ #endif // SRC_TINT_AST_TRANSFORM_LOCALIZE_STRUCT_ARRAY_ASSIGNMENT_H_

View File

@ -12,11 +12,11 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/localize_struct_array_assignment.h" #include "src/tint/ast/transform/localize_struct_array_assignment.h"
#include "src/tint/transform/simplify_pointers.h" #include "src/tint/ast/transform/simplify_pointers.h"
#include "src/tint/transform/unshadow.h" #include "src/tint/ast/transform/unshadow.h"
#include "src/tint/transform/test_helper.h" #include "src/tint/ast/transform/test_helper.h"
namespace tint::transform { namespace tint::transform {
namespace { namespace {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/merge_return.h" #include "src/tint/ast/transform/merge_return.h"
#include <utility> #include <utility>

View File

@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#ifndef SRC_TINT_TRANSFORM_MERGE_RETURN_H_ #ifndef SRC_TINT_AST_TRANSFORM_MERGE_RETURN_H_
#define SRC_TINT_TRANSFORM_MERGE_RETURN_H_ #define SRC_TINT_AST_TRANSFORM_MERGE_RETURN_H_
#include "src/tint/transform/transform.h" #include "src/tint/ast/transform/transform.h"
namespace tint::transform { namespace tint::transform {
@ -35,4 +35,4 @@ class MergeReturn final : public utils::Castable<MergeReturn, Transform> {
} // namespace tint::transform } // namespace tint::transform
#endif // SRC_TINT_TRANSFORM_MERGE_RETURN_H_ #endif // SRC_TINT_AST_TRANSFORM_MERGE_RETURN_H_

View File

@ -12,11 +12,11 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/merge_return.h" #include "src/tint/ast/transform/merge_return.h"
#include <utility> #include <utility>
#include "src/tint/transform/test_helper.h" #include "src/tint/ast/transform/test_helper.h"
namespace tint::transform { namespace tint::transform {
namespace { namespace {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/module_scope_var_to_entry_point_param.h" #include "src/tint/ast/transform/module_scope_var_to_entry_point_param.h"
#include <unordered_map> #include <unordered_map>
#include <unordered_set> #include <unordered_set>

View File

@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#ifndef SRC_TINT_TRANSFORM_MODULE_SCOPE_VAR_TO_ENTRY_POINT_PARAM_H_ #ifndef SRC_TINT_AST_TRANSFORM_MODULE_SCOPE_VAR_TO_ENTRY_POINT_PARAM_H_
#define SRC_TINT_TRANSFORM_MODULE_SCOPE_VAR_TO_ENTRY_POINT_PARAM_H_ #define SRC_TINT_AST_TRANSFORM_MODULE_SCOPE_VAR_TO_ENTRY_POINT_PARAM_H_
#include "src/tint/transform/transform.h" #include "src/tint/ast/transform/transform.h"
namespace tint::transform { namespace tint::transform {
@ -80,4 +80,4 @@ class ModuleScopeVarToEntryPointParam final
} // namespace tint::transform } // namespace tint::transform
#endif // SRC_TINT_TRANSFORM_MODULE_SCOPE_VAR_TO_ENTRY_POINT_PARAM_H_ #endif // SRC_TINT_AST_TRANSFORM_MODULE_SCOPE_VAR_TO_ENTRY_POINT_PARAM_H_

View File

@ -12,11 +12,11 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/module_scope_var_to_entry_point_param.h" #include "src/tint/ast/transform/module_scope_var_to_entry_point_param.h"
#include <utility> #include <utility>
#include "src/tint/transform/test_helper.h" #include "src/tint/ast/transform/test_helper.h"
namespace tint::transform { namespace tint::transform {
namespace { namespace {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/multiplanar_external_texture.h" #include "src/tint/ast/transform/multiplanar_external_texture.h"
#include <string> #include <string>
#include <vector> #include <vector>

View File

@ -12,17 +12,17 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#ifndef SRC_TINT_TRANSFORM_MULTIPLANAR_EXTERNAL_TEXTURE_H_ #ifndef SRC_TINT_AST_TRANSFORM_MULTIPLANAR_EXTERNAL_TEXTURE_H_
#define SRC_TINT_TRANSFORM_MULTIPLANAR_EXTERNAL_TEXTURE_H_ #define SRC_TINT_AST_TRANSFORM_MULTIPLANAR_EXTERNAL_TEXTURE_H_
#include <unordered_map> #include <unordered_map>
#include <utility> #include <utility>
#include "src/tint/ast/struct_member.h" #include "src/tint/ast/struct_member.h"
#include "src/tint/ast/transform/transform.h"
#include "src/tint/builtin/function.h" #include "src/tint/builtin/function.h"
#include "src/tint/sem/binding_point.h" #include "src/tint/sem/binding_point.h"
#include "src/tint/sem/external_texture.h" #include "src/tint/sem/external_texture.h"
#include "src/tint/transform/transform.h"
namespace tint::transform { namespace tint::transform {
@ -80,4 +80,4 @@ class MultiplanarExternalTexture final
} // namespace tint::transform } // namespace tint::transform
#endif // SRC_TINT_TRANSFORM_MULTIPLANAR_EXTERNAL_TEXTURE_H_ #endif // SRC_TINT_AST_TRANSFORM_MULTIPLANAR_EXTERNAL_TEXTURE_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/multiplanar_external_texture.h" #include "src/tint/ast/transform/multiplanar_external_texture.h"
#include "src/tint/transform/test_helper.h" #include "src/tint/ast/transform/test_helper.h"
namespace tint::transform { namespace tint::transform {
namespace { namespace {

View File

@ -12,17 +12,17 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/num_workgroups_from_uniform.h" #include "src/tint/ast/transform/num_workgroups_from_uniform.h"
#include <memory> #include <memory>
#include <string> #include <string>
#include <unordered_set> #include <unordered_set>
#include <utility> #include <utility>
#include "src/tint/ast/transform/canonicalize_entry_point_io.h"
#include "src/tint/builtin/builtin_value.h" #include "src/tint/builtin/builtin_value.h"
#include "src/tint/program_builder.h" #include "src/tint/program_builder.h"
#include "src/tint/sem/function.h" #include "src/tint/sem/function.h"
#include "src/tint/transform/canonicalize_entry_point_io.h"
#include "src/tint/utils/hash.h" #include "src/tint/utils/hash.h"
TINT_INSTANTIATE_TYPEINFO(tint::transform::NumWorkgroupsFromUniform); TINT_INSTANTIATE_TYPEINFO(tint::transform::NumWorkgroupsFromUniform);

View File

@ -12,13 +12,13 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#ifndef SRC_TINT_TRANSFORM_NUM_WORKGROUPS_FROM_UNIFORM_H_ #ifndef SRC_TINT_AST_TRANSFORM_NUM_WORKGROUPS_FROM_UNIFORM_H_
#define SRC_TINT_TRANSFORM_NUM_WORKGROUPS_FROM_UNIFORM_H_ #define SRC_TINT_AST_TRANSFORM_NUM_WORKGROUPS_FROM_UNIFORM_H_
#include <optional> #include <optional>
#include "src/tint/ast/transform/transform.h"
#include "src/tint/sem/binding_point.h" #include "src/tint/sem/binding_point.h"
#include "src/tint/transform/transform.h"
// Forward declarations // Forward declarations
namespace tint { namespace tint {
@ -80,4 +80,4 @@ class NumWorkgroupsFromUniform final : public utils::Castable<NumWorkgroupsFromU
} // namespace tint::transform } // namespace tint::transform
#endif // SRC_TINT_TRANSFORM_NUM_WORKGROUPS_FROM_UNIFORM_H_ #endif // SRC_TINT_AST_TRANSFORM_NUM_WORKGROUPS_FROM_UNIFORM_H_

View File

@ -12,13 +12,13 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/num_workgroups_from_uniform.h" #include "src/tint/ast/transform/num_workgroups_from_uniform.h"
#include <utility> #include <utility>
#include "src/tint/transform/canonicalize_entry_point_io.h" #include "src/tint/ast/transform/canonicalize_entry_point_io.h"
#include "src/tint/transform/test_helper.h" #include "src/tint/ast/transform/test_helper.h"
#include "src/tint/transform/unshadow.h" #include "src/tint/ast/transform/unshadow.h"
namespace tint::transform { namespace tint::transform {
namespace { namespace {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/packed_vec3.h" #include "src/tint/ast/transform/packed_vec3.h"
#include <algorithm> #include <algorithm>
#include <string> #include <string>

View File

@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#ifndef SRC_TINT_TRANSFORM_PACKED_VEC3_H_ #ifndef SRC_TINT_AST_TRANSFORM_PACKED_VEC3_H_
#define SRC_TINT_TRANSFORM_PACKED_VEC3_H_ #define SRC_TINT_AST_TRANSFORM_PACKED_VEC3_H_
#include "src/tint/transform/transform.h" #include "src/tint/ast/transform/transform.h"
namespace tint::transform { namespace tint::transform {
@ -56,4 +56,4 @@ class PackedVec3 final : public utils::Castable<PackedVec3, Transform> {
} // namespace tint::transform } // namespace tint::transform
#endif // SRC_TINT_TRANSFORM_PACKED_VEC3_H_ #endif // SRC_TINT_AST_TRANSFORM_PACKED_VEC3_H_

View File

@ -12,17 +12,17 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/packed_vec3.h" #include "src/tint/ast/transform/packed_vec3.h"
#include <string> #include <string>
#include <utility> #include <utility>
#include <vector> #include <vector>
#include "src/tint/ast/module.h" #include "src/tint/ast/module.h"
#include "src/tint/ast/transform/test_helper.h"
#include "src/tint/program_builder.h" #include "src/tint/program_builder.h"
#include "src/tint/sem/struct.h" #include "src/tint/sem/struct.h"
#include "src/tint/sem/variable.h" #include "src/tint/sem/variable.h"
#include "src/tint/transform/test_helper.h"
#include "src/tint/type/array.h" #include "src/tint/type/array.h"
#include "src/tint/utils/string.h" #include "src/tint/utils/string.h"

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/pad_structs.h" #include "src/tint/ast/transform/pad_structs.h"
#include <string> #include <string>
#include <unordered_map> #include <unordered_map>

View File

@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#ifndef SRC_TINT_TRANSFORM_PAD_STRUCTS_H_ #ifndef SRC_TINT_AST_TRANSFORM_PAD_STRUCTS_H_
#define SRC_TINT_TRANSFORM_PAD_STRUCTS_H_ #define SRC_TINT_AST_TRANSFORM_PAD_STRUCTS_H_
#include "src/tint/transform/transform.h" #include "src/tint/ast/transform/transform.h"
namespace tint::transform { namespace tint::transform {
@ -40,4 +40,4 @@ class PadStructs final : public utils::Castable<PadStructs, Transform> {
} // namespace tint::transform } // namespace tint::transform
#endif // SRC_TINT_TRANSFORM_PAD_STRUCTS_H_ #endif // SRC_TINT_AST_TRANSFORM_PAD_STRUCTS_H_

View File

@ -12,12 +12,12 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/pad_structs.h" #include "src/tint/ast/transform/pad_structs.h"
#include <memory> #include <memory>
#include <utility> #include <utility>
#include "src/tint/transform/test_helper.h" #include "src/tint/ast/transform/test_helper.h"
namespace tint::transform { namespace tint::transform {
namespace { namespace {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/preserve_padding.h" #include "src/tint/ast/transform/preserve_padding.h"
#include <unordered_set> #include <unordered_set>
#include <utility> #include <utility>

View File

@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#ifndef SRC_TINT_TRANSFORM_PRESERVE_PADDING_H_ #ifndef SRC_TINT_AST_TRANSFORM_PRESERVE_PADDING_H_
#define SRC_TINT_TRANSFORM_PRESERVE_PADDING_H_ #define SRC_TINT_AST_TRANSFORM_PRESERVE_PADDING_H_
#include "src/tint/transform/transform.h" #include "src/tint/ast/transform/transform.h"
namespace tint::transform { namespace tint::transform {
@ -44,4 +44,4 @@ class PreservePadding final : public utils::Castable<PreservePadding, Transform>
} // namespace tint::transform } // namespace tint::transform
#endif // SRC_TINT_TRANSFORM_PRESERVE_PADDING_H_ #endif // SRC_TINT_AST_TRANSFORM_PRESERVE_PADDING_H_

View File

@ -12,11 +12,11 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/preserve_padding.h" #include "src/tint/ast/transform/preserve_padding.h"
#include <utility> #include <utility>
#include "src/tint/transform/test_helper.h" #include "src/tint/ast/transform/test_helper.h"
namespace tint::transform { namespace tint::transform {
namespace { namespace {

View File

@ -12,16 +12,16 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/promote_initializers_to_let.h" #include "src/tint/ast/transform/promote_initializers_to_let.h"
#include <utility> #include <utility>
#include "src/tint/ast/transform/utils/hoist_to_decl_before.h"
#include "src/tint/ast/traverse_expressions.h" #include "src/tint/ast/traverse_expressions.h"
#include "src/tint/program_builder.h" #include "src/tint/program_builder.h"
#include "src/tint/sem/call.h" #include "src/tint/sem/call.h"
#include "src/tint/sem/statement.h" #include "src/tint/sem/statement.h"
#include "src/tint/sem/value_constructor.h" #include "src/tint/sem/value_constructor.h"
#include "src/tint/transform/utils/hoist_to_decl_before.h"
#include "src/tint/type/struct.h" #include "src/tint/type/struct.h"
#include "src/tint/utils/hashset.h" #include "src/tint/utils/hashset.h"

View File

@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#ifndef SRC_TINT_TRANSFORM_PROMOTE_INITIALIZERS_TO_LET_H_ #ifndef SRC_TINT_AST_TRANSFORM_PROMOTE_INITIALIZERS_TO_LET_H_
#define SRC_TINT_TRANSFORM_PROMOTE_INITIALIZERS_TO_LET_H_ #define SRC_TINT_AST_TRANSFORM_PROMOTE_INITIALIZERS_TO_LET_H_
#include "src/tint/transform/transform.h" #include "src/tint/ast/transform/transform.h"
namespace tint::transform { namespace tint::transform {
@ -41,4 +41,4 @@ class PromoteInitializersToLet final : public utils::Castable<PromoteInitializer
} // namespace tint::transform } // namespace tint::transform
#endif // SRC_TINT_TRANSFORM_PROMOTE_INITIALIZERS_TO_LET_H_ #endif // SRC_TINT_AST_TRANSFORM_PROMOTE_INITIALIZERS_TO_LET_H_

View File

@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/promote_initializers_to_let.h" #include "src/tint/ast/transform/promote_initializers_to_let.h"
#include "src/tint/transform/test_helper.h" #include "src/tint/ast/transform/test_helper.h"
namespace tint::transform { namespace tint::transform {
namespace { namespace {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/promote_side_effects_to_decl.h" #include "src/tint/ast/transform/promote_side_effects_to_decl.h"
#include <memory> #include <memory>
#include <string> #include <string>
@ -20,6 +20,8 @@
#include <utility> #include <utility>
#include <vector> #include <vector>
#include "src/tint/ast/transform/utils/get_insertion_point.h"
#include "src/tint/ast/transform/utils/hoist_to_decl_before.h"
#include "src/tint/ast/traverse_expressions.h" #include "src/tint/ast/traverse_expressions.h"
#include "src/tint/sem/block_statement.h" #include "src/tint/sem/block_statement.h"
#include "src/tint/sem/call.h" #include "src/tint/sem/call.h"
@ -29,8 +31,6 @@
#include "src/tint/sem/variable.h" #include "src/tint/sem/variable.h"
#include "src/tint/sem/while_statement.h" #include "src/tint/sem/while_statement.h"
#include "src/tint/transform/manager.h" #include "src/tint/transform/manager.h"
#include "src/tint/transform/utils/get_insertion_point.h"
#include "src/tint/transform/utils/hoist_to_decl_before.h"
#include "src/tint/utils/scoped_assignment.h" #include "src/tint/utils/scoped_assignment.h"
TINT_INSTANTIATE_TYPEINFO(tint::transform::PromoteSideEffectsToDecl); TINT_INSTANTIATE_TYPEINFO(tint::transform::PromoteSideEffectsToDecl);

View File

@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#ifndef SRC_TINT_TRANSFORM_PROMOTE_SIDE_EFFECTS_TO_DECL_H_ #ifndef SRC_TINT_AST_TRANSFORM_PROMOTE_SIDE_EFFECTS_TO_DECL_H_
#define SRC_TINT_TRANSFORM_PROMOTE_SIDE_EFFECTS_TO_DECL_H_ #define SRC_TINT_AST_TRANSFORM_PROMOTE_SIDE_EFFECTS_TO_DECL_H_
#include "src/tint/transform/transform.h" #include "src/tint/ast/transform/transform.h"
namespace tint::transform { namespace tint::transform {
@ -39,4 +39,4 @@ class PromoteSideEffectsToDecl final : public utils::Castable<PromoteSideEffects
} // namespace tint::transform } // namespace tint::transform
#endif // SRC_TINT_TRANSFORM_PROMOTE_SIDE_EFFECTS_TO_DECL_H_ #endif // SRC_TINT_AST_TRANSFORM_PROMOTE_SIDE_EFFECTS_TO_DECL_H_

View File

@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/promote_side_effects_to_decl.h" #include "src/tint/ast/transform/promote_side_effects_to_decl.h"
#include "src/tint/transform/test_helper.h" #include "src/tint/ast/transform/test_helper.h"
namespace tint::transform { namespace tint::transform {
namespace { namespace {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/remove_continue_in_switch.h" #include "src/tint/ast/transform/remove_continue_in_switch.h"
#include <string> #include <string>
#include <unordered_map> #include <unordered_map>
@ -20,13 +20,13 @@
#include "src/tint/ast/continue_statement.h" #include "src/tint/ast/continue_statement.h"
#include "src/tint/ast/switch_statement.h" #include "src/tint/ast/switch_statement.h"
#include "src/tint/ast/transform/utils/get_insertion_point.h"
#include "src/tint/program_builder.h" #include "src/tint/program_builder.h"
#include "src/tint/sem/block_statement.h" #include "src/tint/sem/block_statement.h"
#include "src/tint/sem/for_loop_statement.h" #include "src/tint/sem/for_loop_statement.h"
#include "src/tint/sem/loop_statement.h" #include "src/tint/sem/loop_statement.h"
#include "src/tint/sem/switch_statement.h" #include "src/tint/sem/switch_statement.h"
#include "src/tint/sem/while_statement.h" #include "src/tint/sem/while_statement.h"
#include "src/tint/transform/utils/get_insertion_point.h"
#include "src/tint/utils/map.h" #include "src/tint/utils/map.h"
TINT_INSTANTIATE_TYPEINFO(tint::transform::RemoveContinueInSwitch); TINT_INSTANTIATE_TYPEINFO(tint::transform::RemoveContinueInSwitch);

View File

@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#ifndef SRC_TINT_TRANSFORM_REMOVE_CONTINUE_IN_SWITCH_H_ #ifndef SRC_TINT_AST_TRANSFORM_REMOVE_CONTINUE_IN_SWITCH_H_
#define SRC_TINT_TRANSFORM_REMOVE_CONTINUE_IN_SWITCH_H_ #define SRC_TINT_AST_TRANSFORM_REMOVE_CONTINUE_IN_SWITCH_H_
#include "src/tint/transform/transform.h" #include "src/tint/ast/transform/transform.h"
namespace tint::transform { namespace tint::transform {
@ -42,4 +42,4 @@ class RemoveContinueInSwitch final : public utils::Castable<RemoveContinueInSwit
} // namespace tint::transform } // namespace tint::transform
#endif // SRC_TINT_TRANSFORM_REMOVE_CONTINUE_IN_SWITCH_H_ #endif // SRC_TINT_AST_TRANSFORM_REMOVE_CONTINUE_IN_SWITCH_H_

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/remove_continue_in_switch.h" #include "src/tint/ast/transform/remove_continue_in_switch.h"
#include "src/tint/transform/test_helper.h" #include "src/tint/ast/transform/test_helper.h"
namespace tint::transform { namespace tint::transform {
namespace { namespace {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/remove_phonies.h" #include "src/tint/ast/transform/remove_phonies.h"
#include <memory> #include <memory>
#include <unordered_map> #include <unordered_map>

View File

@ -12,13 +12,13 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#ifndef SRC_TINT_TRANSFORM_REMOVE_PHONIES_H_ #ifndef SRC_TINT_AST_TRANSFORM_REMOVE_PHONIES_H_
#define SRC_TINT_TRANSFORM_REMOVE_PHONIES_H_ #define SRC_TINT_AST_TRANSFORM_REMOVE_PHONIES_H_
#include <string> #include <string>
#include <unordered_map> #include <unordered_map>
#include "src/tint/transform/transform.h" #include "src/tint/ast/transform/transform.h"
namespace tint::transform { namespace tint::transform {
@ -41,4 +41,4 @@ class RemovePhonies final : public utils::Castable<RemovePhonies, Transform> {
} // namespace tint::transform } // namespace tint::transform
#endif // SRC_TINT_TRANSFORM_REMOVE_PHONIES_H_ #endif // SRC_TINT_AST_TRANSFORM_REMOVE_PHONIES_H_

View File

@ -12,13 +12,13 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/remove_phonies.h" #include "src/tint/ast/transform/remove_phonies.h"
#include <memory> #include <memory>
#include <utility> #include <utility>
#include <vector> #include <vector>
#include "src/tint/transform/test_helper.h" #include "src/tint/ast/transform/test_helper.h"
namespace tint::transform { namespace tint::transform {
namespace { namespace {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/remove_unreachable_statements.h" #include "src/tint/ast/transform/remove_unreachable_statements.h"
#include <memory> #include <memory>
#include <unordered_map> #include <unordered_map>

View File

@ -12,13 +12,13 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#ifndef SRC_TINT_TRANSFORM_REMOVE_UNREACHABLE_STATEMENTS_H_ #ifndef SRC_TINT_AST_TRANSFORM_REMOVE_UNREACHABLE_STATEMENTS_H_
#define SRC_TINT_TRANSFORM_REMOVE_UNREACHABLE_STATEMENTS_H_ #define SRC_TINT_AST_TRANSFORM_REMOVE_UNREACHABLE_STATEMENTS_H_
#include <string> #include <string>
#include <unordered_map> #include <unordered_map>
#include "src/tint/transform/transform.h" #include "src/tint/ast/transform/transform.h"
namespace tint::transform { namespace tint::transform {
@ -41,4 +41,4 @@ class RemoveUnreachableStatements final
} // namespace tint::transform } // namespace tint::transform
#endif // SRC_TINT_TRANSFORM_REMOVE_UNREACHABLE_STATEMENTS_H_ #endif // SRC_TINT_AST_TRANSFORM_REMOVE_UNREACHABLE_STATEMENTS_H_

View File

@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/remove_unreachable_statements.h" #include "src/tint/ast/transform/remove_unreachable_statements.h"
#include "src/tint/transform/test_helper.h" #include "src/tint/ast/transform/test_helper.h"
namespace tint::transform { namespace tint::transform {
namespace { namespace {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/renamer.h" #include "src/tint/ast/transform/renamer.h"
#include <memory> #include <memory>
#include <utility> #include <utility>

View File

@ -12,13 +12,13 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#ifndef SRC_TINT_TRANSFORM_RENAMER_H_ #ifndef SRC_TINT_AST_TRANSFORM_RENAMER_H_
#define SRC_TINT_TRANSFORM_RENAMER_H_ #define SRC_TINT_AST_TRANSFORM_RENAMER_H_
#include <string> #include <string>
#include <unordered_map> #include <unordered_map>
#include "src/tint/transform/transform.h" #include "src/tint/ast/transform/transform.h"
namespace tint::transform { namespace tint::transform {
@ -93,4 +93,4 @@ class Renamer final : public utils::Castable<Renamer, Transform> {
} // namespace tint::transform } // namespace tint::transform
#endif // SRC_TINT_TRANSFORM_RENAMER_H_ #endif // SRC_TINT_AST_TRANSFORM_RENAMER_H_

View File

@ -12,16 +12,16 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "src/tint/transform/renamer.h" #include "src/tint/ast/transform/renamer.h"
#include <memory> #include <memory>
#include <unordered_set> #include <unordered_set>
#include <vector> #include <vector>
#include "gmock/gmock.h" #include "gmock/gmock.h"
#include "src/tint/ast/transform/test_helper.h"
#include "src/tint/builtin/builtin.h" #include "src/tint/builtin/builtin.h"
#include "src/tint/builtin/texel_format.h" #include "src/tint/builtin/texel_format.h"
#include "src/tint/transform/test_helper.h"
namespace tint::transform { namespace tint::transform {
namespace { namespace {

Some files were not shown because too many files have changed in this diff Show More