struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / src / SDCCdflow.h
blob1a6495647565caca759004e1efd36e7306b16fac
1 /*-------------------------------------------------------------------------
3 SDCCdflow.h - header file for data flow analysis & utility routines
4 related to data flow.
6 Written By - Sandeep Dutta . sandeep.dutta@usa.net (1998)
8 This program is free software; you can redistribute it and/or modify it
9 under the terms of the GNU General Public License as published by the
10 Free Software Foundation; either version 2, or (at your option) any
11 later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 In other words, you are welcome to use, share and improve this program.
23 You are forbidden to forbid anyone else to use, share and improve
24 what you give them. Help stamp out software-hoarding!
25 -------------------------------------------------------------------------*/
27 #include "SDCCset.h"
28 #include "SDCCicode.h"
30 #ifndef SDCCDFLOW_H
31 #define SDCCDFLOW_H 1
33 DEFSETFUNC (mergeInExprs);
34 DEFSETFUNC (ifKilledInBlock);
35 void computeDataFlow (ebbIndex *);
36 DEFSETFUNC (mergeInDefs);
37 DEFSETFUNC (isDefAlive);
38 iCode *usedInRemaining (operand *, iCode *);
39 int usedBetweenPoints (operand *, iCode *, iCode *);
41 struct valinfos;
43 struct valinfo
45 bool nothing, anything;
46 long long int min, max;
47 unsigned long long knownbitsmask;
48 unsigned long long knownbits;
51 bool valinfo_union (struct valinfo *v0, const struct valinfo v1);
52 struct valinfo getOperandValinfo (const iCode *ic, const operand *op);
53 void recomputeValinfos (iCode *sic, ebbIndex *ebbi, const char *suffix);
54 void optimizeValinfo (iCode *sic);
56 #endif