auto-profile.h 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. /* auto-profile.h - Defines data exported from auto-profile.c
  2. Copyright (C) 2014-2015 Free Software Foundation, Inc.
  3. Contributed by Dehao Chen (dehao@google.com)
  4. This file is part of GCC.
  5. GCC is free software; you can redistribute it and/or modify it under
  6. the terms of the GNU General Public License as published by the Free
  7. Software Foundation; either version 3, or (at your option) any later
  8. version.
  9. GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  10. WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  12. for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with GCC; see the file COPYING3. If not see
  15. <http://www.gnu.org/licenses/>. */
  16. #ifndef AUTO_PROFILE_H
  17. #define AUTO_PROFILE_H
  18. /* Read, process, finalize AutoFDO data structures. */
  19. extern void read_autofdo_file (void);
  20. extern void end_auto_profile (void);
  21. /* Returns TRUE if EDGE is hot enough to be inlined early. */
  22. extern bool afdo_callsite_hot_enough_for_early_inline (struct cgraph_edge *);
  23. #endif /* AUTO_PROFILE_H */