]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/doc/gccint/plugins/recording-information-about-pass-execution.rst
sphinx: add missing trailing newline
[thirdparty/gcc.git] / gcc / doc / gccint / plugins / recording-information-about-pass-execution.rst
CommitLineData
c63539ff
ML
1..
2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
5
6.. _plugins-recording:
7
8Recording information about pass execution
9******************************************
10
11The event PLUGIN_PASS_EXECUTION passes the pointer to the executed pass
12(the same as current_pass) as ``gcc_data`` to the callback. You can also
13inspect cfun to find out about which function this pass is executed for.
14Note that this event will only be invoked if the gate check (if
15applicable, modified by PLUGIN_OVERRIDE_GATE) succeeds.
16You can use other hooks, like ``PLUGIN_ALL_PASSES_START``,
17``PLUGIN_ALL_PASSES_END``, ``PLUGIN_ALL_IPA_PASSES_START``,
18``PLUGIN_ALL_IPA_PASSES_END``, ``PLUGIN_EARLY_GIMPLE_PASSES_START``,
19and/or ``PLUGIN_EARLY_GIMPLE_PASSES_END`` to manipulate global state
3ed1b4ce 20in your plugin(s) in order to get context for the pass execution.