[project @ 2002-11-20 14:09:42 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 /* specialised function types: bitmaps and calling sequences
17  * for these functions are pre-generated (see ghc/utils/genapply), and
18  * the generated code in ghc/rts/AutoApply.hc.
19  */
20 #define ARG_N        2
21 #define ARG_P        3
22 #define ARG_F        4
23 #define ARG_D        5
24 #define ARG_L        6
25 #define ARG_NN       7
26 #define ARG_NP       8
27 #define ARG_PN       9
28 #define ARG_PP       10
29 #define ARG_FF       11
30 #define ARG_DD       12
31 #define ARG_LL       13
32 #define ARG_NNN      14
33 #define ARG_NNP      15
34 #define ARG_NPN      16
35 #define ARG_NPP      17
36 #define ARG_PNN      18
37 #define ARG_PNP      19
38 #define ARG_PPN      20
39 #define ARG_PPP      21
40 #define ARG_PPPP     22
41 #define ARG_PPPPP    23
42 #define ARG_PPPPPP   24
43 #define ARG_PPPPPPP  25
44 #define ARG_PPPPPPPP 26
45
46 #endif // STGFUN_H