Next:Controlling which passes are being run, Previous:Registering custom attributes or pragmas, Up:Plugins [Contents][Index]
The event PLUGIN_PASS_EXECUTION passes the pointer to the executed pass(the same as current_pass) asgcc_data to the callback. You can alsoinspect cfun to find out about which function this pass is executed for.Note that this event will only be invoked if the gate check (ifapplicable, modified by PLUGIN_OVERRIDE_GATE) succeeds.You can use other hooks, likePLUGIN_ALL_PASSES_START,PLUGIN_ALL_PASSES_END,PLUGIN_ALL_IPA_PASSES_START,PLUGIN_ALL_IPA_PASSES_END,PLUGIN_EARLY_GIMPLE_PASSES_START,and/orPLUGIN_EARLY_GIMPLE_PASSES_END to manipulate global statein your plugin(s) in order to get context for the pass execution.