[Mlir-commits] [mlir] [mlir][xegpu] Add initial support for layout conflict handling. (PR #173090)
Charitha Saumya
llvmlistbot at llvm.org
Wed Jan 28 08:26:37 PST 2026
================
@@ -1439,6 +1441,121 @@ void RunLayoutInfoPropagation::printAnalysisResult(llvm::raw_ostream &os) {
printFunctionResult(funcOp);
}
+namespace {
+
+//===----------------------------------------------------------------------===//
+// ResolveLayoutConflicts
+//===----------------------------------------------------------------------===//
+struct ResolveLayoutConflicts {
+ ResolveLayoutConflicts(Operation *parentOp)
+ : parentOp(parentOp), builder(parentOp->getContext()) {}
+ LogicalResult run();
+
+private:
+ Operation *parentOp;
+ OpBuilder builder;
+ LogicalResult resolveTensorDescConsumer(OpOperand &operand);
+ LogicalResult resolveVectorConsumer(OpOperand &operand);
+};
+
+} // namespace
+
+LogicalResult ResolveLayoutConflicts::run() {
+ // Scan all operations in the parent operation and resolve layout conflicts at
----------------
charithaintc wrote:
fixed it.
https://github.com/llvm/llvm-project/pull/173090
More information about the Mlir-commits
mailing list