]> granicus.if.org Git - clang/commit
[XRay] Add clang builtin for xray typed events.
authorKeith Wyss <wyssman@gmail.com>
Tue, 17 Apr 2018 21:32:43 +0000 (21:32 +0000)
committerKeith Wyss <wyssman@gmail.com>
Tue, 17 Apr 2018 21:32:43 +0000 (21:32 +0000)
commit07bff7a3649109a9b2029e44c1ab8ee9bf9398eb
tree8449028c0f04367bf19fc8d69a00d12808423f1b
parent9317818c5b5fb9778446f67448eb9a9649060b33
[XRay] Add clang builtin for xray typed events.

Summary:
A clang builtin for xray typed events. Differs from
__xray_customevent(...) by the presence of a type tag that is vended by
compiler-rt in typical usage. This allows xray handlers to expand logged
events with their type description and plugins to process traced events
based on type.

This change depends on D45633 for the intrinsic definition.

Reviewers: dberris, pelikan, rnk, eizan

Subscribers: cfe-commits, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@330220 91177308-0d34-0410-b5e6-96231b3b80d8
15 files changed:
include/clang/Basic/Builtins.def
include/clang/Basic/LangOptions.def
include/clang/Basic/XRayInstr.h
include/clang/Driver/Options.td
include/clang/Driver/XRayArgs.h
include/clang/Frontend/CodeGenOptions.def
lib/Basic/XRayInstr.cpp
lib/CodeGen/CGBuiltin.cpp
lib/CodeGen/CodeGenFunction.cpp
lib/CodeGen/CodeGenFunction.h
lib/Driver/XRayArgs.cpp
lib/Frontend/CompilerInvocation.cpp
test/CodeGen/xray-always-emit-typedevent.cpp [new file with mode: 0644]
test/CodeGen/xray-instrumentation-bundles.cpp
test/CodeGen/xray-typedevent.cpp [new file with mode: 0644]