Massive patch for the first months work adding System FC to GHC #15
[ghc-hetmet.git] / 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 /*
20  * Specialised function types: bitmaps and calling sequences
21  * for these functions are pre-generated: see ghc/utils/genapply and
22  * generated code in ghc/rts/AutoApply.cmm.
23  *
24  *  NOTE: other places to change if you change this table:
25  *       - utils/genapply/GenApply.hs: stackApplyTypes
26  *       - compiler/codeGen/CgCallConv.lhs: stdPattern
27  */
28 #define ARG_NONE     3 
29 #define ARG_N        4  
30 #define ARG_P        5 
31 #define ARG_F        6 
32 #define ARG_D        7 
33 #define ARG_L        8 
34 #define ARG_NN       9 
35 #define ARG_NP       10
36 #define ARG_PN       11
37 #define ARG_PP       12
38 #define ARG_NNN      13
39 #define ARG_NNP      14
40 #define ARG_NPN      15
41 #define ARG_NPP      16
42 #define ARG_PNN      17
43 #define ARG_PNP      18
44 #define ARG_PPN      19
45 #define ARG_PPP      20
46 #define ARG_PPPP     21
47 #define ARG_PPPPP    22
48 #define ARG_PPPPPP   23
49 #define ARG_PPPPPPP  24
50 #define ARG_PPPPPPPP 25
51
52 #endif /* STGFUN_H */