cpp: Use #pragma once instead of #ifndef guards
[ghc.git] / includes / rts / storage / FunTypes.h
1 /* -----------------------------------------------------------------------------
2 *
3 * (c) The GHC Team, 2002
4 *
5 * Things for functions.
6 *
7 * ---------------------------------------------------------------------------*/
8
9 #pragma once
10
11 /* generic - function comes with a small bitmap */
12 #define ARG_GEN 0
13
14 /* generic - function comes with a large bitmap */
15 #define ARG_GEN_BIG 1
16
17 /* BCO - function is really a BCO */
18 #define ARG_BCO 2
19
20 /*
21 * Specialised function types: bitmaps and calling sequences
22 * for these functions are pre-generated: see ghc/utils/genapply and
23 * generated code in ghc/rts/AutoApply.cmm.
24 *
25 * NOTE: other places to change if you change this table:
26 * - utils/genapply/Main.hs: stackApplyTypes
27 * - compiler/codeGen/StgCmmLayout.hs: stdPattern
28 */
29 #define ARG_NONE 3
30 #define ARG_N 4
31 #define ARG_P 5
32 #define ARG_F 6
33 #define ARG_D 7
34 #define ARG_L 8
35 #define ARG_V16 9
36 #define ARG_V32 10
37 #define ARG_V64 11
38 #define ARG_NN 12
39 #define ARG_NP 13
40 #define ARG_PN 14
41 #define ARG_PP 15
42 #define ARG_NNN 16
43 #define ARG_NNP 17
44 #define ARG_NPN 18
45 #define ARG_NPP 19
46 #define ARG_PNN 20
47 #define ARG_PNP 21
48 #define ARG_PPN 22
49 #define ARG_PPP 23
50 #define ARG_PPPP 24
51 #define ARG_PPPPP 25
52 #define ARG_PPPPPP 26
53 #define ARG_PPPPPPP 27
54 #define ARG_PPPPPPPP 28