Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 3 additions & 0 deletions .clangd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CompileFlags:
Remove:
- -fno-lifetime-dse
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ lit.cfg
*.dot

# vscode config
.clangd
.cache
.vscode

Expand Down
15 changes: 8 additions & 7 deletions lib/NeuraDialect/Mapping/mapping_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,9 @@ bool mlir::neura::isMaterializedReserveUser(Operation *user) {
if (isa<neura::PhiStartOp>(user)) {
return true;
}
if (isa<neura::PhiOp>(user)) {
return true;
}
return false;
}

Expand Down Expand Up @@ -1127,11 +1130,11 @@ bool mlir::neura::placeAndRoute(Operation *op, const MappingLoc &target_loc,
target_loc.resource, target_loc.time_step, latency, op);
if (bind_success) {
llvm::errs() << "[DEBUG] Bound multi-cycle op (latency=" << latency
<< ") " << *op << " onto loc: "
<< target_loc.resource->getType() << "#"
<< ") " << *op
<< " onto loc: " << target_loc.resource->getType() << "#"
<< target_loc.resource->getId()
<< " @t=" << target_loc.time_step << " to t="
<< (target_loc.time_step + latency - 1) << "\n";
<< " @t=" << target_loc.time_step
<< " to t=" << (target_loc.time_step + latency - 1) << "\n";
}
} else {
// For single-cycle ops, use default SINGLE_OCCUPY binding
Expand Down Expand Up @@ -1258,6 +1261,4 @@ int mlir::neura::getOpLatency(Operation *op) {
return 1;
}

bool mlir::neura::isMultiCycleOp(Operation *op) {
return getOpLatency(op) > 1;
}
bool mlir::neura::isMultiCycleOp(Operation *op) { return getOpLatency(op) > 1; }
Loading
Loading