Update svn merge history.
[sdcc.git] / sdcc / src / SDCClrange.h
blob275473ce140e81106bfffa1d8668213fc6eae170
1 /*-------------------------------------------------------------------------
3 SDCClrange.h - header file for live range computations
5 Written By - Sandeep Dutta . sandeep.dutta@usa.net (1998)
7 This program is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by the
9 Free Software Foundation; either version 2, or (at your option) any
10 later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 In other words, you are welcome to use, share and improve this program.
22 You are forbidden to forbid anyone else to use, share and improve
23 what you give them. Help stamp out software-hoarding!
24 -------------------------------------------------------------------------*/
26 #ifndef SDCCLRANGE_H
27 #define SDCCLRANGE_H 1
29 extern hTab *liveRanges;
30 extern hTab *iCodehTab;
31 extern hTab *iCodeSeqhTab;
33 int notUsedInBlock (symbol *, eBBlock *, iCode *);
34 bool allDefsOutOfRange (bitVect *, int, int);
35 void computeLiveRanges (eBBlock **ebbs, int count, bool emitWarnings);
36 void recomputeLiveRanges (eBBlock **ebbs, int count, bool emitWarnings);
38 void setToRange (operand *, int, bool);
39 void hashiCodeKeys (eBBlock **, int);
41 void adjustIChain (eBBlock ** ebbs, int count);
43 int separateLiveRanges (iCode *sic, ebbIndex *ebbi); /* Split iTemps that have non-connected live-ranges. */
45 int shortenLiveRanges (iCode *sic, ebbIndex *ebbi); /* Do some optimizations that shorten live ranges. */
47 #endif