basic-block.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /* Define control and data flow tables, and regsets.
  2. Copyright (C) 1987 Free Software Foundation, Inc.
  3. This file is part of GNU CC.
  4. GNU CC is distributed in the hope that it will be useful,
  5. but WITHOUT ANY WARRANTY. No author or distributor
  6. accepts responsibility to anyone for the consequences of using it
  7. or for whether it serves any particular purpose or works at all,
  8. unless he says so in writing. Refer to the GNU CC General Public
  9. License for full details.
  10. Everyone is granted permission to copy, modify and redistribute
  11. GNU CC, but only under the conditions described in the
  12. GNU CC General Public License. A copy of this license is
  13. supposed to have been given to you along with GNU CC so you
  14. can know your rights and responsibilities. It should be in a
  15. file named COPYING. Among other things, the copyright notice
  16. and this notice must be preserved on all copies. */
  17. /* Define the type for a pointer to a set with a bit for each
  18. (hard or pseudo) register. */
  19. typedef int *regset;
  20. /* Size of a regset for the current function,
  21. in (1) bytes and (2) elements. */
  22. extern int regset_bytes;
  23. extern int regset_size;
  24. /* Number of bits in each actual element of a regset. */
  25. #define REGSET_ELT_BITS HOST_BITS_PER_INT
  26. /* Number of basic blocks in the current function. */
  27. extern int n_basic_blocks;
  28. /* Index by basic block number, get first insn in the block. */
  29. extern rtx *basic_block_head;
  30. /* Index by basic block number, get last insn in the block. */
  31. extern rtx *basic_block_end;
  32. /* Index by basic block number, get address of regset
  33. describing the registers live at the start of that block. */
  34. extern regset *basic_block_live_at_start;
  35. /* Indexed by n, gives number of basic block that (REG n) is used in.
  36. Or gives -2 if (REG n) is used in more than one basic block.
  37. Or -1 if it has not yet been seen so no basic block is known. */
  38. extern short *reg_basic_block;