This removes the need to construct a pass during registration (to get the TypeID), and it also simplifies various pieces of code that interact with the pass registry.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D101880
[mlir] Resolve TODO and use the pass argument instead of the TypeID for registration ClosedPublic Authored by rriddle on May 4 2021, 6:37 PM.
Details Summary This removes the need to construct a pass during registration (to get the TypeID), and it also simplifies various pieces of code that interact with the pass registry.
Diff Detail
Event Timeline
mehdi_amini added inline comments.
This revision is now accepted and ready to land.May 21 2021, 12:28 PM Closed by commit rGfa51c5af5d5d: [mlir] Resolve TODO and use the pass argument instead of the TypeID for… (authored by rriddle). · Explain WhyJun 2 2021, 12:17 PM This revision was automatically updated to reflect the committed changes. rriddle marked an inline comment as done.
Revision Contents
Diff 349347 mlir/include/mlir/Pass/Pass.h
mlir/include/mlir/Pass/PassRegistry.h
mlir/lib/Pass/PassRegistry.cpp
mlir/test/lib/Pass/TestPassManager.cpp
|
If there is already an entry, can we check that the TypeID is matching?