Adding dummy target to LinalgNaedStructuredOps yamlgen #669
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Should hopefully address https://github.com/ROCmSoftwarePlatform/llvm-project-private/issues/524 but no guarantee.
This is based on the assumption that makefile used by dev-ops has a bug and used file to synchronize instead of target. The idea of the change is to insert a dummy generation step to force make wait on the previous custom command.
After insertion of this dummy target, the generation sequence of
MLIRLinalgOpsIncGenis:In summary, the dummy target enforce a synchronization point to happen after the
.cpp.incand.yamlgen.tdfile generation; As well as a synchronization point to happen before the actual tablegen steps that follows it. In my observation, the generation of dummy file will block subsequent steps until it is done.