dawn-cmake/src/type
Ben Clayton e43c830b14 Add ProgramBuilder::Wrap()
Follows the basic shallow-clone pattern of type::Manager::Wrap(),
which this new method uses.

Use ProgramBuilder::Wrap() in the writers, where we were previously
using type::Manager::Wrap(). This simplifies some of the logic
(especially around AppendVector()).

This is now required as semantic information is generated inside the
writers for newly constructed AST nodes, and we need to register
this semantic info so it can be fetched later.

Change-Id: Ia362204a1f13054e50545baeb7d269f210a36826
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/39004
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: dan sinclair <dsinclair@chromium.org>
2021-01-29 11:59:32 +00:00
..
access_control_type.cc Split Program into Program and ProgramBuilder 2021-01-26 16:57:10 +00:00
access_control_type.h Move tint::ast::type to tint::type 2021-01-21 15:42:10 +00:00
access_control_type_test.cc ast::TypesBuilder: Change const fields to getters 2021-01-26 16:57:10 +00:00
alias_type.cc Split Program into Program and ProgramBuilder 2021-01-26 16:57:10 +00:00
alias_type.h Move tint::ast::type to tint::type 2021-01-21 15:42:10 +00:00
alias_type_test.cc ast::TypesBuilder: Change const fields to getters 2021-01-26 16:57:10 +00:00
array_type.cc Split Program into Program and ProgramBuilder 2021-01-26 16:57:10 +00:00
array_type.h Move tint::ast::type to tint::type 2021-01-21 15:42:10 +00:00
array_type_test.cc Move tint::ast::type to tint::type 2021-01-21 15:42:10 +00:00
bool_type.cc Split Program into Program and ProgramBuilder 2021-01-26 16:57:10 +00:00
bool_type.h Move tint::ast::type to tint::type 2021-01-21 15:42:10 +00:00
bool_type_test.cc Move tint::ast::type to tint::type 2021-01-21 15:42:10 +00:00
depth_texture_type.cc Split Program into Program and ProgramBuilder 2021-01-26 16:57:10 +00:00
depth_texture_type.h Move tint::ast::type to tint::type 2021-01-21 15:42:10 +00:00
depth_texture_type_test.cc Move tint::ast::type to tint::type 2021-01-21 15:42:10 +00:00
f32_type.cc Split Program into Program and ProgramBuilder 2021-01-26 16:57:10 +00:00
f32_type.h Move tint::ast::type to tint::type 2021-01-21 15:42:10 +00:00
f32_type_test.cc Move tint::ast::type to tint::type 2021-01-21 15:42:10 +00:00
i32_type.cc Split Program into Program and ProgramBuilder 2021-01-26 16:57:10 +00:00
i32_type.h Move tint::ast::type to tint::type 2021-01-21 15:42:10 +00:00
i32_type_test.cc Move tint::ast::type to tint::type 2021-01-21 15:42:10 +00:00
matrix_type.cc Split Program into Program and ProgramBuilder 2021-01-26 16:57:10 +00:00
matrix_type.h Move tint::ast::type to tint::type 2021-01-21 15:42:10 +00:00
matrix_type_test.cc Move tint::ast::type to tint::type 2021-01-21 15:42:10 +00:00
multisampled_texture_type.cc Split Program into Program and ProgramBuilder 2021-01-26 16:57:10 +00:00
multisampled_texture_type.h Move tint::ast::type to tint::type 2021-01-21 15:42:10 +00:00
multisampled_texture_type_test.cc Move tint::ast::type to tint::type 2021-01-21 15:42:10 +00:00
pointer_type.cc Split Program into Program and ProgramBuilder 2021-01-26 16:57:10 +00:00
pointer_type.h Move tint::ast::type to tint::type 2021-01-21 15:42:10 +00:00
pointer_type_test.cc Move tint::ast::type to tint::type 2021-01-21 15:42:10 +00:00
sampled_texture_type.cc Split Program into Program and ProgramBuilder 2021-01-26 16:57:10 +00:00
sampled_texture_type.h Move tint::ast::type to tint::type 2021-01-21 15:42:10 +00:00
sampled_texture_type_test.cc Move tint::ast::type to tint::type 2021-01-21 15:42:10 +00:00
sampler_type.cc Split Program into Program and ProgramBuilder 2021-01-26 16:57:10 +00:00
sampler_type.h Move tint::ast::type to tint::type 2021-01-21 15:42:10 +00:00
sampler_type_test.cc Move tint::ast::type to tint::type 2021-01-21 15:42:10 +00:00
storage_texture_type.cc Split Program into Program and ProgramBuilder 2021-01-26 16:57:10 +00:00
storage_texture_type.h Move tint::ast::type to tint::type 2021-01-21 15:42:10 +00:00
storage_texture_type_test.cc Split Program into Program and ProgramBuilder 2021-01-26 16:57:10 +00:00
struct_type.cc Split Program into Program and ProgramBuilder 2021-01-26 16:57:10 +00:00
struct_type.h Move tint::ast::type to tint::type 2021-01-21 15:42:10 +00:00
struct_type_test.cc ast::TypesBuilder: Change const fields to getters 2021-01-26 16:57:10 +00:00
test_helper.h Simplify calls to ast::Node::[to_]str() 2021-01-29 11:22:40 +00:00
texture_type.cc Move tint::ast::type to tint::type 2021-01-21 15:42:10 +00:00
texture_type.h Move tint::ast::type to tint::type 2021-01-21 15:42:10 +00:00
texture_type_test.cc Move tint::ast::type to tint::type 2021-01-21 15:42:10 +00:00
type.cc Move tint::ast::type to tint::type 2021-01-21 15:42:10 +00:00
type.h Split Program into Program and ProgramBuilder 2021-01-26 16:57:10 +00:00
type_manager.cc type::Manager: Simplify interface and use BlockAllocator 2021-01-21 16:35:10 +00:00
type_manager.h Add ProgramBuilder::Wrap() 2021-01-29 11:59:32 +00:00
type_manager_test.cc type::Manager: Add Wrap() 2021-01-26 16:57:10 +00:00
u32_type.cc Split Program into Program and ProgramBuilder 2021-01-26 16:57:10 +00:00
u32_type.h Move tint::ast::type to tint::type 2021-01-21 15:42:10 +00:00
u32_type_test.cc Move tint::ast::type to tint::type 2021-01-21 15:42:10 +00:00
vector_type.cc Split Program into Program and ProgramBuilder 2021-01-26 16:57:10 +00:00
vector_type.h Move tint::ast::type to tint::type 2021-01-21 15:42:10 +00:00
vector_type_test.cc Move tint::ast::type to tint::type 2021-01-21 15:42:10 +00:00
void_type.cc Split Program into Program and ProgramBuilder 2021-01-26 16:57:10 +00:00
void_type.h Move tint::ast::type to tint::type 2021-01-21 15:42:10 +00:00