Skip to content

Commit

Permalink
fix merge error
Browse files Browse the repository at this point in the history
  • Loading branch information
fifield committed Oct 18, 2024
1 parent 9c0df18 commit e8e4f41
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions mlir/lib/Conversion/AIRToAIEPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,18 +354,6 @@ void outlineAIECores(OpBuilder &builder, AIE::DeviceOp aie_device,
AIE::LockAction::AcquireGreaterEqual, 1);
}
}
if (options.emit_herd_lock) {
if (aie_device.getTargetModel().getTargetArch() == AIE::AIEArch::AIE1) {
core_builder.create<AIE::UseLockOp>(core_builder.getUnknownLoc(),
herd_lock,
AIE::LockAction::Acquire, 0);
} else if (aie_device.getTargetModel().getTargetArch() ==
AIE::AIEArch::AIE2) {
core_builder.create<AIE::UseLockOp>(
core_builder.getUnknownLoc(), herd_lock,
AIE::LockAction::AcquireGreaterEqual, 1);
}
}

for (unsigned ki = 0, ke = h.getNumKernelOperands(); ki < ke; ki++) {
BlockArgument karg = h.getKernelArgument(ki);
Expand Down

0 comments on commit e8e4f41

Please sign in to comment.