This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Use target-specific GPU kernel attributes in lowering pipelines
ClosedPublic

Authored by ftynse on Feb 12 2021, 4:05 AM.

Details

Summary

Until now, the GPU translation to NVVM or ROCDL intrinsics relied on the
presence of the generic gpu.kernel attribute to attach additional LLVM IR
metadata to the relevant functions. This would be problematic if each dialect
were to handle the conversion of its own options, which is the intended
direction for the translation infrastructure. Introduce nvvm.kernel and
rocdl.kernel in addition to gpu.kernel and base translation on these new
attributes instead.

Diff Detail

Event Timeline

ftynse created this revision.Feb 12 2021, 4:05 AM
ftynse requested review of this revision.Feb 12 2021, 4:05 AM
herhut accepted this revision.Feb 12 2021, 4:20 AM
This revision is now accepted and ready to land.Feb 12 2021, 4:20 AM
ftynse updated this revision to Diff 323292.Feb 12 2021, 5:08 AM

More cmake

This revision was landed with ongoing or failed builds.Feb 12 2021, 5:09 AM
This revision was automatically updated to reflect the committed changes.