ifcvt.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* If-conversion header file.
  2. Copyright (C) 2014-2015 Free Software Foundation, Inc.
  3. This file is part of GCC.
  4. GCC is free software; you can redistribute it and/or modify it
  5. under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 3, or (at your option)
  7. any later version.
  8. GCC is distributed in the hope that it will be useful, but WITHOUT
  9. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  10. or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
  11. License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with GCC; see the file COPYING3. If not see
  14. <http://www.gnu.org/licenses/>. */
  15. #ifndef GCC_IFCVT_H
  16. #define GCC_IFCVT_H
  17. /* Structure to group all of the information to process IF-THEN and
  18. IF-THEN-ELSE blocks for the conditional execution support. */
  19. struct ce_if_block
  20. {
  21. basic_block test_bb; /* First test block. */
  22. basic_block then_bb; /* THEN block. */
  23. basic_block else_bb; /* ELSE block or NULL. */
  24. basic_block join_bb; /* Join THEN/ELSE blocks. */
  25. basic_block last_test_bb; /* Last bb to hold && or || tests. */
  26. int num_multiple_test_blocks; /* # of && and || basic blocks. */
  27. int num_and_and_blocks; /* # of && blocks. */
  28. int num_or_or_blocks; /* # of || blocks. */
  29. int num_multiple_test_insns; /* # of insns in && and || blocks. */
  30. int and_and_p; /* Complex test is &&. */
  31. int num_then_insns; /* # of insns in THEN block. */
  32. int num_else_insns; /* # of insns in ELSE block. */
  33. int pass; /* Pass number. */
  34. };
  35. #endif /* GCC_IFCVT_H */