-
Notifications
You must be signed in to change notification settings - Fork 47k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[compiler] Refactor makeTemporary outside HIRBuilder #30545
Conversation
This is a useful utility function similar to the existing `makeInstructionId` and `makeIdentifierId` functions. This PR moves it outside the HIRBuilder so we can use this in passes that don't have access to the builder instance. [ghstack-poisoned]
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
loc, | ||
}; | ||
} | ||
|
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.
just a heads up that we also have createTemporaryPlace()
which we could maybe unify
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.
will do this in a follow up!
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.
Done here #30585
This is a useful utility function similar to the existing `makeInstructionId` and `makeIdentifierId` functions. This PR moves it outside the HIRBuilder so we can use this in passes that don't have access to the builder instance. ghstack-source-id: 1ac0839e6cb417aedcdf8cdd159af7069af7172a Pull Request resolved: #30545
Stack from ghstack (oldest at bottom):
This is a useful utility function similar to the existing
makeInstructionId
andmakeIdentifierId
functions.This PR moves it outside the HIRBuilder so we can use this in passes
that don't have access to the builder instance.