This is an archive of the discontinued LLVM Phabricator instance.

[CUDA][SPIRV] Use OpenCLKernel CC for CUDA -> SPIRV
ClosedPublic

Authored by dcastagna on Nov 22 2021, 6:01 PM.

Details

Summary

Select the OpenCLKernel calling convention for kernels when compiling
CUDA targeting SPIR-V.

In this way the generated LLVM IR will have a spir_kernel calling
convention that will be translated to an OpEntryPoint when converting
to SPIRV.

Diff Detail

Event Timeline

dcastagna created this revision.Nov 22 2021, 6:01 PM
dcastagna requested review of this revision.Nov 22 2021, 6:01 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 22 2021, 6:01 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
jlebar accepted this revision.Dec 2 2021, 11:26 AM
jlebar added a subscriber: tra.
This revision is now accepted and ready to land.Dec 2 2021, 11:26 AM
tra accepted this revision.Dec 6 2021, 10:41 AM
This revision was automatically updated to reflect the committed changes.