tint/sem/constant.h: Remove #include to program_builder.h
This pulls in the entire world, and isn't needed from this header. Remove it. Fix all the places that were transtively depending on program_builder.h's includes. Change-Id: I5209dcd387fb47dd6744a3d676997338b8f45473 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/95040 Reviewed-by: dan sinclair <dsinclair@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Commit-Queue: Ben Clayton <bclayton@chromium.org>
This commit is contained in:
parent
f1060adbca
commit
72876c14c3
|
@ -16,6 +16,7 @@
|
|||
|
||||
#include <memory>
|
||||
|
||||
#include "src/tint/ast/unary_op_expression.h"
|
||||
#include "src/tint/fuzzers/tint_ast_fuzzer/mutations/change_unary_operator.h"
|
||||
#include "src/tint/fuzzers/tint_ast_fuzzer/util.h"
|
||||
#include "src/tint/sem/reference.h"
|
||||
|
|
|
@ -16,6 +16,8 @@
|
|||
|
||||
#include <utility>
|
||||
|
||||
#include "src/tint/program_builder.h"
|
||||
#include "src/tint/sem/bool.h"
|
||||
#include "src/tint/sem/reference.h"
|
||||
|
||||
namespace tint::fuzzers::ast_fuzzer {
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
#ifndef SRC_TINT_FUZZERS_TINT_AST_FUZZER_MUTATIONS_CHANGE_UNARY_OPERATOR_H_
|
||||
#define SRC_TINT_FUZZERS_TINT_AST_FUZZER_MUTATIONS_CHANGE_UNARY_OPERATOR_H_
|
||||
|
||||
#include "src/tint/ast/unary_op.h"
|
||||
#include "src/tint/fuzzers/tint_ast_fuzzer/mutation.h"
|
||||
#include "src/tint/sem/variable.h"
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
#include "src/tint/fuzzers/tint_ast_fuzzer/mutation.h"
|
||||
|
||||
#include "src/tint/ast/unary_op.h"
|
||||
#include "src/tint/sem/variable.h"
|
||||
|
||||
namespace tint::fuzzers::ast_fuzzer {
|
||||
|
|
|
@ -22,12 +22,17 @@
|
|||
#include "src/tint/ast/extension.h"
|
||||
#include "src/tint/ast/float_literal_expression.h"
|
||||
#include "src/tint/ast/id_attribute.h"
|
||||
#include "src/tint/ast/int_literal_expression.h"
|
||||
#include "src/tint/ast/interpolate_attribute.h"
|
||||
#include "src/tint/ast/location_attribute.h"
|
||||
#include "src/tint/ast/module.h"
|
||||
#include "src/tint/ast/override.h"
|
||||
#include "src/tint/ast/var.h"
|
||||
#include "src/tint/sem/array.h"
|
||||
#include "src/tint/sem/call.h"
|
||||
#include "src/tint/sem/depth_multisampled_texture.h"
|
||||
#include "src/tint/sem/depth_texture.h"
|
||||
#include "src/tint/sem/external_texture.h"
|
||||
#include "src/tint/sem/f16.h"
|
||||
#include "src/tint/sem/f32.h"
|
||||
#include "src/tint/sem/function.h"
|
||||
|
|
|
@ -19,12 +19,58 @@
|
|||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "src/tint/ast/alias.h"
|
||||
#include "src/tint/ast/array.h"
|
||||
#include "src/tint/ast/assignment_statement.h"
|
||||
#include "src/tint/ast/atomic.h"
|
||||
#include "src/tint/ast/block_statement.h"
|
||||
#include "src/tint/ast/bool.h"
|
||||
#include "src/tint/ast/break_statement.h"
|
||||
#include "src/tint/ast/call_statement.h"
|
||||
#include "src/tint/ast/compound_assignment_statement.h"
|
||||
#include "src/tint/ast/continue_statement.h"
|
||||
#include "src/tint/ast/depth_multisampled_texture.h"
|
||||
#include "src/tint/ast/depth_texture.h"
|
||||
#include "src/tint/ast/discard_statement.h"
|
||||
#include "src/tint/ast/external_texture.h"
|
||||
#include "src/tint/ast/f16.h"
|
||||
#include "src/tint/ast/f32.h"
|
||||
#include "src/tint/ast/fallthrough_statement.h"
|
||||
#include "src/tint/ast/for_loop_statement.h"
|
||||
#include "src/tint/ast/i32.h"
|
||||
#include "src/tint/ast/id_attribute.h"
|
||||
#include "src/tint/ast/if_statement.h"
|
||||
#include "src/tint/ast/increment_decrement_statement.h"
|
||||
#include "src/tint/ast/internal_attribute.h"
|
||||
#include "src/tint/ast/interpolate_attribute.h"
|
||||
#include "src/tint/ast/invariant_attribute.h"
|
||||
#include "src/tint/ast/location_attribute.h"
|
||||
#include "src/tint/ast/loop_statement.h"
|
||||
#include "src/tint/ast/matrix.h"
|
||||
#include "src/tint/ast/multisampled_texture.h"
|
||||
#include "src/tint/ast/pointer.h"
|
||||
#include "src/tint/ast/return_statement.h"
|
||||
#include "src/tint/ast/sampled_texture.h"
|
||||
#include "src/tint/ast/stage_attribute.h"
|
||||
#include "src/tint/ast/storage_texture.h"
|
||||
#include "src/tint/ast/stride_attribute.h"
|
||||
#include "src/tint/ast/struct.h"
|
||||
#include "src/tint/ast/struct_member_align_attribute.h"
|
||||
#include "src/tint/ast/struct_member_offset_attribute.h"
|
||||
#include "src/tint/ast/struct_member_size_attribute.h"
|
||||
#include "src/tint/ast/switch_statement.h"
|
||||
#include "src/tint/ast/traverse_expressions.h"
|
||||
#include "src/tint/ast/type_name.h"
|
||||
#include "src/tint/ast/u32.h"
|
||||
#include "src/tint/ast/variable_decl_statement.h"
|
||||
#include "src/tint/ast/vector.h"
|
||||
#include "src/tint/ast/void.h"
|
||||
#include "src/tint/ast/while_statement.h"
|
||||
#include "src/tint/ast/workgroup_attribute.h"
|
||||
#include "src/tint/scope_stack.h"
|
||||
#include "src/tint/sem/builtin.h"
|
||||
#include "src/tint/symbol_table.h"
|
||||
#include "src/tint/utils/block_allocator.h"
|
||||
#include "src/tint/utils/defer.h"
|
||||
#include "src/tint/utils/map.h"
|
||||
#include "src/tint/utils/scoped_assignment.h"
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
#include <unordered_map>
|
||||
#include <utility>
|
||||
|
||||
#include "src/tint/ast/binary_expression.h"
|
||||
#include "src/tint/program_builder.h"
|
||||
#include "src/tint/sem/abstract_float.h"
|
||||
#include "src/tint/sem/abstract_int.h"
|
||||
|
|
|
@ -19,6 +19,8 @@
|
|||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "src/tint/ast/binary_expression.h"
|
||||
#include "src/tint/ast/unary_op.h"
|
||||
#include "src/tint/resolver/const_eval.h"
|
||||
#include "src/tint/resolver/ctor_conv_intrinsic.h"
|
||||
#include "src/tint/sem/builtin.h"
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
|
||||
#include <vector>
|
||||
|
||||
#include "src/tint/ast/call_expression.h"
|
||||
#include "src/tint/sem/builtin.h"
|
||||
#include "src/tint/sem/expression.h"
|
||||
|
||||
|
|
|
@ -20,8 +20,12 @@
|
|||
#include <variant>
|
||||
#include <vector>
|
||||
|
||||
#include "src/tint/program_builder.h"
|
||||
#include "src/tint/sem/type.h"
|
||||
#include "src/tint/number.h"
|
||||
|
||||
// Forward declarations
|
||||
namespace tint::sem {
|
||||
class Type;
|
||||
}
|
||||
|
||||
namespace tint::sem {
|
||||
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
|
||||
#include "src/tint/sem/index_accessor_expression.h"
|
||||
|
||||
#include "src/tint/ast/index_accessor_expression.h"
|
||||
|
||||
#include <utility>
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::sem::IndexAccessorExpression);
|
||||
|
|
|
@ -17,7 +17,9 @@
|
|||
#include <utility>
|
||||
|
||||
#include "src/tint/ast/identifier_expression.h"
|
||||
#include "src/tint/ast/parameter.h"
|
||||
#include "src/tint/ast/variable.h"
|
||||
#include "src/tint/sem/pointer.h"
|
||||
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::sem::Variable);
|
||||
TINT_INSTANTIATE_TYPEINFO(tint::sem::GlobalVariable);
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
// Forward declarations
|
||||
namespace tint::ast {
|
||||
class IdentifierExpression;
|
||||
class Parameter;
|
||||
class Variable;
|
||||
} // namespace tint::ast
|
||||
namespace tint::sem {
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "src/tint/program_builder.h"
|
||||
#include "src/tint/sem/function.h"
|
||||
#include "src/tint/sem/statement.h"
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include <unordered_map>
|
||||
|
||||
#include "src/tint/ast/variable_decl_statement.h"
|
||||
#include "src/tint/program_builder.h"
|
||||
#include "src/tint/sem/block_statement.h"
|
||||
#include "src/tint/sem/for_loop_statement.h"
|
||||
#include "src/tint/sem/if_statement.h"
|
||||
|
|
Loading…
Reference in New Issue