mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 10:49:14 +00:00
tint: Remove type::AddressSpace::kNone
Just use kUndefined. Change-Id: I26eada75a31b26f83e132a9a15c8ff64f7821676 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/120404 Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
643f2aad43
commit
1b90f93742
@@ -59,8 +59,6 @@ std::ostream& operator<<(std::ostream& out, AddressSpace value) {
|
||||
return out << "handle";
|
||||
case AddressSpace::kIn:
|
||||
return out << "in";
|
||||
case AddressSpace::kNone:
|
||||
return out << "none";
|
||||
case AddressSpace::kOut:
|
||||
return out << "out";
|
||||
case AddressSpace::kPrivate:
|
||||
|
||||
@@ -33,7 +33,6 @@ enum class AddressSpace {
|
||||
kFunction,
|
||||
kHandle, // Tint-internal enum entry - not parsed
|
||||
kIn, // Tint-internal enum entry - not parsed
|
||||
kNone, // Tint-internal enum entry - not parsed
|
||||
kOut, // Tint-internal enum entry - not parsed
|
||||
kPrivate,
|
||||
kPushConstant,
|
||||
|
||||
@@ -45,7 +45,7 @@ bool Pointer::Equals(const UniqueNode& other) const {
|
||||
std::string Pointer::FriendlyName(const SymbolTable& symbols) const {
|
||||
std::ostringstream out;
|
||||
out << "ptr<";
|
||||
if (address_space_ != AddressSpace::kNone) {
|
||||
if (address_space_ != AddressSpace::kUndefined) {
|
||||
out << address_space_ << ", ";
|
||||
}
|
||||
out << subtype_->FriendlyName(symbols) << ", " << access_;
|
||||
|
||||
@@ -59,7 +59,7 @@ TEST_F(PointerTest, Equals) {
|
||||
}
|
||||
|
||||
TEST_F(PointerTest, FriendlyName) {
|
||||
auto* r = create<Pointer>(create<I32>(), AddressSpace::kNone, type::Access::kRead);
|
||||
auto* r = create<Pointer>(create<I32>(), AddressSpace::kUndefined, type::Access::kRead);
|
||||
EXPECT_EQ(r->FriendlyName(Symbols()), "ptr<i32, read>");
|
||||
}
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ bool Reference::Equals(const UniqueNode& other) const {
|
||||
std::string Reference::FriendlyName(const SymbolTable& symbols) const {
|
||||
std::ostringstream out;
|
||||
out << "ref<";
|
||||
if (address_space_ != AddressSpace::kNone) {
|
||||
if (address_space_ != AddressSpace::kUndefined) {
|
||||
out << address_space_ << ", ";
|
||||
}
|
||||
out << subtype_->FriendlyName(symbols) << ", " << access_;
|
||||
|
||||
@@ -59,7 +59,7 @@ TEST_F(ReferenceTest, Equals) {
|
||||
}
|
||||
|
||||
TEST_F(ReferenceTest, FriendlyName) {
|
||||
auto* r = create<Reference>(create<I32>(), AddressSpace::kNone, type::Access::kRead);
|
||||
auto* r = create<Reference>(create<I32>(), AddressSpace::kUndefined, type::Access::kRead);
|
||||
EXPECT_EQ(r->FriendlyName(Symbols()), "ref<i32, read>");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user