diff options
author | Dean Michael Berris <dberris@google.com> | 2017-05-08 05:45:21 +0000 |
---|---|---|
committer | Dean Michael Berris <dberris@google.com> | 2017-05-08 05:45:21 +0000 |
commit | 9bcaed867a547bc4a8b3fb66c1ee8b165c626de9 (patch) | |
tree | 9a1bb6f931f39f4c6ce645cd79f13ff92329639c /llvm/lib/Support/APInt.cpp | |
parent | 389d8cebd1432255b9f01cd7f694bd7ef43b1c6c (diff) | |
download | llvm-9bcaed867a547bc4a8b3fb66c1ee8b165c626de9.zip llvm-9bcaed867a547bc4a8b3fb66c1ee8b165c626de9.tar.gz llvm-9bcaed867a547bc4a8b3fb66c1ee8b165c626de9.tar.bz2 |
[XRay] Custom event logging intrinsic
This patch introduces an LLVM intrinsic and a target opcode for custom event
logging in XRay. Initially, its use case will be to allow users of XRay to log
some type of string ("poor man's printf"). The target opcode compiles to a noop
sled large enough to enable calling through to a runtime-determined relative
function call. At runtime, when X-Ray is enabled, the sled is replaced by
compiler-rt with a trampoline to the logic for creating the custom log entries.
Future patches will implement the compiler-rt parts and clang-side support for
emitting the IR corresponding to this intrinsic.
Reviewers: timshen, dberris
Subscribers: igorb, pelikan, rSerge, timshen, echristo, dberris, llvm-commits
Differential Revision: https://reviews.llvm.org/D27503
llvm-svn: 302405
Diffstat (limited to 'llvm/lib/Support/APInt.cpp')
0 files changed, 0 insertions, 0 deletions