[llvm-commits] [patch] Implement a pass to instrument function entry and exit

Nelson Elhage nelhage at nelhage.com
Sat Jun 5 18:38:09 PDT 2010

This patch adds a pass that adds calls to instrument function exit and
entry, in a way compatible with GCC's -finstrument-functions flag.

Options are also provided to selectively exclude certain functions from
instrumenting, analogous to those provided by GCC.

If this patch is not totally off-base, I'm planning to also implement
and send along a function attribute to disable instrumenting on specific
functions, and frontend support in clang.

- Nelson Elhage

-------------- next part --------------
A non-text attachment was scrubbed...
Name: instrument-functions.diff
Type: text/x-diff
Size: 8034 bytes
Desc: InstrumentFunctions pass
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20100605/ba2fd558/attachment.diff>

More information about the llvm-commits mailing list