[PATCH] D44970: [XRay][clang] Add flag to choose instrumentation bundles
Dean Michael Berris via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 27 22:36:49 PDT 2018
dberris created this revision.
dberris added reviewers: echristo, kpw, eizan, pelikan.
This change addresses http://llvm.org/PR36926 by allowing users to pick
which instrumentation bundles to use, when instrumenting with XRay. In
particular, the flag `-fxray-instrumentation-bundle=` has four valid
values:
- `all`: the default, which will emit all kinds of instrumentation
points.
- `none`: equivalent to -fnoxray-instrument
- `function-extents`: only emits the entry/exit sleds
- `custom-only`: only emits the custom event sleds
https://reviews.llvm.org/D44970
Files:
clang/include/clang/Driver/Options.td
clang/include/clang/Driver/XRayArgs.h
clang/include/clang/Frontend/CodeGenOptions.def
clang/include/clang/Frontend/CodeGenOptions.h
clang/lib/CodeGen/CGBuiltin.cpp
clang/lib/Driver/XRayArgs.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/test/CodeGen/xray-instrumentation-bundles.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44970.140042.patch
Type: text/x-patch
Size: 8723 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180328/cc352249/attachment.bin>
More information about the cfe-commits
mailing list