HomePhabricator

Add support for __builtin_os_log_format[_buffer_size]

Description

Add support for __builtin_os_log_format[_buffer_size]

This reverts commit r285007 and reapply r284990, with a fix for the
opencl test that I broke. Original commit message follows:

These new builtins support a mechanism for logging OS events, using a
printf-like format string to specify the layout of data in a buffer.
The _buffer_size version of the builtin can be used to determine the size
of the buffer to allocate to hold the data, and then __builtin_os_log_format
can write data into that buffer. This implements format checking to report
mismatches between the format string and the data arguments. Most of this
code was written by Chris Willmore.

Differential Revision: https://reviews.llvm.org/D25888

Details

Committed
mehdi_aminiOct 24 2016, 1:39 PM
Differential Revision
D25888: Add support for __builtin_os_log_format[_buffer_size]
Parents
rL285018: [pbqp] Delete some dead code, NFC.
Branches
Unknown
Tags
Unknown