Skip to content

Commit 71c5fd4

Browse files
Fix build failures from f05cdc4
Signed-off-by: Whitney Tsang <[email protected]>
1 parent 8a9e7b9 commit 71c5fd4

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

include/triton/Dialect/Triton/Transforms/Utility.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ using namespace mlir;
77

88
namespace mlir::triton {
99

10-
Value getPredMask(RewriterBase &rewriter, Type typeLike, Value currentMask,
11-
Value pred);
12-
1310
triton::MakeTensorPtrOp getMakeTensorPtrOp(Value v);
1411

1512
} // namespace mlir::triton

lib/Dialect/Triton/Transforms/Utility.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,6 @@
66
using namespace mlir;
77
namespace tt = mlir::triton;
88

9-
// Combine the current mask with the given predicate.
10-
Value tt::getPredMask(RewriterBase &rewriter, Type typeLike, Value currentMask,
11-
Value pred) {
12-
Type maskType = tt::getI1SameShape(typeLike);
13-
Location loc = pred.getLoc();
14-
Value mask = pred;
15-
if (isa<RankedTensorType>(maskType)) {
16-
mask = rewriter.create<tt::SplatOp>(loc, maskType, pred);
17-
}
18-
if (currentMask) {
19-
mask = rewriter.create<arith::AndIOp>(loc, mask, currentMask);
20-
}
21-
return mask;
22-
}
23-
249
static tt::MakeTensorPtrOp getMakeTensorPtrOpImpl(Operation *op, Value v) {
2510

2611
if (auto makeTensorPtrOp = dyn_cast<tt::MakeTensorPtrOp>(op)) {

0 commit comments

Comments
 (0)