[WHLSL] TypeNamer can be simplified by replacing BaseTypeNameNode with uniqued AST::UnnamedTypes
Created attachment 376080 [details] Patch
Created attachment 376175 [details] Patch
Saam, any thoughts on this?
Comment on attachment 376175 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=376175&action=review > Source/WebCore/ChangeLog:11 > + There is no longer a reason to keep a parallel tree of the UnnamedType-like objects > + BaseTypeNameNodes. Instead, we can store a single HashMap mapping from UnnamedTypeKeys > + to MangledTypeName, and use the the UnnamedType stored in the UnnamedTypeKey while > + emitting the metal code. What's the motivation for this?
(In reply to Myles C. Maxfield from comment #4) > Comment on attachment 376175 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=376175&action=review > > > Source/WebCore/ChangeLog:11 > > + There is no longer a reason to keep a parallel tree of the UnnamedType-like objects > > + BaseTypeNameNodes. Instead, we can store a single HashMap mapping from UnnamedTypeKeys > > + to MangledTypeName, and use the the UnnamedType stored in the UnnamedTypeKey while > > + emitting the metal code. > > What's the motivation for this? Simplifying the code. Removing unnecessary indirection.
Created attachment 376613 [details] Patch
Created attachment 377219 [details] Patch
Comment on attachment 377219 [details] Patch Nice. r=me
Comment on attachment 377219 [details] Patch Clearing flags on attachment: 377219 Committed r249109: <https://trac.webkit.org/changeset/249109>
All reviewed patches have been landed. Closing bug.
<rdar://problem/54716312>