Skip to content

Changes on how Passes.td is used#3394

Open
chentong319 wants to merge 8 commits intoonnx:mainfrom
chentong319:cmake-related
Open

Changes on how Passes.td is used#3394
chentong319 wants to merge 8 commits intoonnx:mainfrom
chentong319:cmake-related

Conversation

@chentong319
Copy link
Collaborator

Existing problems:

  1. Symbols, related to pass creation, are defined but not used.
  2. Some random make error on Pass/Passes.hpp because the required Passes.h.inc has not been created yet.

For the first problem, it is caused by the incorrect way to use the Passes.td. The table gen generated createInstrumentPass, but we implemented that function again.
For the second problem, we include Pass/Passes.h.inc directly in Passes.hpp. The Passes.h.inc depends on OMPassTransformGen. We did not specify this dependency for all files that include Passes.hpp. I found that we unnecessarily include Passes.hpp in may files.
This PR focused only on BufferOMPLoopHoisting. If the new approach is approved, we will have another PR for other passes.

@chentong319 chentong319 changed the title Changes on how pass.td is used (WIP)Changes on how pass.td is used Feb 13, 2026
Signed-off-by: Tong Chen <chentong@us.ibm.com>
@chentong319 chentong319 changed the title (WIP)Changes on how pass.td is used Changes on how Passes.td is used Feb 13, 2026
Signed-off-by: Tong Chen <chentong@us.ibm.com>
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.

1 participant