RAP-optimizations/src/rap_plugin/rap-fe-cfi.h

21 lines
669 B
C
Raw Normal View History

2018-09-03 23:27:20 +00:00
/* Write by David fuqiang Fan <feqin1023@gmail.com>, member of HardenedLinux.
Licensed under the GPL v2
The impelmentation code of optimization pass for RAP.
2018-09-03 04:53:58 +00:00
Supply the API for RAP */
2018-03-29 13:49:36 +00:00
#ifndef RAP_OPT_H
#define RAP_OPT_H
2018-09-03 04:53:58 +00:00
/* Contains the beed called optimization level of GCC */
extern int gcc_optimize_level;
/* Count how many function we have optimized */
2018-09-04 12:23:56 +00:00
extern int rap_opt_statistics_data;
2018-09-03 04:53:58 +00:00
/* Try make GCC call ipa-pta pass if optimization level is NOT 0 */
void rap_try_call_ipa_pta (void* gcc_data, void* user_data);
void rap_gather_function_targets ();
int is_rap_function_maybe_roped (tree f);
void rap_optimization_clean ();
2018-03-29 13:49:36 +00:00
#endif /* RAP_OPT_H */