This is an archive of the discontinued LLVM Phabricator instance.

[mlir][nvvm] Remove special case ptr arithmetic lowering in gpu to nvvm
ClosedPublic

Authored by ThomasRaoux on Nov 8 2021, 12:50 AM.

Details

Summary

Use existing helper instead of handling only a subset of indices lowering arithmetic. Also relax the restriction on the memref rank for the GPU mma ops as we can now support any rank.

Diff Detail

Event Timeline

ThomasRaoux created this revision.Nov 8 2021, 12:50 AM
ThomasRaoux requested review of this revision.Nov 8 2021, 12:50 AM
Herald added a project: Restricted Project. · View Herald Transcript
ThomasRaoux edited the summary of this revision. (Show Details)Nov 8 2021, 12:50 AM
herhut added inline comments.Nov 10 2021, 7:48 AM
mlir/lib/Conversion/GPUToNVVM/WmmaOpsToNvvm.cpp
206

Why is this cast no longer needed?

ThomasRaoux added inline comments.Nov 10 2021, 9:23 AM
mlir/lib/Conversion/GPUToNVVM/WmmaOpsToNvvm.cpp
206

I don't think this comment was correct, the intrinsic is overloaded and can take any pointer type. The pointer type itself doesn't matter since the intrinsic is converted one to one to ptx op wmma.load.a.sync.row.m*n*k*.* where pointers are not typed.

herhut accepted this revision.Nov 10 2021, 9:27 AM

Thanks for the explanation.

This revision is now accepted and ready to land.Nov 10 2021, 9:27 AM