diff options
author | Dean Michael Berris <dberris@google.com> | 2017-05-09 00:45:40 +0000 |
---|---|---|
committer | Dean Michael Berris <dberris@google.com> | 2017-05-09 00:45:40 +0000 |
commit | 42af6513589dbaf28b98a2d30d92cdd6a4884cc0 (patch) | |
tree | 4e855da58444d6c62a9c318bd9f67657388d6ce3 /llvm/lib/CodeGen/SelectionDAG | |
parent | d6e3289cb210764700f3f9dd33afceb99bb68f1e (diff) | |
download | bcm5719-llvm-42af6513589dbaf28b98a2d30d92cdd6a4884cc0.tar.gz bcm5719-llvm-42af6513589dbaf28b98a2d30d92cdd6a4884cc0.zip |
[XRay] Add __xray_customeevent(...) as a clang-supported builtin
Summary:
We define the `__xray_customeevent` builtin that gets translated to
IR calls to the correct intrinsic. The default implementation of this is
a no-op function. The codegen side of this follows the following logic:
- When `-fxray-instrument` is not provided in the driver, we elide all
calls to `__xray_customevent`.
- When `-fxray-instrument` is enabled and a function is marked as "never
instrumented", we elide all calls to `__xray_customevent` in that
function; if either marked as "always instrumented" or subject to
threshold-based instrumentation, we emit a call to the
`llvm.xray.customevent` intrinsic from LLVM for each
`__xray_customevent` occurrence in the function.
This change depends on D27503 (to land in LLVM first).
Reviewers: echristo, rsmith
Subscribers: mehdi_amini, pelikan, lrl, cfe-commits
Differential Revision: https://reviews.llvm.org/D30018
llvm-svn: 302492
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
0 files changed, 0 insertions, 0 deletions