This is an archive of the discontinued LLVM Phabricator instance.

[mlir][rocdl] add rocdl.barier op.
ClosedPublic

Authored by whchung on Apr 29 2020, 1:51 PM.

Details

Summary
  • Add rocdl.barrier op.
  • Lower gpu.barier to rocdl.barrier in -convert-gpu-to-rocdl.

Diff Detail

Event Timeline

whchung created this revision.Apr 29 2020, 1:51 PM
Herald added a project: Restricted Project. · View Herald Transcript
rriddle accepted this revision.Apr 29 2020, 2:18 PM
rriddle added inline comments.
mlir/lib/Conversion/GPUToROCDL/LowerGpuOpsToROCDLOps.cpp
47

Just use m.getContext() here.

This revision is now accepted and ready to land.Apr 29 2020, 2:18 PM
whchung updated this revision to Diff 261039.Apr 29 2020, 2:29 PM

Address code review comments.

whchung marked an inline comment as done.Apr 29 2020, 2:29 PM

@rriddle Thanks for the review. Wondering may I ask for your help to commit this patch? I am new to contributing to LLVM / MLIR so I don't yet have write access to the repository.

This revision was automatically updated to reflect the committed changes.