Move type/* files to sem/ directory

Bug: tint:724
Change-Id: I45d83d32dbce1fbee265810615c18219ef879b20
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/48363
Commit-Queue: Antonio Maiorano <amaiorano@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
Antonio Maiorano 2021-04-19 22:54:43 +00:00 committed by Commit Bot service account
parent 3751fd2290
commit aea9c68de9
116 changed files with 468 additions and 471 deletions

View File

@ -23,6 +23,7 @@
#include "src/diagnostic/printer.h"
#include "src/inspector/inspector.h"
#include "src/reader/reader.h"
#include "src/sem/type_manager.h"
#include "src/transform/binding_remapper.h"
#include "src/transform/bound_array_accessors.h"
#include "src/transform/emit_vertex_point_size.h"
@ -30,7 +31,6 @@
#include "src/transform/manager.h"
#include "src/transform/renamer.h"
#include "src/transform/vertex_pulling.h"
#include "src/type/type_manager.h"
#include "src/writer/writer.h"
#if TINT_BUILD_SPV_READER

View File

@ -430,6 +430,48 @@ libtint_source_set("libtint_core_all_src") {
"resolver/resolver.cc",
"resolver/resolver.h",
"scope_stack.h",
"sem/access_control_type.cc",
"sem/access_control_type.h",
"sem/alias_type.cc",
"sem/alias_type.h",
"sem/array_type.cc",
"sem/array_type.h",
"sem/bool_type.cc",
"sem/bool_type.h",
"sem/depth_texture_type.cc",
"sem/depth_texture_type.h",
"sem/external_texture_type.cc",
"sem/external_texture_type.h",
"sem/f32_type.cc",
"sem/f32_type.h",
"sem/i32_type.cc",
"sem/i32_type.h",
"sem/matrix_type.cc",
"sem/matrix_type.h",
"sem/multisampled_texture_type.cc",
"sem/multisampled_texture_type.h",
"sem/pointer_type.cc",
"sem/pointer_type.h",
"sem/sampled_texture_type.cc",
"sem/sampled_texture_type.h",
"sem/sampler_type.cc",
"sem/sampler_type.h",
"sem/storage_texture_type.cc",
"sem/storage_texture_type.h",
"sem/struct_type.cc",
"sem/struct_type.h",
"sem/texture_type.cc",
"sem/texture_type.h",
"sem/type.cc",
"sem/type.h",
"sem/type_manager.cc",
"sem/type_manager.h",
"sem/u32_type.cc",
"sem/u32_type.h",
"sem/vector_type.cc",
"sem/vector_type.h",
"sem/void_type.cc",
"sem/void_type.h",
"source.cc",
"source.h",
"symbol.cc",
@ -460,48 +502,6 @@ libtint_source_set("libtint_core_all_src") {
"transform/transform.h",
"transform/vertex_pulling.cc",
"transform/vertex_pulling.h",
"type/access_control_type.cc",
"type/access_control_type.h",
"type/alias_type.cc",
"type/alias_type.h",
"type/array_type.cc",
"type/array_type.h",
"type/bool_type.cc",
"type/bool_type.h",
"type/depth_texture_type.cc",
"type/depth_texture_type.h",
"type/external_texture_type.cc",
"type/external_texture_type.h",
"type/f32_type.cc",
"type/f32_type.h",
"type/i32_type.cc",
"type/i32_type.h",
"type/matrix_type.cc",
"type/matrix_type.h",
"type/multisampled_texture_type.cc",
"type/multisampled_texture_type.h",
"type/pointer_type.cc",
"type/pointer_type.h",
"type/sampled_texture_type.cc",
"type/sampled_texture_type.h",
"type/sampler_type.cc",
"type/sampler_type.h",
"type/storage_texture_type.cc",
"type/storage_texture_type.h",
"type/struct_type.cc",
"type/struct_type.h",
"type/texture_type.cc",
"type/texture_type.h",
"type/type.cc",
"type/type.h",
"type/type_manager.cc",
"type/type_manager.h",
"type/u32_type.cc",
"type/u32_type.h",
"type/vector_type.cc",
"type/vector_type.h",
"type/void_type.cc",
"type/void_type.h",
"utils/get_or_create.h",
"utils/hash.h",
"utils/math.h",

View File

@ -238,48 +238,48 @@ set(TINT_LIB_SRCS
transform/transform.h
transform/vertex_pulling.cc
transform/vertex_pulling.h
type/access_control_type.cc
type/access_control_type.h
type/alias_type.cc
type/alias_type.h
type/array_type.cc
type/array_type.h
type/bool_type.cc
type/bool_type.h
type/depth_texture_type.cc
type/depth_texture_type.h
type/external_texture_type.cc
type/external_texture_type.h
type/f32_type.cc
type/f32_type.h
type/i32_type.cc
type/i32_type.h
type/matrix_type.cc
type/matrix_type.h
type/multisampled_texture_type.cc
type/multisampled_texture_type.h
type/pointer_type.cc
type/pointer_type.h
type/sampled_texture_type.cc
type/sampled_texture_type.h
type/sampler_type.cc
type/sampler_type.h
type/storage_texture_type.cc
type/storage_texture_type.h
type/struct_type.cc
type/struct_type.h
type/texture_type.cc
type/texture_type.h
type/type.cc
type/type.h
type/type_manager.cc
type/type_manager.h
type/u32_type.cc
type/u32_type.h
type/vector_type.cc
type/vector_type.h
type/void_type.cc
type/void_type.h
sem/access_control_type.cc
sem/access_control_type.h
sem/alias_type.cc
sem/alias_type.h
sem/array_type.cc
sem/array_type.h
sem/bool_type.cc
sem/bool_type.h
sem/depth_texture_type.cc
sem/depth_texture_type.h
sem/external_texture_type.cc
sem/external_texture_type.h
sem/f32_type.cc
sem/f32_type.h
sem/i32_type.cc
sem/i32_type.h
sem/matrix_type.cc
sem/matrix_type.h
sem/multisampled_texture_type.cc
sem/multisampled_texture_type.h
sem/pointer_type.cc
sem/pointer_type.h
sem/sampled_texture_type.cc
sem/sampled_texture_type.h
sem/sampler_type.cc
sem/sampler_type.h
sem/storage_texture_type.cc
sem/storage_texture_type.h
sem/struct_type.cc
sem/struct_type.h
sem/texture_type.cc
sem/texture_type.h
sem/type.cc
sem/type.h
sem/type_manager.cc
sem/type_manager.h
sem/u32_type.cc
sem/u32_type.h
sem/vector_type.cc
sem/vector_type.h
sem/void_type.cc
sem/void_type.h
utils/get_or_create.h
utils/hash.h
utils/math.h
@ -503,25 +503,25 @@ if(${TINT_BUILD_TESTS})
symbol_test.cc
traits_test.cc
test_main.cc
type/access_control_type_test.cc
type/alias_type_test.cc
type/array_type_test.cc
type/bool_type_test.cc
type/depth_texture_type_test.cc
type/external_texture_type_test.cc
type/f32_type_test.cc
type/i32_type_test.cc
type/matrix_type_test.cc
type/multisampled_texture_type_test.cc
type/pointer_type_test.cc
type/sampled_texture_type_test.cc
type/sampler_type_test.cc
type/storage_texture_type_test.cc
type/struct_type_test.cc
type/texture_type_test.cc
type/type_manager_test.cc
type/u32_type_test.cc
type/vector_type_test.cc
sem/access_control_type_test.cc
sem/alias_type_test.cc
sem/array_type_test.cc
sem/bool_type_test.cc
sem/depth_texture_type_test.cc
sem/external_texture_type_test.cc
sem/f32_type_test.cc
sem/i32_type_test.cc
sem/matrix_type_test.cc
sem/multisampled_texture_type_test.cc
sem/pointer_type_test.cc
sem/sampled_texture_type_test.cc
sem/sampler_type_test.cc
sem/storage_texture_type_test.cc
sem/struct_type_test.cc
sem/texture_type_test.cc
sem/type_manager_test.cc
sem/u32_type_test.cc
sem/vector_type_test.cc
utils/command_${TINT_OS_CC_SUFFIX}.cc
utils/command_test.cc
utils/command.h

View File

@ -19,7 +19,7 @@
#include <vector>
#include "src/ast/node.h"
#include "src/type/type.h"
#include "src/sem/type.h"
namespace tint {
namespace ast {

View File

@ -14,10 +14,10 @@
#include "src/ast/intrinsic_texture_helper_test.h"
#include "src/type/access_control_type.h"
#include "src/type/depth_texture_type.h"
#include "src/type/multisampled_texture_type.h"
#include "src/type/sampled_texture_type.h"
#include "src/sem/access_control_type.h"
#include "src/sem/depth_texture_type.h"
#include "src/sem/multisampled_texture_type.h"
#include "src/sem/sampled_texture_type.h"
namespace tint {
namespace ast {

View File

@ -19,7 +19,7 @@
#include "src/ast/access_control.h"
#include "src/program_builder.h"
#include "src/type/storage_texture_type.h"
#include "src/sem/storage_texture_type.h"
namespace tint {
namespace ast {

View File

@ -23,21 +23,21 @@
#include "src/ast/scalar_constructor_expression.h"
#include "src/ast/sint_literal.h"
#include "src/ast/uint_literal.h"
#include "src/sem/access_control_type.h"
#include "src/sem/array_type.h"
#include "src/sem/f32_type.h"
#include "src/sem/function.h"
#include "src/sem/i32_type.h"
#include "src/sem/matrix_type.h"
#include "src/sem/multisampled_texture_type.h"
#include "src/sem/sampled_texture_type.h"
#include "src/sem/storage_texture_type.h"
#include "src/sem/struct.h"
#include "src/sem/struct_type.h"
#include "src/sem/u32_type.h"
#include "src/sem/variable.h"
#include "src/type/access_control_type.h"
#include "src/type/array_type.h"
#include "src/type/f32_type.h"
#include "src/type/i32_type.h"
#include "src/type/matrix_type.h"
#include "src/type/multisampled_texture_type.h"
#include "src/type/sampled_texture_type.h"
#include "src/type/storage_texture_type.h"
#include "src/type/struct_type.h"
#include "src/type/u32_type.h"
#include "src/type/vector_type.h"
#include "src/type/void_type.h"
#include "src/sem/vector_type.h"
#include "src/sem/void_type.h"
namespace tint {
namespace inspector {

View File

@ -18,9 +18,9 @@
#include "src/ast/stage_decoration.h"
#include "src/ast/struct_block_decoration.h"
#include "src/ast/workgroup_decoration.h"
#include "src/type/depth_texture_type.h"
#include "src/type/multisampled_texture_type.h"
#include "src/type/sampled_texture_type.h"
#include "src/sem/depth_texture_type.h"
#include "src/sem/multisampled_texture_type.h"
#include "src/sem/sampled_texture_type.h"
#include "tint/tint.h"
namespace tint {

View File

@ -20,11 +20,11 @@
#include <utility>
#include "src/program_builder.h"
#include "src/type/access_control_type.h"
#include "src/type/depth_texture_type.h"
#include "src/type/multisampled_texture_type.h"
#include "src/type/sampled_texture_type.h"
#include "src/type/storage_texture_type.h"
#include "src/sem/access_control_type.h"
#include "src/sem/depth_texture_type.h"
#include "src/sem/multisampled_texture_type.h"
#include "src/sem/sampled_texture_type.h"
#include "src/sem/storage_texture_type.h"
namespace tint {
namespace {

View File

@ -16,11 +16,11 @@
#include "gmock/gmock.h"
#include "src/program_builder.h"
#include "src/type/access_control_type.h"
#include "src/type/depth_texture_type.h"
#include "src/type/multisampled_texture_type.h"
#include "src/type/sampled_texture_type.h"
#include "src/type/storage_texture_type.h"
#include "src/sem/access_control_type.h"
#include "src/sem/depth_texture_type.h"
#include "src/sem/multisampled_texture_type.h"
#include "src/sem/sampled_texture_type.h"
#include "src/sem/storage_texture_type.h"
namespace tint {
namespace {

View File

@ -20,8 +20,8 @@
#include "src/ast/function.h"
#include "src/program_id.h"
#include "src/sem/info.h"
#include "src/sem/type_manager.h"
#include "src/symbol_table.h"
#include "src/type/type_manager.h"
namespace tint {

View File

@ -43,18 +43,18 @@
#include "src/ast/variable_decl_statement.h"
#include "src/program.h"
#include "src/program_id.h"
#include "src/type/access_control_type.h"
#include "src/type/alias_type.h"
#include "src/type/array_type.h"
#include "src/type/bool_type.h"
#include "src/type/f32_type.h"
#include "src/type/i32_type.h"
#include "src/type/matrix_type.h"
#include "src/type/pointer_type.h"
#include "src/type/struct_type.h"
#include "src/type/u32_type.h"
#include "src/type/vector_type.h"
#include "src/type/void_type.h"
#include "src/sem/access_control_type.h"
#include "src/sem/alias_type.h"
#include "src/sem/array_type.h"
#include "src/sem/bool_type.h"
#include "src/sem/f32_type.h"
#include "src/sem/i32_type.h"
#include "src/sem/matrix_type.h"
#include "src/sem/pointer_type.h"
#include "src/sem/struct_type.h"
#include "src/sem/u32_type.h"
#include "src/sem/vector_type.h"
#include "src/sem/void_type.h"
namespace tint {

View File

@ -20,7 +20,7 @@
#include "src/ast/pipeline_stage.h"
#include "src/ast/storage_class.h"
#include "src/reader/spirv/fail_stream.h"
#include "src/type/storage_texture_type.h"
#include "src/sem/storage_texture_type.h"
namespace tint {
namespace reader {

View File

@ -31,8 +31,8 @@
#include "src/ast/switch_statement.h"
#include "src/ast/unary_op_expression.h"
#include "src/ast/variable_decl_statement.h"
#include "src/type/depth_texture_type.h"
#include "src/type/sampled_texture_type.h"
#include "src/sem/depth_texture_type.h"
#include "src/sem/sampled_texture_type.h"
// Terms:
// CFG: the control flow graph of the function, where basic blocks are the

View File

@ -22,10 +22,10 @@
#include "src/ast/constant_id_decoration.h"
#include "src/ast/struct_block_decoration.h"
#include "src/reader/spirv/function.h"
#include "src/type/access_control_type.h"
#include "src/type/depth_texture_type.h"
#include "src/type/multisampled_texture_type.h"
#include "src/type/sampled_texture_type.h"
#include "src/sem/access_control_type.h"
#include "src/sem/depth_texture_type.h"
#include "src/sem/multisampled_texture_type.h"
#include "src/sem/sampled_texture_type.h"
namespace tint {
namespace reader {

View File

@ -24,10 +24,10 @@
#include "src/ast/unary_op_expression.h"
#include "src/ast/workgroup_decoration.h"
#include "src/reader/wgsl/lexer.h"
#include "src/type/access_control_type.h"
#include "src/type/depth_texture_type.h"
#include "src/type/multisampled_texture_type.h"
#include "src/type/sampled_texture_type.h"
#include "src/sem/access_control_type.h"
#include "src/sem/depth_texture_type.h"
#include "src/sem/multisampled_texture_type.h"
#include "src/sem/sampled_texture_type.h"
namespace tint {
namespace reader {

View File

@ -35,7 +35,7 @@
#include "src/program_builder.h"
#include "src/reader/wgsl/parser_impl_detail.h"
#include "src/reader/wgsl/token.h"
#include "src/type/storage_texture_type.h"
#include "src/sem/storage_texture_type.h"
namespace tint {
namespace reader {

View File

@ -13,7 +13,7 @@
// limitations under the License.
#include "src/reader/wgsl/parser_impl_test_helper.h"
#include "src/type/depth_texture_type.h"
#include "src/sem/depth_texture_type.h"
namespace tint {
namespace reader {

View File

@ -13,9 +13,9 @@
// limitations under the License.
#include "src/reader/wgsl/parser_impl_test_helper.h"
#include "src/type/depth_texture_type.h"
#include "src/type/multisampled_texture_type.h"
#include "src/type/sampled_texture_type.h"
#include "src/sem/depth_texture_type.h"
#include "src/sem/multisampled_texture_type.h"
#include "src/sem/sampled_texture_type.h"
namespace tint {
namespace reader {

View File

@ -13,7 +13,7 @@
// limitations under the License.
#include "src/reader/wgsl/parser_impl_test_helper.h"
#include "src/type/sampled_texture_type.h"
#include "src/sem/sampled_texture_type.h"
namespace tint {
namespace reader {

View File

@ -14,7 +14,7 @@
#include "src/ast/struct_block_decoration.h"
#include "src/reader/wgsl/parser_impl_test_helper.h"
#include "src/type/access_control_type.h"
#include "src/sem/access_control_type.h"
namespace tint {
namespace reader {

View File

@ -16,8 +16,8 @@
#include "gmock/gmock.h"
#include "src/resolver/resolver_test_helper.h"
#include "src/type/access_control_type.h"
#include "src/type/storage_texture_type.h"
#include "src/sem/access_control_type.h"
#include "src/sem/storage_texture_type.h"
namespace tint {
namespace resolver {

View File

@ -17,8 +17,8 @@
#include "gmock/gmock.h"
#include "src/ast/struct_block_decoration.h"
#include "src/resolver/resolver_test_helper.h"
#include "src/sem/access_control_type.h"
#include "src/sem/struct.h"
#include "src/type/access_control_type.h"
namespace tint {
namespace resolver {

View File

@ -30,13 +30,13 @@
#include "src/ast/unary_op_expression.h"
#include "src/ast/variable_decl_statement.h"
#include "src/resolver/resolver_test_helper.h"
#include "src/sem/access_control_type.h"
#include "src/sem/call.h"
#include "src/sem/function.h"
#include "src/sem/member_accessor_expression.h"
#include "src/sem/sampled_texture_type.h"
#include "src/sem/statement.h"
#include "src/sem/variable.h"
#include "src/type/access_control_type.h"
#include "src/type/sampled_texture_type.h"
using ::testing::ElementsAre;
using ::testing::HasSubstr;

View File

@ -16,7 +16,7 @@
#include "gmock/gmock.h"
#include "src/resolver/resolver_test_helper.h"
#include "src/type/access_control_type.h"
#include "src/sem/access_control_type.h"
namespace tint {
namespace resolver {

View File

@ -16,7 +16,7 @@
#include "gmock/gmock.h"
#include "src/resolver/resolver_test_helper.h"
#include "src/type/access_control_type.h"
#include "src/sem/access_control_type.h"
namespace tint {
namespace resolver {

View File

@ -35,6 +35,7 @@
#include "src/ast/unary_op_expression.h"
#include "src/ast/variable_decl_statement.h"
#include "src/ast/workgroup_decoration.h"
#include "src/sem/access_control_type.h"
#include "src/sem/array.h"
#include "src/sem/call.h"
#include "src/sem/function.h"
@ -42,7 +43,6 @@
#include "src/sem/statement.h"
#include "src/sem/struct.h"
#include "src/sem/variable.h"
#include "src/type/access_control_type.h"
#include "src/utils/get_or_create.h"
#include "src/utils/math.h"

View File

@ -33,13 +33,13 @@
#include "src/ast/unary_op_expression.h"
#include "src/ast/variable_decl_statement.h"
#include "src/resolver/resolver_test_helper.h"
#include "src/sem/access_control_type.h"
#include "src/sem/call.h"
#include "src/sem/function.h"
#include "src/sem/member_accessor_expression.h"
#include "src/sem/sampled_texture_type.h"
#include "src/sem/statement.h"
#include "src/sem/variable.h"
#include "src/type/access_control_type.h"
#include "src/type/sampled_texture_type.h"
using ::testing::ElementsAre;
using ::testing::HasSubstr;

View File

@ -17,8 +17,8 @@
#include "gmock/gmock.h"
#include "src/ast/struct_block_decoration.h"
#include "src/resolver/resolver_test_helper.h"
#include "src/sem/access_control_type.h"
#include "src/sem/struct.h"
#include "src/type/access_control_type.h"
namespace tint {
namespace resolver {

View File

@ -29,13 +29,13 @@
#include "src/ast/unary_op_expression.h"
#include "src/ast/variable_decl_statement.h"
#include "src/resolver/resolver_test_helper.h"
#include "src/sem/access_control_type.h"
#include "src/sem/call.h"
#include "src/sem/function.h"
#include "src/sem/member_accessor_expression.h"
#include "src/sem/sampled_texture_type.h"
#include "src/sem/statement.h"
#include "src/sem/variable.h"
#include "src/type/access_control_type.h"
#include "src/type/sampled_texture_type.h"
using ::testing::ElementsAre;
using ::testing::HasSubstr;

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/access_control_type.h"
#include "src/sem/access_control_type.h"
#include "src/program_builder.h"

View File

@ -12,13 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SRC_TYPE_ACCESS_CONTROL_TYPE_H_
#define SRC_TYPE_ACCESS_CONTROL_TYPE_H_
#ifndef SRC_SEM_ACCESS_CONTROL_TYPE_H_
#define SRC_SEM_ACCESS_CONTROL_TYPE_H_
#include <string>
#include "src/ast/access_control.h"
#include "src/type/type.h"
#include "src/sem/type.h"
namespace tint {
namespace sem {
@ -67,4 +67,4 @@ class AccessControl : public Castable<AccessControl, Type> {
} // namespace sem
} // namespace tint
#endif // SRC_TYPE_ACCESS_CONTROL_TYPE_H_
#endif // SRC_SEM_ACCESS_CONTROL_TYPE_H_

View File

@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/access_control_type.h"
#include "src/sem/access_control_type.h"
#include "src/type/test_helper.h"
#include "src/type/texture_type.h"
#include "src/sem/test_helper.h"
#include "src/sem/texture_type.h"
namespace tint {
namespace sem {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/alias_type.h"
#include "src/sem/alias_type.h"
#include "src/program_builder.h"

View File

@ -12,12 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SRC_TYPE_ALIAS_TYPE_H_
#define SRC_TYPE_ALIAS_TYPE_H_
#ifndef SRC_SEM_ALIAS_TYPE_H_
#define SRC_SEM_ALIAS_TYPE_H_
#include <string>
#include "src/type/type.h"
#include "src/sem/type.h"
namespace tint {
namespace sem {
@ -60,4 +60,4 @@ class Alias : public Castable<Alias, Type> {
} // namespace sem
} // namespace tint
#endif // SRC_TYPE_ALIAS_TYPE_H_
#endif // SRC_SEM_ALIAS_TYPE_H_

View File

@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/access_control_type.h"
#include "src/type/test_helper.h"
#include "src/type/texture_type.h"
#include "src/sem/access_control_type.h"
#include "src/sem/test_helper.h"
#include "src/sem/texture_type.h"
namespace tint {
namespace sem {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/array_type.h"
#include "src/sem/array_type.h"
#include <cmath>

View File

@ -12,13 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SRC_TYPE_ARRAY_TYPE_H_
#define SRC_TYPE_ARRAY_TYPE_H_
#ifndef SRC_SEM_ARRAY_TYPE_H_
#define SRC_SEM_ARRAY_TYPE_H_
#include <string>
#include "src/ast/decoration.h"
#include "src/type/type.h"
#include "src/sem/type.h"
namespace tint {
namespace sem {
@ -72,4 +72,4 @@ class ArrayType : public Castable<ArrayType, Type> {
} // namespace sem
} // namespace tint
#endif // SRC_TYPE_ARRAY_TYPE_H_
#endif // SRC_SEM_ARRAY_TYPE_H_

View File

@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/access_control_type.h"
#include "src/type/test_helper.h"
#include "src/type/texture_type.h"
#include "src/sem/access_control_type.h"
#include "src/sem/test_helper.h"
#include "src/sem/texture_type.h"
namespace tint {
namespace sem {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/bool_type.h"
#include "src/sem/bool_type.h"
#include "src/program_builder.h"

View File

@ -12,12 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SRC_TYPE_BOOL_TYPE_H_
#define SRC_TYPE_BOOL_TYPE_H_
#ifndef SRC_SEM_BOOL_TYPE_H_
#define SRC_SEM_BOOL_TYPE_H_
#include <string>
#include "src/type/type.h"
#include "src/sem/type.h"
// X11 likes to #define Bool leading to confusing error messages.
// If its defined, undefine it.
@ -54,4 +54,4 @@ class Bool : public Castable<Bool, Type> {
} // namespace sem
} // namespace tint
#endif // SRC_TYPE_BOOL_TYPE_H_
#endif // SRC_SEM_BOOL_TYPE_H_

View File

@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/access_control_type.h"
#include "src/type/test_helper.h"
#include "src/type/texture_type.h"
#include "src/sem/access_control_type.h"
#include "src/sem/test_helper.h"
#include "src/sem/texture_type.h"
namespace tint {
namespace sem {

View File

@ -18,16 +18,13 @@
#include <vector>
#include "src/sem/node.h"
#include "src/type/sampler_type.h"
#include "src/sem/sampler_type.h"
namespace tint {
namespace sem {
// Forward declarations
namespace sem {
class Type;
} // namespace sem
namespace sem {
/// Parameter describes a single parameter of a call target
struct Parameter {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/depth_texture_type.h"
#include "src/sem/depth_texture_type.h"
#include "src/program_builder.h"

View File

@ -12,12 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SRC_TYPE_DEPTH_TEXTURE_TYPE_H_
#define SRC_TYPE_DEPTH_TEXTURE_TYPE_H_
#ifndef SRC_SEM_DEPTH_TEXTURE_TYPE_H_
#define SRC_SEM_DEPTH_TEXTURE_TYPE_H_
#include <string>
#include "src/type/texture_type.h"
#include "src/sem/texture_type.h"
namespace tint {
namespace sem {
@ -49,4 +49,4 @@ class DepthTexture : public Castable<DepthTexture, Texture> {
} // namespace sem
} // namespace tint
#endif // SRC_TYPE_DEPTH_TEXTURE_TYPE_H_
#endif // SRC_SEM_DEPTH_TEXTURE_TYPE_H_

View File

@ -12,14 +12,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/depth_texture_type.h"
#include "src/sem/depth_texture_type.h"
#include "src/type/test_helper.h"
#include "src/sem/test_helper.h"
#include "src/type/access_control_type.h"
#include "src/type/external_texture_type.h"
#include "src/type/sampled_texture_type.h"
#include "src/type/storage_texture_type.h"
#include "src/sem/access_control_type.h"
#include "src/sem/external_texture_type.h"
#include "src/sem/sampled_texture_type.h"
#include "src/sem/storage_texture_type.h"
namespace tint {
namespace sem {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/external_texture_type.h"
#include "src/sem/external_texture_type.h"
#include "src/program_builder.h"

View File

@ -12,12 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SRC_TYPE_EXTERNAL_TEXTURE_TYPE_H_
#define SRC_TYPE_EXTERNAL_TEXTURE_TYPE_H_
#ifndef SRC_SEM_EXTERNAL_TEXTURE_TYPE_H_
#define SRC_SEM_EXTERNAL_TEXTURE_TYPE_H_
#include <string>
#include "src/type/texture_type.h"
#include "src/sem/texture_type.h"
namespace tint {
namespace sem {
@ -46,4 +46,4 @@ class ExternalTexture : public Castable<ExternalTexture, Texture> {
} // namespace sem
} // namespace tint
#endif // SRC_TYPE_EXTERNAL_TEXTURE_TYPE_H_
#endif // SRC_SEM_EXTERNAL_TEXTURE_TYPE_H_

View File

@ -12,14 +12,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/external_texture_type.h"
#include "src/sem/external_texture_type.h"
#include "src/type/access_control_type.h"
#include "src/type/depth_texture_type.h"
#include "src/type/multisampled_texture_type.h"
#include "src/type/sampled_texture_type.h"
#include "src/type/storage_texture_type.h"
#include "src/type/test_helper.h"
#include "src/sem/access_control_type.h"
#include "src/sem/depth_texture_type.h"
#include "src/sem/multisampled_texture_type.h"
#include "src/sem/sampled_texture_type.h"
#include "src/sem/storage_texture_type.h"
#include "src/sem/test_helper.h"
namespace tint {
namespace sem {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/f32_type.h"
#include "src/sem/f32_type.h"
#include "src/program_builder.h"

View File

@ -12,12 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SRC_TYPE_F32_TYPE_H_
#define SRC_TYPE_F32_TYPE_H_
#ifndef SRC_SEM_F32_TYPE_H_
#define SRC_SEM_F32_TYPE_H_
#include <string>
#include "src/type/type.h"
#include "src/sem/type.h"
namespace tint {
namespace sem {
@ -48,4 +48,4 @@ class F32 : public Castable<F32, Type> {
} // namespace sem
} // namespace tint
#endif // SRC_TYPE_F32_TYPE_H_
#endif // SRC_SEM_F32_TYPE_H_

View File

@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/access_control_type.h"
#include "src/type/test_helper.h"
#include "src/type/texture_type.h"
#include "src/sem/access_control_type.h"
#include "src/sem/test_helper.h"
#include "src/sem/texture_type.h"
namespace tint {
namespace sem {

View File

@ -15,11 +15,11 @@
#include "src/sem/function.h"
#include "src/ast/function.h"
#include "src/sem/depth_texture_type.h"
#include "src/sem/multisampled_texture_type.h"
#include "src/sem/sampled_texture_type.h"
#include "src/sem/storage_texture_type.h"
#include "src/sem/variable.h"
#include "src/type/depth_texture_type.h"
#include "src/type/multisampled_texture_type.h"
#include "src/type/sampled_texture_type.h"
#include "src/type/storage_texture_type.h"
TINT_INSTANTIATE_TYPEINFO(tint::sem::Function);

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/i32_type.h"
#include "src/sem/i32_type.h"
#include "src/program_builder.h"

View File

@ -12,12 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SRC_TYPE_I32_TYPE_H_
#define SRC_TYPE_I32_TYPE_H_
#ifndef SRC_SEM_I32_TYPE_H_
#define SRC_SEM_I32_TYPE_H_
#include <string>
#include "src/type/type.h"
#include "src/sem/type.h"
namespace tint {
namespace sem {
@ -48,4 +48,4 @@ class I32 : public Castable<I32, Type> {
} // namespace sem
} // namespace tint
#endif // SRC_TYPE_I32_TYPE_H_
#endif // SRC_SEM_I32_TYPE_H_

View File

@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/access_control_type.h"
#include "src/type/test_helper.h"
#include "src/type/texture_type.h"
#include "src/sem/access_control_type.h"
#include "src/sem/test_helper.h"
#include "src/sem/texture_type.h"
namespace tint {
namespace sem {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/matrix_type.h"
#include "src/sem/matrix_type.h"
#include "src/program_builder.h"

View File

@ -12,12 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SRC_TYPE_MATRIX_TYPE_H_
#define SRC_TYPE_MATRIX_TYPE_H_
#ifndef SRC_SEM_MATRIX_TYPE_H_
#define SRC_SEM_MATRIX_TYPE_H_
#include <string>
#include "src/type/type.h"
#include "src/sem/type.h"
namespace tint {
namespace sem {
@ -63,4 +63,4 @@ class Matrix : public Castable<Matrix, Type> {
} // namespace sem
} // namespace tint
#endif // SRC_TYPE_MATRIX_TYPE_H_
#endif // SRC_SEM_MATRIX_TYPE_H_

View File

@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/access_control_type.h"
#include "src/type/test_helper.h"
#include "src/type/texture_type.h"
#include "src/sem/access_control_type.h"
#include "src/sem/test_helper.h"
#include "src/sem/texture_type.h"
namespace tint {
namespace sem {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/multisampled_texture_type.h"
#include "src/sem/multisampled_texture_type.h"
#include "src/program_builder.h"

View File

@ -12,12 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SRC_TYPE_MULTISAMPLED_TEXTURE_TYPE_H_
#define SRC_TYPE_MULTISAMPLED_TEXTURE_TYPE_H_
#ifndef SRC_SEM_MULTISAMPLED_TEXTURE_TYPE_H_
#define SRC_SEM_MULTISAMPLED_TEXTURE_TYPE_H_
#include <string>
#include "src/type/texture_type.h"
#include "src/sem/texture_type.h"
namespace tint {
namespace sem {
@ -56,4 +56,4 @@ class MultisampledTexture : public Castable<MultisampledTexture, Texture> {
} // namespace sem
} // namespace tint
#endif // SRC_TYPE_MULTISAMPLED_TEXTURE_TYPE_H_
#endif // SRC_SEM_MULTISAMPLED_TEXTURE_TYPE_H_

View File

@ -12,14 +12,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/multisampled_texture_type.h"
#include "src/sem/multisampled_texture_type.h"
#include "src/type/access_control_type.h"
#include "src/type/depth_texture_type.h"
#include "src/type/external_texture_type.h"
#include "src/type/sampled_texture_type.h"
#include "src/type/storage_texture_type.h"
#include "src/type/test_helper.h"
#include "src/sem/access_control_type.h"
#include "src/sem/depth_texture_type.h"
#include "src/sem/external_texture_type.h"
#include "src/sem/sampled_texture_type.h"
#include "src/sem/storage_texture_type.h"
#include "src/sem/test_helper.h"
namespace tint {
namespace sem {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/pointer_type.h"
#include "src/sem/pointer_type.h"
#include "src/program_builder.h"

View File

@ -12,13 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SRC_TYPE_POINTER_TYPE_H_
#define SRC_TYPE_POINTER_TYPE_H_
#ifndef SRC_SEM_POINTER_TYPE_H_
#define SRC_SEM_POINTER_TYPE_H_
#include <string>
#include "src/ast/storage_class.h"
#include "src/type/type.h"
#include "src/sem/type.h"
namespace tint {
namespace sem {
@ -60,4 +60,4 @@ class Pointer : public Castable<Pointer, Type> {
} // namespace sem
} // namespace tint
#endif // SRC_TYPE_POINTER_TYPE_H_
#endif // SRC_SEM_POINTER_TYPE_H_

View File

@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/access_control_type.h"
#include "src/type/test_helper.h"
#include "src/type/texture_type.h"
#include "src/sem/access_control_type.h"
#include "src/sem/test_helper.h"
#include "src/sem/texture_type.h"
namespace tint {
namespace sem {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/sampled_texture_type.h"
#include "src/sem/sampled_texture_type.h"
#include "src/program_builder.h"

View File

@ -12,12 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SRC_TYPE_SAMPLED_TEXTURE_TYPE_H_
#define SRC_TYPE_SAMPLED_TEXTURE_TYPE_H_
#ifndef SRC_SEM_SAMPLED_TEXTURE_TYPE_H_
#define SRC_SEM_SAMPLED_TEXTURE_TYPE_H_
#include <string>
#include "src/type/texture_type.h"
#include "src/sem/texture_type.h"
namespace tint {
namespace sem {
@ -56,4 +56,4 @@ class SampledTexture : public Castable<SampledTexture, Texture> {
} // namespace sem
} // namespace tint
#endif // SRC_TYPE_SAMPLED_TEXTURE_TYPE_H_
#endif // SRC_SEM_SAMPLED_TEXTURE_TYPE_H_

View File

@ -12,13 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/sampled_texture_type.h"
#include "src/sem/sampled_texture_type.h"
#include "src/type/access_control_type.h"
#include "src/type/depth_texture_type.h"
#include "src/type/external_texture_type.h"
#include "src/type/storage_texture_type.h"
#include "src/type/test_helper.h"
#include "src/sem/access_control_type.h"
#include "src/sem/depth_texture_type.h"
#include "src/sem/external_texture_type.h"
#include "src/sem/storage_texture_type.h"
#include "src/sem/test_helper.h"
namespace tint {
namespace sem {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/sampler_type.h"
#include "src/sem/sampler_type.h"
#include "src/program_builder.h"

View File

@ -12,12 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SRC_TYPE_SAMPLER_TYPE_H_
#define SRC_TYPE_SAMPLER_TYPE_H_
#ifndef SRC_SEM_SAMPLER_TYPE_H_
#define SRC_SEM_SAMPLER_TYPE_H_
#include <string>
#include "src/type/type.h"
#include "src/sem/type.h"
namespace tint {
namespace sem {
@ -67,4 +67,4 @@ class Sampler : public Castable<Sampler, Type> {
} // namespace sem
} // namespace tint
#endif // SRC_TYPE_SAMPLER_TYPE_H_
#endif // SRC_SEM_SAMPLER_TYPE_H_

View File

@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/access_control_type.h"
#include "src/type/test_helper.h"
#include "src/type/texture_type.h"
#include "src/sem/access_control_type.h"
#include "src/sem/test_helper.h"
#include "src/sem/texture_type.h"
namespace tint {
namespace sem {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/storage_texture_type.h"
#include "src/sem/storage_texture_type.h"
#include "src/program_builder.h"

View File

@ -12,12 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SRC_TYPE_STORAGE_TEXTURE_TYPE_H_
#define SRC_TYPE_STORAGE_TEXTURE_TYPE_H_
#ifndef SRC_SEM_STORAGE_TEXTURE_TYPE_H_
#define SRC_SEM_STORAGE_TEXTURE_TYPE_H_
#include <string>
#include "src/type/texture_type.h"
#include "src/sem/texture_type.h"
namespace tint {
namespace sem {
@ -110,4 +110,4 @@ class StorageTexture : public Castable<StorageTexture, Texture> {
} // namespace sem
} // namespace tint
#endif // SRC_TYPE_STORAGE_TEXTURE_TYPE_H_
#endif // SRC_SEM_STORAGE_TEXTURE_TYPE_H_

View File

@ -12,13 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/storage_texture_type.h"
#include "src/sem/storage_texture_type.h"
#include "src/type/access_control_type.h"
#include "src/type/depth_texture_type.h"
#include "src/type/external_texture_type.h"
#include "src/type/sampled_texture_type.h"
#include "src/type/test_helper.h"
#include "src/sem/access_control_type.h"
#include "src/sem/depth_texture_type.h"
#include "src/sem/external_texture_type.h"
#include "src/sem/sampled_texture_type.h"
#include "src/sem/test_helper.h"
namespace tint {
namespace sem {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/struct_type.h"
#include "src/sem/struct_type.h"
#include <cmath>

View File

@ -12,13 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SRC_TYPE_STRUCT_TYPE_H_
#define SRC_TYPE_STRUCT_TYPE_H_
#ifndef SRC_SEM_STRUCT_TYPE_H_
#define SRC_SEM_STRUCT_TYPE_H_
#include <string>
#include "src/ast/struct.h"
#include "src/type/type.h"
#include "src/sem/type.h"
namespace tint {
namespace sem {
@ -66,4 +66,4 @@ class StructType : public Castable<StructType, Type> {
} // namespace sem
} // namespace tint
#endif // SRC_TYPE_STRUCT_TYPE_H_
#endif // SRC_SEM_STRUCT_TYPE_H_

View File

@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/access_control_type.h"
#include "src/type/test_helper.h"
#include "src/type/texture_type.h"
#include "src/sem/access_control_type.h"
#include "src/sem/test_helper.h"
#include "src/sem/texture_type.h"
namespace tint {
namespace sem {

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SRC_TYPE_TEST_HELPER_H_
#define SRC_TYPE_TEST_HELPER_H_
#ifndef SRC_SEM_TEST_HELPER_H_
#define SRC_SEM_TEST_HELPER_H_
#include <utility>
@ -46,4 +46,4 @@ using TestParamHelper = TestHelperBase<testing::TestWithParam<T>>;
} // namespace sem
} // namespace tint
#endif // SRC_TYPE_TEST_HELPER_H_
#endif // SRC_SEM_TEST_HELPER_H_

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/texture_type.h"
#include "src/sem/texture_type.h"
TINT_INSTANTIATE_TYPEINFO(tint::sem::Texture);

View File

@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SRC_TYPE_TEXTURE_TYPE_H_
#define SRC_TYPE_TEXTURE_TYPE_H_
#ifndef SRC_SEM_TEXTURE_TYPE_H_
#define SRC_SEM_TEXTURE_TYPE_H_
#include "src/type/type.h"
#include "src/sem/type.h"
namespace tint {
namespace sem {
@ -72,4 +72,4 @@ class Texture : public Castable<Texture, Type> {
} // namespace sem
} // namespace tint
#endif // SRC_TYPE_TEXTURE_TYPE_H_
#endif // SRC_SEM_TEXTURE_TYPE_H_

View File

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

View File

@ -12,19 +12,19 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/type.h"
#include "src/sem/type.h"
#include "src/type/access_control_type.h"
#include "src/type/alias_type.h"
#include "src/type/bool_type.h"
#include "src/type/f32_type.h"
#include "src/type/i32_type.h"
#include "src/type/matrix_type.h"
#include "src/type/pointer_type.h"
#include "src/type/sampler_type.h"
#include "src/type/texture_type.h"
#include "src/type/u32_type.h"
#include "src/type/vector_type.h"
#include "src/sem/access_control_type.h"
#include "src/sem/alias_type.h"
#include "src/sem/bool_type.h"
#include "src/sem/f32_type.h"
#include "src/sem/i32_type.h"
#include "src/sem/matrix_type.h"
#include "src/sem/pointer_type.h"
#include "src/sem/sampler_type.h"
#include "src/sem/texture_type.h"
#include "src/sem/u32_type.h"
#include "src/sem/vector_type.h"
TINT_INSTANTIATE_TYPEINFO(tint::sem::Type);

View File

@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SRC_TYPE_TYPE_H_
#define SRC_TYPE_TYPE_H_
#ifndef SRC_SEM_TYPE_H_
#define SRC_SEM_TYPE_H_
#include <string>
@ -112,4 +112,4 @@ inline ProgramID ProgramIDOf(const Type*) {
} // namespace sem
} // namespace tint
#endif // SRC_TYPE_TYPE_H_
#endif // SRC_SEM_TYPE_H_

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/type_manager.h"
#include "src/sem/type_manager.h"
namespace tint {
namespace sem {

View File

@ -12,15 +12,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SRC_TYPE_TYPE_MANAGER_H_
#define SRC_TYPE_TYPE_MANAGER_H_
#ifndef SRC_SEM_TYPE_MANAGER_H_
#define SRC_SEM_TYPE_MANAGER_H_
#include <string>
#include <unordered_map>
#include <utility>
#include "src/block_allocator.h"
#include "src/type/type.h"
#include "src/sem/type.h"
namespace tint {
namespace sem {
@ -97,4 +97,4 @@ class Manager {
} // namespace sem
} // namespace tint
#endif // SRC_TYPE_TYPE_MANAGER_H_
#endif // SRC_SEM_TYPE_MANAGER_H_

View File

@ -12,11 +12,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/type_manager.h"
#include "src/sem/type_manager.h"
#include "gtest/gtest.h"
#include "src/type/i32_type.h"
#include "src/type/u32_type.h"
#include "src/sem/i32_type.h"
#include "src/sem/u32_type.h"
namespace tint {
namespace sem {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/u32_type.h"
#include "src/sem/u32_type.h"
#include "src/program_builder.h"

View File

@ -12,12 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SRC_TYPE_U32_TYPE_H_
#define SRC_TYPE_U32_TYPE_H_
#ifndef SRC_SEM_U32_TYPE_H_
#define SRC_SEM_U32_TYPE_H_
#include <string>
#include "src/type/type.h"
#include "src/sem/type.h"
namespace tint {
namespace sem {
@ -48,4 +48,4 @@ class U32 : public Castable<U32, Type> {
} // namespace sem
} // namespace tint
#endif // SRC_TYPE_U32_TYPE_H_
#endif // SRC_SEM_U32_TYPE_H_

View File

@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/access_control_type.h"
#include "src/type/test_helper.h"
#include "src/type/texture_type.h"
#include "src/sem/access_control_type.h"
#include "src/sem/test_helper.h"
#include "src/sem/texture_type.h"
namespace tint {
namespace sem {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/vector_type.h"
#include "src/sem/vector_type.h"
#include "src/program_builder.h"

View File

@ -12,12 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SRC_TYPE_VECTOR_TYPE_H_
#define SRC_TYPE_VECTOR_TYPE_H_
#ifndef SRC_SEM_VECTOR_TYPE_H_
#define SRC_SEM_VECTOR_TYPE_H_
#include <string>
#include "src/type/type.h"
#include "src/sem/type.h"
namespace tint {
namespace sem {
@ -59,4 +59,4 @@ class Vector : public Castable<Vector, Type> {
} // namespace sem
} // namespace tint
#endif // SRC_TYPE_VECTOR_TYPE_H_
#endif // SRC_SEM_VECTOR_TYPE_H_

View File

@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/access_control_type.h"
#include "src/type/test_helper.h"
#include "src/type/texture_type.h"
#include "src/sem/access_control_type.h"
#include "src/sem/test_helper.h"
#include "src/sem/texture_type.h"
namespace tint {
namespace sem {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "src/type/void_type.h"
#include "src/sem/void_type.h"
#include "src/program_builder.h"

View File

@ -12,12 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SRC_TYPE_VOID_TYPE_H_
#define SRC_TYPE_VOID_TYPE_H_
#ifndef SRC_SEM_VOID_TYPE_H_
#define SRC_SEM_VOID_TYPE_H_
#include <string>
#include "src/type/type.h"
#include "src/sem/type.h"
namespace tint {
namespace sem {
@ -48,4 +48,4 @@ class Void : public Castable<Void, Type> {
} // namespace sem
} // namespace tint
#endif // SRC_TYPE_VOID_TYPE_H_
#endif // SRC_SEM_VOID_TYPE_H_

View File

@ -17,8 +17,8 @@
#include <utility>
#include "src/program_builder.h"
#include "src/sem/access_control_type.h"
#include "src/sem/variable.h"
#include "src/type/access_control_type.h"
TINT_INSTANTIATE_TYPEINFO(tint::transform::BindingRemapper::Remappings);

View File

@ -24,12 +24,12 @@
#include "src/ast/call_statement.h"
#include "src/ast/scalar_constructor_expression.h"
#include "src/program_builder.h"
#include "src/sem/access_control_type.h"
#include "src/sem/array.h"
#include "src/sem/call.h"
#include "src/sem/member_accessor_expression.h"
#include "src/sem/struct.h"
#include "src/sem/variable.h"
#include "src/type/access_control_type.h"
#include "src/utils/get_or_create.h"
#include "src/utils/hash.h"

View File

@ -22,19 +22,19 @@
#include "src/ast/fallthrough_statement.h"
#include "src/ast/internal_decoration.h"
#include "src/ast/variable_decl_statement.h"
#include "src/sem/access_control_type.h"
#include "src/sem/array.h"
#include "src/sem/call.h"
#include "src/sem/depth_texture_type.h"
#include "src/sem/function.h"
#include "src/sem/member_accessor_expression.h"
#include "src/sem/multisampled_texture_type.h"
#include "src/sem/sampled_texture_type.h"
#include "src/sem/storage_texture_type.h"
#include "src/sem/struct.h"
#include "src/sem/variable.h"
#include "src/transform/calculate_array_length.h"
#include "src/transform/decompose_storage_access.h"
#include "src/type/access_control_type.h"
#include "src/type/depth_texture_type.h"
#include "src/type/multisampled_texture_type.h"
#include "src/type/sampled_texture_type.h"
#include "src/type/storage_texture_type.h"
#include "src/writer/append_vector.h"
#include "src/writer/float_to_string.h"

View File

@ -17,7 +17,7 @@
#include "src/ast/struct_block_decoration.h"
#include "src/ast/variable_decl_statement.h"
#include "src/ast/workgroup_decoration.h"
#include "src/type/access_control_type.h"
#include "src/sem/access_control_type.h"
#include "src/writer/hlsl/test_helper.h"
using ::testing::HasSubstr;

View File

@ -15,7 +15,7 @@
#include "gmock/gmock.h"
#include "src/ast/stage_decoration.h"
#include "src/ast/struct_block_decoration.h"
#include "src/type/access_control_type.h"
#include "src/sem/access_control_type.h"
#include "src/writer/hlsl/test_helper.h"
namespace tint {

View File

@ -15,7 +15,7 @@
#include "src/ast/stage_decoration.h"
#include "src/ast/struct_block_decoration.h"
#include "src/ast/variable_decl_statement.h"
#include "src/type/access_control_type.h"
#include "src/sem/access_control_type.h"
#include "src/writer/hlsl/test_helper.h"
namespace tint {

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