Skip to content

[Kaleidoscope] Switch to the new PassManager, revisited. #72324

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

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

Logikable
Copy link
Contributor

@Logikable Logikable commented Nov 14, 2023

Rollforward of #69032, which was reverted in 63d19cf.

New: implemented changes in #69032 (comment).
Given the PassBuilder is how we expect users to register passes, the tutorial should reflect that.

@aeubanks aeubanks merged commit 3d2527e into llvm:main Nov 16, 2023
sr-tream pushed a commit to sr-tream/llvm-project that referenced this pull request Nov 20, 2023
Rollforward of llvm#69032, which was reverted in
[63d19cf](llvm@63d19cf).

New: implemented changes in
llvm#69032 (comment).
Given the PassBuilder is how we expect users to register passes, the
tutorial should reflect that.
zahiraam pushed a commit to zahiraam/llvm-project that referenced this pull request Nov 20, 2023
Rollforward of llvm#69032, which was reverted in
[63d19cf](llvm@63d19cf).

New: implemented changes in
llvm#69032 (comment).
Given the PassBuilder is how we expect users to register passes, the
tutorial should reflect that.
nikic pushed a commit that referenced this pull request Dec 12, 2024
Kaleidoscope has switched to new pass manager before (#72324), but both
code and tutorial document have some missing parts.

This pull request fixes the following problems:
1. Adds `PromotePass` to the function pass manager. This pass was
removed during the switch from legacy pass manager to the new pass
manager.
2. Syncs the tutorial with the code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants