This is an archive of the discontinued LLVM Phabricator instance.

[OpenCL] Move printf declaration to opencl-c-base.h
ClosedPublic

Authored by svenvh on Feb 16 2021, 7:10 AM.

Details

Summary

Supporting printf with -fdeclare-opencl-builtins would require
special handling (for e.g. varargs and format attributes) for just
this one function. Instead, move the printf declaration to the
shared base header.

Diff Detail

Event Timeline

svenvh created this revision.Feb 16 2021, 7:10 AM
svenvh requested review of this revision.Feb 16 2021, 7:10 AM
This revision is now accepted and ready to land.Feb 17 2021, 10:09 AM
This revision was landed with ongoing or failed builds.Feb 18 2021, 3:27 AM
This revision was automatically updated to reflect the committed changes.