Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AIRSplitL2Memref: Enable affine_map field for MM2S and S2MM splitting modes #884

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
5 changes: 4 additions & 1 deletion mlir/include/air/Util/Dependency.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ scf::ForOp hoistTargetOpsToNewSCFFor(PatternRewriter &rewriter,
scf::ForOp for_op,
SmallVector<Operation *> target_ops);
LogicalResult unrollScfParallel(OpBuilder builder, scf::ParallelOp par,
Operation *originalChanOp, IRMapping remap);
IRMapping remap);
LogicalResult unrollScfParallelOnDims(RewriterBase &rewriter,
scf::ParallelOp par, IRMapping remap,
SmallVector<int> dims);
void populateAIRunrollAIRChannelPutGetInScfParallelPatterns(
RewritePatternSet &patterns);
air::WaitAllOp replaceAsyncOpWithWaitAll(OpBuilder builder, IRMapping &remap,
Expand Down
7 changes: 7 additions & 0 deletions mlir/include/air/Util/Util.h
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,13 @@ void populateBufferMemrefToFuncArgsPattern(RewritePatternSet &patterns);
Region *findCommonRegionContainingAllAncestors(SmallVector<Operation *> ops,
Operation *until = nullptr);

// A lite version of OperationEquivalence::isRegionEquivalentTo which only
// checks for const value equivalences.
bool isRegionEquivalentTo(Region *lhs, Region *rhs);
// A lite version of OperationEquivalence::isEquivalentTo which only checks for
// const value equivalences.
bool isEquivalentTo(Operation *lhs, Operation *rhs);

} // namespace air
} // namespace xilinx

Expand Down
Loading
Loading