Skip to content
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
31911d2
feat(taskflow): implement graph-based ACT placement and memory manage…
guosran Jan 31, 2026
4ead25c
chore: trigger PR sync and terminology update
guosran Jan 31, 2026
7dd5519
Merge branch 'ShangkunLi/wrap-loop' into cgra-placement
guosran Feb 3, 2026
4251f08
Optimize CGRA placement pass: handle memory aliasing with original me…
guosran Feb 3, 2026
a690d4f
Optimize CGRA placement pass: handle memory aliasing with original me…
guosran Feb 3, 2026
ca8fdf1
chore: update dot visualization labels with coordinates and comment o…
guosran Feb 3, 2026
82d26b0
clean: remove all visualization and debug log code from MapCTOnCGRAAr…
guosran Feb 3, 2026
16310bd
test: fix placement coordinates in irregular-loop.mlir
guosran Feb 3, 2026
c9a4688
Merge finalized cgra-placement into wrap-loop
guosran Feb 4, 2026
8b59105
refactor(cgra-placement): resolve review comments
guosran Feb 4, 2026
846ea2d
feat(cgra-placement): wrap mapping info in attribute and update tests
guosran Feb 4, 2026
1ae4b13
refactor(cgra-placement): update task mapping info for better readabi…
guosran Feb 5, 2026
a660302
Refactor CGRA placement: rename pass and classes, address reviewer co…
guosran Feb 5, 2026
47ea607
Refactor CGRA placement: rename pass to MapTaskOnCgra, update depende…
guosran Feb 5, 2026
db107d3
Style polish: add braces to if statements, update header comments, an…
guosran Feb 5, 2026
ae1556f
Merge remote-tracking branch 'origin/main' into wrap-loop
guosran Feb 6, 2026
09eed47
Cleanup: fix comment formatting and typos according to reviewer feedback
guosran Feb 6, 2026
d016323
Cleanup: fix comment formatting and typos according to reviewer feedback
guosran Feb 6, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions include/TaskflowDialect/TaskflowPasses.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ namespace taskflow {
#include "TaskflowDialect/TaskflowPasses.h.inc"
std::unique_ptr<mlir::Pass> createConstructHyperblockFromTaskPass();
std::unique_ptr<mlir::Pass> createClassifyCountersPass();
std::unique_ptr<mlir::Pass> createMapCTOnCGRAArrayPass();

//=========================================================//
// Optimization Passes
Expand Down
12 changes: 12 additions & 0 deletions include/TaskflowDialect/TaskflowPasses.td
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,16 @@ def ClassifyCounters : Pass<"classify-counters", "ModuleOp">{
}];
let constructor = "taskflow::createClassifyCountersPass()";
}

def MapCTOnCGRAArray : Pass<"map-ct-on-cgra-array", "func::FuncOp"> {
let summary = "Maps Canonical Tasks (CTs) onto a 2D CGRA grid array";
let description = [{
This pass maps Canonical Tasks (CTs) onto a 2D CGRA grid array.
Fusion candidates (same-header SSA dependencies) are placed on adjacent
CGRAs to enable direct data forwarding.

Uses a default 4x4 CGRA grid.
}];
let constructor = "taskflow::createMapCTOnCGRAArrayPass()";
}
#endif // TASKFLOW_PASSES_TD
1 change: 1 addition & 0 deletions lib/TaskflowDialect/Transforms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
add_mlir_library(MLIRTaskflowTransforms
ConstructHyperblockFromTaskPass.cpp
ClassifyCountersPass.cpp
MapCTOnCGRAArrayPass.cpp

DEPENDS
MLIRTaskflowTransformsIncGen
Expand Down
Loading