This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU][OpenCL] Remove "printf and hostcall" diagnostic
AbandonedPublic

Authored by scott.linder on Mar 29 2022, 10:25 AM.

Details

Reviewers
None
Summary

The diagnostic is unreliable, and triggers even for dead uses of
hostcall that may exist when linking the device-libs at lower
optimization levels.

Eliminate the diagnostic, and directly document the limitation for
OpenCL before code object V5.

Make some NFC changes to clarify the related code in the
MetadataStreamer.

Add a clang test to tie OCL sources containing printf to the backend IR
tests for this situation.

Diff Detail

Event Timeline

scott.linder created this revision.Mar 29 2022, 10:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 29 2022, 10:25 AM
scott.linder requested review of this revision.Mar 29 2022, 10:25 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 29 2022, 10:25 AM
scott.linder abandoned this revision.Mar 29 2022, 10:26 AM
llvm/test/CodeGen/AMDGPU/opencl-printf-and-hostcall.ll