Skip to content

Commit 17ecb05

Browse files
[Intel] Remove incorrect permute implementation (#5001)
The existing implementation is specifically designed for AMD. Signed-off-by: Whitney Tsang <[email protected]>
1 parent c49212a commit 17ecb05

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

third_party/intel/lib/TritonIntelGPUToLLVM/Utility.cpp

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -103,19 +103,7 @@ Value shuffleIdx(Location loc, RewriterBase &rewriter, Value val, Value i) {
103103

104104
Value permute(Location loc, RewriterBase &rewriter, Value x, Value y,
105105
Value selector) {
106-
auto b = TritonLLVMOpBuilder(loc, rewriter);
107-
Value prmt_mask = selector;
108-
// convert from nybble mask to byte mask:
109-
prmt_mask =
110-
b.or_(b.and_(prmt_mask, b.i32_val(0x000000ff)),
111-
b.shl(b.and_(prmt_mask, b.i32_val(0x0000ff00)), b.i32_val(8)));
112-
prmt_mask =
113-
b.or_(b.and_(prmt_mask, b.i32_val(0x000f000f)),
114-
b.shl(b.and_(prmt_mask, b.i32_val(0x00f000f0)), b.i32_val(4)));
115-
Value args[] = {x, y, prmt_mask};
116-
auto op = createLLVMIntrinsicCallOp(rewriter, loc, "llvm.amdgcn.perm", i32_ty,
117-
args);
118-
return op.getResult(0);
106+
llvm_unreachable("not implemented");
119107
}
120108

121109
LLVM::RoundingMode

0 commit comments

Comments
 (0)