[PATCH] D40276: Add -finstrument-function-entry-bare flag

Hans Wennborg via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 20 16:48:53 PST 2017


hans created this revision.

This is an instrumentation flag, similar to -finstrument-functions, but it only inserts calls on function entry, the calls are inserted post-inlining, and they don't take any arugments.

This is intended for users who want to instrument function entry with minimal overhead.

(-pg would be another alternative, but foces frame pointer emission and affects linking, so is probably best left alone to be used for generating gcov data.)


https://reviews.llvm.org/D40276

Files:
  include/clang/Driver/Options.td
  include/clang/Frontend/CodeGenOptions.def
  lib/CodeGen/CodeGenFunction.cpp
  lib/Driver/ToolChains/Clang.cpp
  lib/Frontend/CompilerInvocation.cpp
  test/CodeGen/instrument-functions.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40276.123691.patch
Type: text/x-patch
Size: 6516 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171121/a650b7cc/attachment.bin>


More information about the cfe-commits mailing list