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

Reland "[Pass][CodeGen] Add some necessary passes for codegen" #71783

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

paperchalice
Copy link
Contributor

@paperchalice paperchalice commented Nov 9, 2023

Unfortunately, there are two KCFI passes in source tree, CodeGen/KCFI.cpp and Transforms/Instrumentation/KCFI.cpp, use MachineKCFIPass for machine function pass.
MIRProfileLoaderPass is resolved to the legacy one when LLVM_ENABLE_MODULES=ON, use MIRProfileLoaderNewPass as a workaround.

@paperchalice
Copy link
Contributor Author

@bulbazord not sure if this version fixes the build failure issue, at least, I can build libLLVMCodeGen.dylib on my local machine with LLVM_ENABLE_MODULES=ON.

@paperchalice
Copy link
Contributor Author

Rebased, and notice that there are two different prolog/epilog passes...

@paperchalice paperchalice merged commit fde91d1 into llvm:main Dec 15, 2023
4 checks passed
@paperchalice paperchalice deleted the NPM/CodeGen/pass branch December 15, 2023 10:00
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.

None yet

2 participants