Skip to content

Commit bbba9a0

Browse files
authored
Add LLVM_DEBUG guards (#1056)
1 parent a01b365 commit bbba9a0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/Dialect/XeTile/IR/XeTileOps.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232

3333
#include <mlir/Dialect/MemRef/IR/MemRef.h>
3434

35+
#define DEBUG_TYPE "xetile-ops"
36+
3537
namespace imex {
3638
namespace xetile {
3739

@@ -175,7 +177,7 @@ mlir::LogicalResult InitTileOp::verify() {
175177
// Check if all shape and stride values are constant.
176178
if (!llvm::all_of(dynamicShape, isConstantIndex) ||
177179
!llvm::all_of(dynamicStrides, isConstantIndex)) {
178-
llvm::dbgs() << "Assuming user has verified the layout\n";
180+
LLVM_DEBUG(llvm::dbgs() << "Assuming user has verified the layout\n");
179181
return mlir::success();
180182
}
181183

@@ -194,7 +196,7 @@ mlir::LogicalResult InitTileOp::verify() {
194196
"memref operand is expected to have a column-major layout");
195197
}
196198
} else if (isSourceMemRef() && !sourceMemRefHasStaticShape())
197-
llvm::dbgs() << "Assuming user has verified the layout\n";
199+
LLVM_DEBUG(llvm::dbgs() << "Assuming user has verified the layout\n");
198200

199201
return mlir::success();
200202
}

0 commit comments

Comments
 (0)