This is an archive of the discontinued LLVM Phabricator instance.

[mlir][gpu] Extend shuffle op modes and add nvvm lowering
ClosedPublic

Authored by ThomasRaoux on Nov 18 2021, 12:57 PM.

Details

Summary

Add up, down and idx modes to gpu shuffle ops, also change the mode from
string to enum

Diff Detail

Event Timeline

ThomasRaoux created this revision.Nov 18 2021, 12:57 PM
ThomasRaoux requested review of this revision.Nov 18 2021, 12:57 PM

Add missing test update

mravishankar requested changes to this revision.Nov 19 2021, 10:48 AM

Just one minor comment. Looks good otherwise.

mlir/include/mlir/Dialect/LLVMIR/NVVMOps.td
143

Why not just add $kind to the assembly format. It seems like it is a required attribute?

This revision now requires changes to proceed.Nov 19 2021, 10:48 AM

Change printing format

mlir/include/mlir/Dialect/LLVMIR/NVVMOps.td
143

Good point, it looks much better.

mravishankar accepted this revision.Nov 19 2021, 11:09 AM
This revision is now accepted and ready to land.Nov 19 2021, 11:09 AM
This revision was landed with ongoing or failed builds.Nov 19 2021, 11:15 AM
This revision was automatically updated to reflect the committed changes.