[project @ 2004-08-13 13:04:50 by simonmar]
[ghc-hetmet.git] / ghc / includes / StgFun.h
1 /* -----------------------------------------------------------------------------
2  * (c) The GHC Team, 2002
3  *
4  * Things for functions.
5  * ---------------------------------------------------------------------------*/
6
7 #ifndef STGFUN_H
8 #define STGFUN_H
9
10 /* generic - function comes with a small bitmap */
11 #define ARG_GEN      0   
12
13 /* generic - function comes with a large bitmap */
14 #define ARG_GEN_BIG  1
15
16 /* BCO - function is really a BCO */
17 #define ARG_BCO      2
18
19 /* specialised function types: bitmaps and calling sequences
20  * for these functions are pre-generated (see ghc/utils/genapply), and
21  * the generated code in ghc/rts/AutoApply.hc.
22  *
23  *  NOTE: this ordering/numbering is hard-coded into the tables
24  *  generated by GenApply.hs which end up in AutoApply.cmm.
25  */
26 #define ARG_N        3 
27 #define ARG_P        4 
28 #define ARG_F        5 
29 #define ARG_D        6 
30 #define ARG_L        7 
31 #define ARG_NN       8 
32 #define ARG_NP       9 
33 #define ARG_PN       10
34 #define ARG_PP       11
35 #define ARG_NNN      12
36 #define ARG_NNP      13
37 #define ARG_NPN      14
38 #define ARG_NPP      15
39 #define ARG_PNN      16
40 #define ARG_PNP      17
41 #define ARG_PPN      18
42 #define ARG_PPP      19
43 #define ARG_PPPP     20
44 #define ARG_PPPPP    21
45 #define ARG_PPPPPP   22
46 #define ARG_PPPPPPP  23
47 #define ARG_PPPPPPPP 24
48
49 #endif // STGFUN_H