-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Conversation
|
Sure, let's see the consensus. The only agreement I heart so far was GetXYZ/SetXYZ and IsXYZ/SetXYZ function combinations. |
That was for actual getter/setter functions. This |
I see how about converting gtOp. to gtOp()./AsOp(). with a stub function as in this review? I want to make the diff as close as possible for easy review. |
I'm not sure I understand what the stub is for. |
4aaf4f4
to
f766bc2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for that change, LGTM, ignore the notes, I will fix them in another PR.
@dotnet/jit-contrib please pay attention that this PR deletes tree.gtOp
property, use AsOp()
instead from now.
It is very appealing to replace all AsOp()->gtOp1
with gtGetOp1()
, but as I remember @mikedn wants to get rid of gtGetOp1()
, am I correct?
What I'd really like is to move I'm not sure if we'll ever get there though (it would require a very large PR) but I would recommend casting to the appropriate class before calling these 2 functions. Since you're going to call them you should already know what class you're dealing with and it makes the code more readable (though perhaps slightly longer, thanks to the unfortunate extensive use of This is even more important when the actual node class has getter/setters with alternative names, like Given the above, I don't think that any kind of mechanical replacement around |
@sandreenko : I'm assuming that you are taking care of the rest per your notes above. Let me know otherwise. |
Yes, thanks for the last commit. I was planning to do it myself as well, was just waiting for clean testing to merge that before this PR gets merge conflicts. |
Link https://github.com/dotnet/coreclr/issues/27155, merging on red, the failures are not related to the change. |
Just a note here that converting gtXYZ. to AsXYZ() is going to cost 36 more reviews. |
@am11 @jkotas @janvorli @sandreenko