@@ -92,7 +92,7 @@ bool Type::IsUniqueType() const {
92
92
case kStruct :
93
93
case kArray :
94
94
case kRuntimeArray :
95
- case kNodePayloadArray :
95
+ case kNodePayloadArrayAMDX :
96
96
return false ;
97
97
default :
98
98
return true ;
@@ -165,6 +165,7 @@ bool Type::operator==(const Type& other) const {
165
165
DeclareKindCase (SampledImage);
166
166
DeclareKindCase (Array);
167
167
DeclareKindCase (RuntimeArray);
168
+ DeclareKindCase (NodePayloadArrayAMDX);
168
169
DeclareKindCase (Struct);
169
170
DeclareKindCase (Opaque);
170
171
DeclareKindCase (Pointer);
@@ -221,7 +222,7 @@ size_t Type::ComputeHashValue(size_t hash, SeenTypes* seen) const {
221
222
DeclareKindCase (SampledImage);
222
223
DeclareKindCase (Array);
223
224
DeclareKindCase (RuntimeArray);
224
- DeclareKindCase (NodePayloadArray );
225
+ DeclareKindCase (NodePayloadArrayAMDX );
225
226
DeclareKindCase (Struct);
226
227
DeclareKindCase (Opaque);
227
228
DeclareKindCase (Pointer);
@@ -489,29 +490,31 @@ void RuntimeArray::ReplaceElementType(const Type* type) {
489
490
element_type_ = type;
490
491
}
491
492
492
- NodePayloadArray::NodePayloadArray (const Type* type)
493
- : Type(kNodePayloadArray ), element_type_(type) {
493
+ NodePayloadArrayAMDX::NodePayloadArrayAMDX (const Type* type)
494
+ : Type(kNodePayloadArrayAMDX ), element_type_(type) {
494
495
assert (!type->AsVoid ());
495
496
}
496
497
497
- bool NodePayloadArray::IsSameImpl (const Type* that, IsSameCache* seen) const {
498
- const NodePayloadArray* rat = that->AsNodePayloadArray ();
498
+ bool NodePayloadArrayAMDX::IsSameImpl (const Type* that,
499
+ IsSameCache* seen) const {
500
+ const NodePayloadArrayAMDX* rat = that->AsNodePayloadArrayAMDX ();
499
501
if (!rat) return false ;
500
502
return element_type_->IsSameImpl (rat->element_type_ , seen) &&
501
503
HasSameDecorations (that);
502
504
}
503
505
504
- std::string NodePayloadArray ::str () const {
506
+ std::string NodePayloadArrayAMDX ::str () const {
505
507
std::ostringstream oss;
506
508
oss << " [" << element_type_->str () << " ]" ;
507
509
return oss.str ();
508
510
}
509
511
510
- size_t NodePayloadArray::ComputeExtraStateHash (size_t hash, SeenTypes* seen) const {
512
+ size_t NodePayloadArrayAMDX::ComputeExtraStateHash (size_t hash,
513
+ SeenTypes* seen) const {
511
514
return element_type_->ComputeHashValue (hash, seen);
512
515
}
513
516
514
- void NodePayloadArray ::ReplaceElementType (const Type* type) {
517
+ void NodePayloadArrayAMDX ::ReplaceElementType (const Type* type) {
515
518
element_type_ = type;
516
519
}
517
520
0 commit comments