[project @ 2004-02-12 02:04:59 by mthomas]
[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 #define ARG_N        3 
24 #define ARG_P        4 
25 #define ARG_F        5 
26 #define ARG_D        6 
27 #define ARG_L        7 
28 #define ARG_NN       8 
29 #define ARG_NP       9 
30 #define ARG_PN       10
31 #define ARG_PP       11
32 #define ARG_FF       12
33 #define ARG_DD       13
34 #define ARG_LL       14
35 #define ARG_NNN      15
36 #define ARG_NNP      16
37 #define ARG_NPN      17
38 #define ARG_NPP      18
39 #define ARG_PNN      19
40 #define ARG_PNP      20
41 #define ARG_PPN      21
42 #define ARG_PPP      22
43 #define ARG_PPPP     23
44 #define ARG_PPPPP    24
45 #define ARG_PPPPPP   25
46 #define ARG_PPPPPPP  26
47 #define ARG_PPPPPPPP 27
48
49 #endif // STGFUN_H