-
-
Notifications
You must be signed in to change notification settings - Fork 73
♻️ Split the MQT dialect implementation #2445
Copy link
Copy link
Open
Labels
MLIRAnything related to MLIRAnything related to MLIRc++Anything related to C++ codeAnything related to C++ codecode qualityCode quality improvementsCode quality improvementsrefactorAnything related to code refactoringAnything related to code refactoring
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
MLIRAnything related to MLIRAnything related to MLIRc++Anything related to C++ codeAnything related to C++ codecode qualityCode quality improvementsCode quality improvementsrefactorAnything related to code refactoringAnything related to code refactoring
🤖 AI text below 🤖
Problem Statement
mlir/lib/Dialect/MQT/IR/MQTDialect.cppcombines dialect registration, typed attribute implementations, and attached-metadata verification. Separate these responsibilities using the existing QC/QCO source organization as a guide.This is a follow-up to the review comment in #2219, not a prerequisite for that PR.
Proposed Solution
Start with two files:
MQTDialect.cpp.TargetEnvAttr::queryintoMQTAttributes.cpp, keeping their private helpers together.Update the existing
MLIRMQTDialectCMake target. Preserve public APIs, attribute assembly, verification behavior, and diagnostics; no new abstraction or public helper API is needed. Keep naming and payload-version policy changes out of scope.Acceptance: existing MQT IR and compiler tests pass, including attribute round trips and invalid-input cases; repository lint and C++ lint pass.