[all-commits] [llvm/llvm-project] 5a4a01: [OpenCL] Move printf declaration to opencl-c-base.h
Sven van Haastregt via All-commits
all-commits at lists.llvm.org
Thu Feb 18 03:28:03 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5a4a01460f1a8f29db9aa3581097dd8bc105425c
https://github.com/llvm/llvm-project/commit/5a4a01460f1a8f29db9aa3581097dd8bc105425c
Author: Sven van Haastregt <sven.vanhaastregt at arm.com>
Date: 2021-02-18 (Thu, 18 Feb 2021)
Changed paths:
M clang/lib/Headers/opencl-c-base.h
M clang/lib/Headers/opencl-c.h
Log Message:
-----------
[OpenCL] Move printf declaration to opencl-c-base.h
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.
Differential Revision: https://reviews.llvm.org/D96789
More information about the All-commits
mailing list