You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove global dialect registration from MLIR usage #2958
The global registration for MLIR Dialects has been deprecated and will be removed upstream "soon", IREE needs to adjust to this change and stop using the existing dialect registration.
and register on the provided registry any dialect that this pass can produce:
registry.insert<DialectClass>();
Passes defined in TableGen can provide this list in the dependentDialects list field.
For dialects, on construction you can register dependent dialects using the
provided MLIRContext: context.getOrLoadDialect<DialectName>()
This is useful if a dialect may canonicalize or have interfaces involving
another dialect.
For loading IR, dialect that can be in the input file must be explicitly
registered with the context. MlirOptMain() is taking an explicit registry for
this purpose.
fa9dcf2 is the code I wrote to minimally not break IREE, but it was written before opening this ticket: this ticket is really about the incoming removal of the global registry upstream.
fa9dcf2 is the code I wrote to minimally not break IREE, but it was written before opening this ticket: this ticket is really about the incoming removal of the global registry upstream.
Thanks for your comment. I just wanted to reference this commit (which made it into main after the ticket was opened), to keep track of changes related to this issue. Indeed a lot more needs to be done :)
Activity
joker-eph commentedon Aug 21, 2020
The future removal of the global registry is here: https://reviews.llvm.org/D86356 (in case it can help testing that nothing it missing)
ScottTodd commentedon Aug 21, 2020
@marbre expressed interest in working on this for IREE
marbre commentedon Aug 24, 2020
FYI: This has been partially addressed by fa9dcf2, which allowed an LLVM submodule update.
joker-eph commentedon Aug 24, 2020
fa9dcf2is the code I wrote to minimally not break IREE, but it was written before opening this ticket: this ticket is really about the incoming removal of the global registry upstream.Refactor for explicit dialect registration (#2978)
marbre commentedon Aug 25, 2020
Thanks for your comment. I just wanted to reference this commit (which made it into main after the ticket was opened), to keep track of changes related to this issue. Indeed a lot more needs to be done :)
Explicitly insert dialects in conversion passes (#3002)
Explicitly insert dialects (#3024)
Opt-in to the global dialect registry
Opt-in to the global dialect registry
Opt-in to the global dialect registry
Remove IREE usage of the Global Dialect Registry (#3036)
Cleanup: remove obsolete usage of global dialect registry (NFC) (#3092)
benvanik commentedon Nov 22, 2020
#3092 says it removed obsolete global dialect registration.