gimplify-me.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /* Header file for middle end gimplification.
  2. Copyright (C) 2013-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 under
  5. the terms of the GNU General Public License as published by the Free
  6. Software Foundation; either version 3, or (at your option) any later
  7. version.
  8. GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  9. WARRANTY; without even the implied warranty of MERCHANTABILITY or
  10. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  11. 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_GIMPLIFY_ME_H
  16. #define GCC_GIMPLIFY_ME_H
  17. /* Validation of GIMPLE expressions. Note that these predicates only check
  18. * the basic form of the expression, they don't recurse to make sure that
  19. * underlying nodes are also of the right form. */
  20. typedef bool (*gimple_predicate)(tree);
  21. extern tree force_gimple_operand_1 (tree, gimple_seq *, gimple_predicate, tree);
  22. extern tree force_gimple_operand (tree, gimple_seq *, bool, tree);
  23. extern tree force_gimple_operand_gsi_1 (gimple_stmt_iterator *, tree,
  24. gimple_predicate, tree,
  25. bool, enum gsi_iterator_update);
  26. extern tree force_gimple_operand_gsi (gimple_stmt_iterator *, tree, bool, tree,
  27. bool, enum gsi_iterator_update);
  28. extern void gimple_regimplify_operands (gimple, gimple_stmt_iterator *);
  29. #endif /* GCC_GIMPLIFY_ME_H */