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

[CodeGen][NewPM] Consolidate PASS_NAME and CONSTRUCTOR in MachinePassRegistry.def #80779

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

aeubanks
Copy link
Contributor

@aeubanks aeubanks commented Feb 6, 2024

This matches the optimization pipeline's PassRegistry.def.

I ran into a bug where CONSTRUCTOR wasn't always being used (in PassBuilder::registerMachineFunctionAnalyses()).

Make DUMMY_* just accept a pass name, there's no point in having proper constructors if the generated dummy class has a templated constructor accepting arbitrary arguments.

Remove unused getPassNameFromLegacyName() as it was using this but for no purpose.

Remove DUMMY_MACHINE_FUNCTION_ANALYSIS, we can just add those as we port them.

This for some reason exposed missing mock calls in existing unittests.

…Registry.def

This matches the optimization pipeline's PassRegistry.def.

I ran into a bug where CONSTRUCTOR wasn't always being used (in PassBuilder::registerMachineFunctionAnalyses()).

Make DUMMY_* just accept a pass name, there's no point in having proper constructors if the generated dummy class has a templated constructor accepting arbitrary arguments.

Remove unused getPassNameFromLegacyName() as it was using this but for no purpose.

Remove DUMMY_MACHINE_FUNCTION_ANALYSIS, we can just add those as we port them.

This for some reason exposed missing mock calls in existing unittests.
@aeubanks aeubanks changed the title [CodeGen][NewPM] Consolidate PASS_NAME and CONSTRUCTOR in MachinePass… [CodeGen][NewPM] Consolidate PASS_NAME and CONSTRUCTOR in MachinePassRegistry.def Feb 6, 2024
@aeubanks aeubanks merged commit 942cb24 into llvm:main Feb 6, 2024
4 of 5 checks passed
@aeubanks aeubanks deleted the machinepassregistry branch February 6, 2024 04:17
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