OSDN Git Service

[XRay] Allow logging the first argument of a function call.
authorDean Michael Berris <dberris@google.com>
Mon, 6 Mar 2017 06:48:56 +0000 (06:48 +0000)
committerDean Michael Berris <dberris@google.com>
Mon, 6 Mar 2017 06:48:56 +0000 (06:48 +0000)
commit8c95619c81a645d9305741485f21fa2a908152b5
tree8796c30912a218749ee28e24e7fed8513b5f1966
parent9eb5f1b207d8a68918673a8fdf56a0d57cfa148c
[XRay] Allow logging the first argument of a function call.

Summary:
Functions with the "xray-log-args" attribute will have a special XRay sled kind
emitted, for compiler-rt to copy any call arguments to your logging handler.

For practical and performance reasons, only the first argument is supported, and
only up to 64 bits.

Reviewers: dberris

Reviewed By: dberris

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296998 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/AsmPrinter.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
test/CodeGen/X86/xray-log-args.ll [new file with mode: 0644]