This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Use `kernel` as a short hand for `gpu.kernel` attribute.
ClosedPublic

Authored by frgossen on Apr 21 2020, 12:12 AM.

Details

Summary

Use the shortcut kernel for the gpu.kernel attribute of gpu.func.
The parser supports this and test cases are easier to read.

Diff Detail

Event Timeline

frgossen created this revision.Apr 21 2020, 12:12 AM
herhut accepted this revision.Apr 21 2020, 1:02 AM

Thanks!

Please fix the typo in the commit description (shortcu -> shortcut)

This revision is now accepted and ready to land.Apr 21 2020, 1:02 AM
ftynse accepted this revision.Apr 21 2020, 1:58 AM

Thanks!

I think we added parser support after we had the attribute (IIRC, we had the attribute on std.func/llvm.func before we introduced gpu.func)

frgossen edited the summary of this revision. (Show Details)Apr 21 2020, 2:35 AM
antiagainst accepted this revision.Apr 21 2020, 4:58 AM
This revision was automatically updated to reflect the committed changes.