[PATCH] D30388: [XRay] Add -fxray-{always, never}-instrument= flags to clang

Dean Michael Berris via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 26 19:21:52 PST 2017


dberris created this revision.
Herald added subscribers: mgorny, jfb.

The -fxray-always-instrument= and -fxray-never-instrument= flags take
filenames that are used to imbue the XRay instrumentation attributes
using a whitelist mechanism (similar to the sanitizer special cases
list). We use the same syntax and semantics as the sanitizer blacklists
files in the implementation.

As implemented, we respect the attributes that are already defined in
the source file (i.e. those that have the
[[clang::xray_{always,never}_instrument]] attributes) before applying
the always/never instrument lists.


https://reviews.llvm.org/D30388

Files:
  include/clang/AST/ASTContext.h
  include/clang/Basic/LangOptions.def
  include/clang/Basic/LangOptions.h
  include/clang/Basic/XRayFunctionFilter.h
  include/clang/Driver/Options.td
  lib/AST/ASTContext.cpp
  lib/Basic/CMakeLists.txt
  lib/Basic/LangOptions.cpp
  lib/Basic/XRayFunctionFilter.cpp
  lib/CodeGen/CodeGenFunction.cpp
  lib/CodeGen/CodeGenModule.cpp
  lib/CodeGen/CodeGenModule.h
  lib/Frontend/CompilerInvocation.cpp
  test/CodeGen/xray-always-instrument.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30388.89829.patch
Type: text/x-patch
Size: 78472 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170227/44d6932b/attachment-0001.bin>


More information about the cfe-commits mailing list