mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 21:47:47 +00:00
ProgramBuilder: Generate type pairs for primitives
Emit the new typ::I32, typ::U32, typ::F32, typ::Void, typ::Bool types instead of the just the sem::Types. Used as a stepping stone to emitting the ast::Types instead. Bug: tint:724 Change-Id: Ic492e33bc909e0821b581af05242d956631db2e3 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/48602 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Antonio Maiorano <amaiorano@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
committed by
Commit Bot service account
parent
440636c15c
commit
a922e65d72
@@ -23,7 +23,7 @@ TEST_F(ParserImplTest, StructMember_Parses) {
|
||||
auto p = parser("a : i32;");
|
||||
|
||||
auto& builder = p->builder();
|
||||
auto* i32 = builder.ty.i32();
|
||||
auto i32 = builder.ty.i32();
|
||||
|
||||
auto decos = p->decoration_list();
|
||||
EXPECT_FALSE(decos.errored);
|
||||
@@ -49,7 +49,7 @@ TEST_F(ParserImplTest, StructMember_ParsesWithOffsetDecoration_DEPRECATED) {
|
||||
auto p = parser("[[offset(2)]] a : i32;");
|
||||
|
||||
auto& builder = p->builder();
|
||||
auto* i32 = builder.ty.i32();
|
||||
auto i32 = builder.ty.i32();
|
||||
|
||||
auto decos = p->decoration_list();
|
||||
EXPECT_FALSE(decos.errored);
|
||||
@@ -79,7 +79,7 @@ TEST_F(ParserImplTest, StructMember_ParsesWithAlignDecoration) {
|
||||
auto p = parser("[[align(2)]] a : i32;");
|
||||
|
||||
auto& builder = p->builder();
|
||||
auto* i32 = builder.ty.i32();
|
||||
auto i32 = builder.ty.i32();
|
||||
|
||||
auto decos = p->decoration_list();
|
||||
EXPECT_FALSE(decos.errored);
|
||||
@@ -108,7 +108,7 @@ TEST_F(ParserImplTest, StructMember_ParsesWithSizeDecoration) {
|
||||
auto p = parser("[[size(2)]] a : i32;");
|
||||
|
||||
auto& builder = p->builder();
|
||||
auto* i32 = builder.ty.i32();
|
||||
auto i32 = builder.ty.i32();
|
||||
|
||||
auto decos = p->decoration_list();
|
||||
EXPECT_FALSE(decos.errored);
|
||||
@@ -137,7 +137,7 @@ TEST_F(ParserImplTest, StructMember_ParsesWithDecoration) {
|
||||
auto p = parser("[[size(2)]] a : i32;");
|
||||
|
||||
auto& builder = p->builder();
|
||||
auto* i32 = builder.ty.i32();
|
||||
auto i32 = builder.ty.i32();
|
||||
|
||||
auto decos = p->decoration_list();
|
||||
EXPECT_FALSE(decos.errored);
|
||||
@@ -167,7 +167,7 @@ TEST_F(ParserImplTest, StructMember_ParsesWithMultipleDecorations) {
|
||||
[[align(4)]] a : i32;)");
|
||||
|
||||
auto& builder = p->builder();
|
||||
auto* i32 = builder.ty.i32();
|
||||
auto i32 = builder.ty.i32();
|
||||
|
||||
auto decos = p->decoration_list();
|
||||
EXPECT_FALSE(decos.errored);
|
||||
|
||||
Reference in New Issue
Block a user