[Mlir-commits] [mlir] [mlir] Declare promised interfaces for all dialects (PR #78368)
Oleksandr Alex Zinenko
llvmlistbot at llvm.org
Fri Feb 23 01:59:54 PST 2024
ftynse wrote:
> I feel like in prior lives, this would have been the job of some common registry of names and ids, at least for some definition of built-in things vs having the declarations organized into the directory structure of the "provider". That could just be a convention that upstream takes to keep the dependency graph sane, and downstreams could play a little looser if they want.
I've been thinking about some sort of project-level initialization (`initMlirCore`, `initEnzyme`, etc.) that would list such promises, but have hard time seeing how it wouldn't end up `#include`ing every single dialect and interface. Which could be acceptable given that `lib/IR` is clear of this and we only need headers. Adding string identifiers for interfaces and having a string/string map hardcoded or generated from tablegen feels too stringly.
https://github.com/llvm/llvm-project/pull/78368
More information about the Mlir-commits
mailing list