Skip to content

Commit

Permalink
Make memref.assume_alignment op illegal in AIRToAIE (Xilinx#854)
Browse files Browse the repository at this point in the history
  • Loading branch information
erwei-xilinx authored Jan 11, 2025
1 parent ad90c73 commit 646b67b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mlir/lib/Conversion/AIRToAIEPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3466,9 +3466,11 @@ class AIRToAIEPass : public air::impl::AIRToAIEBase<AIRToAIEPass> {
RewritePatternSet removepatterns(ctx);
removepatterns.add<OpRemovalPattern<memref::DeallocOp>,
OpRemovalPattern<air::WaitAllOp>,
OpRemovalPattern<memref::CopyOp>>(ctx);
OpRemovalPattern<memref::CopyOp>,
OpRemovalPattern<memref::AssumeAlignmentOp>>(ctx);
ConversionTarget target(*ctx);
target.addIllegalOp<memref::DeallocOp, air::WaitAllOp, memref::CopyOp>();
target.addIllegalOp<memref::DeallocOp, air::WaitAllOp, memref::CopyOp,
memref::AssumeAlignmentOp>();
if (failed(applyPartialConversion(device, target,
std::move(removepatterns))))
signalPassFailure();
Expand Down

0 comments on commit 646b67b

Please sign in to comment.