Skip to content
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

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

gsathya
Copy link
Contributor

@gsathya gsathya commented Jul 31, 2024

Stack from ghstack (oldest at bottom):

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.

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]
Copy link

vercel bot commented Jul 31, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-compiler-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 31, 2024 1:40pm

loc,
};
}

Copy link
Contributor

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

Copy link
Contributor Author

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!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done here #30585

@gsathya gsathya merged commit 2daa703 into gh/gsathya/11/base Aug 2, 2024
19 checks passed
gsathya added a commit that referenced this pull request Aug 2, 2024
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
@gsathya gsathya deleted the gh/gsathya/11/head branch August 2, 2024 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants