Skip to content

Commit

Permalink
Simple bank-aware malloc scheme (#1143)
Browse files Browse the repository at this point in the history
Co-authored-by: AndraBisca <andrab@amd.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Apr 25, 2024
1 parent a26185e commit 37dd2a6
Show file tree
Hide file tree
Showing 45 changed files with 551 additions and 106 deletions.
3 changes: 2 additions & 1 deletion include/aie/Dialect/AIE/IR/AIEOps.td
Original file line number Diff line number Diff line change
Expand Up @@ -1258,7 +1258,8 @@ def AIE_BufferOp: AIE_Op<"buffer", [
ins Index:$tile,
OptionalAttr<StrAttr>:$sym_name,
OptionalAttr<AIEI32Attr>:$address,
OptionalAttr<ElementsAttr>:$initial_value
OptionalAttr<ElementsAttr>:$initial_value,
OptionalAttr<AIEI32Attr>:$mem_bank
);

let results = (outs AnyMemRef:$buffer);
Expand Down
5 changes: 5 additions & 0 deletions include/aie/Dialect/AIE/Transforms/AIEPasses.td
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ def AIEAssignBufferAddresses : Pass<"aie-assign-buffer-addresses", "DeviceOp"> {
}];

let constructor = "xilinx::AIE::createAIEAssignBufferAddressesPass()";

let options = [
Option<"clBasicAlloc", "basic-alloc", "bool", /*default=*/"false",
"Flag to enable the basic sequential allocation scheme (not bank-aware).">
];
}

def AIEAssignLockIDs : Pass<"aie-assign-lock-ids", "DeviceOp"> {
Expand Down
Loading

0 comments on commit 37dd2a6

Please sign in to comment.