This is needed for anders.
Created attachment 325270 [details]
Created attachment 325305 [details]
Comment on attachment 325305 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=325305&action=review
> + [Node.visit(node.value, this), Node.visit(node.argumentList, this)]);
Created attachment 325322 [details]
Created attachment 325331 [details]
This is going to be tricky.
On one hand, anders are not useful if they can't have multiple pointer returns.
On the other hand, multiple pointer returns naively require phi operations over pointers.
So we'll have to inline the ander and see if we can remove the pointer. But, for user-created types, any arbitrary stuff can be in the ander. So, we have to specify exactly what types of transformations the compiler will perform to try to remove these pointers.
Seems that a policy of "anders are mostly useless, please use getters and setters instead" along with compiler optimizations is sufficient for now.
Migrated to https://github.com/gpuweb/WHLSL/issues/121