-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SnitchDMA] Split transfer legalization out of
DMAToLLVM
It is up to the target, in this case snitch, to dictate which DMA transfers are directly legal or not. This logic previously lived in `DMAToLLVM` and due to being part of the "one-shot-to-llvm" pass, difficult to test and implement. This PR therefore splits the logic into a dedicated legalization pass with the lowering to LLVM greatly simplified.
- Loading branch information
Showing
11 changed files
with
500 additions
and
349 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
codegen/compiler/src/Quidditch/Dialect/SnitchDMA/Transforms/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
iree_tablegen_library( | ||
NAME | ||
PassesIncGen | ||
TD_FILE | ||
"Passes.td" | ||
OUTS | ||
-name=Transforms --gen-pass-decls Passes.h.inc | ||
) | ||
|
||
iree_cc_library( | ||
NAME | ||
Passes | ||
HDRS | ||
"Passes.h" | ||
"Passes.h.inc" | ||
SRCS | ||
"LegalizeDMAOperations.cpp" | ||
DEPS | ||
::PassesIncGen | ||
Quidditch::Dialect::DMA::IR::DMADialect | ||
Quidditch::Dialect::Snitch::IR::QuidditchSnitchDialect | ||
MLIRIR | ||
MLIRAffineDialect | ||
MLIRArithDialect | ||
MLIRSCFDialect | ||
) |
Oops, something went wrong.