Skip to content

Commit 50e33ff

Browse files
committed
add dbg log
1 parent c6695d9 commit 50e33ff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mlir/lib/Dialect/XeGPU/Transforms/XeGPUBlocking.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ namespace xegpu {
2828

2929
#define DEBUG_TYPE "xegpu-blocking"
3030
#define DBGS() (llvm::dbgs() << "[" DEBUG_TYPE "]: ")
31+
#define LDBG(X) LLVM_DEBUG(DBGS() << X << "\n")
3132

3233
using namespace mlir;
3334

@@ -121,6 +122,7 @@ XeGPUBlockingPass::getTileShape(OpOperand &operand) const {
121122
if (auto type = dyn_cast<ShapedType>(operand.get().getType()))
122123
return llvm::to_vector(type.getShape());
123124
}
125+
LDBG("failed to getTileShape for operand: " << operand.get());
124126
return std::nullopt;
125127
}
126128

@@ -134,6 +136,7 @@ XeGPUBlockingPass::getTileShape(OpResult result) const {
134136
if (auto type = dyn_cast<ShapedType>(result.getType()))
135137
return llvm::to_vector(type.getShape());
136138
}
139+
LDBG("failed to getTileShape for result: " << result);
137140
return std::nullopt;
138141
}
139142

0 commit comments

Comments
 (0)