Skip to content

Commit 2694e3f

Browse files
committed
Move the 2D block IO lowering code to LoadOpToBlockIOConversion pattern.
Signed-off-by: Lu,Chengjun <[email protected]>
1 parent bd694d9 commit 2694e3f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

third_party/intel/lib/TritonIntelGPUToLLVM/LoadStoreOpToLLVM.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1565,6 +1565,11 @@ struct LoadOpToBlockIOConversion
15651565
LogicalResult
15661566
matchAndRewrite(triton::LoadOp op, OpAdaptor adaptor,
15671567
ConversionPatternRewriter &rewriter) const final {
1568+
ModuleOp mod = op->getParentOfType<ModuleOp>();
1569+
if (!mod->hasAttr(triton::gpu::intel::TritonIntelGPUDialect::
1570+
getSupportSG2DBlockAttrName()))
1571+
return failure();
1572+
15681573
if (!isLoadCandidate(op))
15691574
return failure();
15701575

0 commit comments

Comments
 (0)