Skip to content

Commit

Permalink
Getting lit tests working on reference designs and aie1 unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eddierichter-amd committed Mar 22, 2024
1 parent bcd6ed4 commit fd13b41
Show file tree
Hide file tree
Showing 59 changed files with 1,538 additions and 1,155 deletions.
7 changes: 6 additions & 1 deletion lib/Targets/AIETargetHSA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,18 @@ mlir::LogicalResult AIETranslateToHSA(ModuleOp module, raw_ostream &output) {
}

// Getting the sequence function op which contains the instructions
mlir::func::FuncOp funcOp;
mlir::func::FuncOp funcOp = NULL;
for (auto op : targetOp.getOps<mlir::func::FuncOp>()) {
if (op.getName().str().compare("sequence") == 0) {
funcOp = op;
}
}

// If no funcOp then just return
if (funcOp == NULL) {
return success();
}

collectTiles(targetOp, tiles);
collectBuffers(targetOp, buffers);

Expand Down
Loading

0 comments on commit fd13b41

Please sign in to comment.