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

Move passes out of the passes/pmgen folder #4881

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

KrystalDelusion
Copy link
Member

What are the reasons/motivation for this change?

In the Docs JF while reviewing #4860 it was brought up that architecture specific pmgen passes would be better served in the same folder as the rest of their architecture specific code.

@nakengelhardt suggested making this a separate PR for discussion at Dev JF in case people have any other passes they think should be moved at the same time.

Explain how this is achieved.

Techlib pmgens are now in relevant techlibs/*.
peepopt also moved and is now in passes/opt.
test_pmgen is still in passes/pmgen.

If applicable, please suggest to reviewers how they can test the change.

@KrystalDelusion KrystalDelusion added the discuss to be discussed at next dev jour fixe (see #devel-discuss at https://yosyshq.slack.com/) label Jan 31, 2025
- Techlib pmgens are now in relevant techlibs/*.
- `peepopt` pmgens are now in passes/opt.
- `test_pmgen` is still in passes/pmgen.
- Update `Makefile.inc` and `.gitignore` file(s) to match new `*_pm.h` location,
  as well as the `#include`s.
- Change default `%_pm.h` make target to `techlibs/%_pm.h` and move it to the
  top level Makefile.
- Update pmgen target to use `$(notdir $*)` (where `$*` is the part of the file
  name that matched the '%' in the target) instead of `$(subst _pm.h,,$(notdir
  $@))`.
@KrystalDelusion
Copy link
Member Author

KrystalDelusion commented Jan 31, 2025

Oops I figured out why the mkdir -p $(dir $@) was there (because out of tree builds)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss to be discussed at next dev jour fixe (see #devel-discuss at https://yosyshq.slack.com/)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant