summaryrefslogtreecommitdiff
path: root/compiler/nativeGen/NCG.h
blob: b17f682e719cb201d4fb74a4180f36167d1c7378 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
/* -----------------------------------------------------------------------------

   (c) The University of Glasgow, 1994-2004

   Native-code generator header file - just useful macros for now.

   -------------------------------------------------------------------------- */

#ifndef NCG_H
#define NCG_H

#include "ghc_boot_platform.h"

#define COMMA ,

-- - - - - - - - - - - - - - - - - - - - - - 
#if alpha_TARGET_ARCH
# define IF_ARCH_alpha(x,y) x
#else
# define IF_ARCH_alpha(x,y) y
#endif
-- - - - - - - - - - - - - - - - - - - - - - 
#if i386_TARGET_ARCH
# define IF_ARCH_i386(x,y) x
#else
# define IF_ARCH_i386(x,y) y
#endif
-- - - - - - - - - - - - - - - - - - - - - - 
#if x86_64_TARGET_ARCH
# define IF_ARCH_x86_64(x,y) x
#else
# define IF_ARCH_x86_64(x,y) y
#endif
-- - - - - - - - - - - - - - - - - - - - - - 
#if freebsd_TARGET_OS
# define IF_OS_freebsd(x,y) x
#else
# define IF_OS_freebsd(x,y) y
#endif
-- - - - - - - - - - - - - - - - - - - - - - 
#if netbsd_TARGET_OS
# define IF_OS_netbsd(x,y) x
#else
# define IF_OS_netbsd(x,y) y
#endif
-- - - - - - - - - - - - - - - - - - - - - - 
#if openbsd_TARGET_OS
# define IF_OS_openbsd(x,y) x
#else
# define IF_OS_openbsd(x,y) y
#endif
-- - - - - - - - - - - - - - - - - - - - - - 
#if linux_TARGET_OS
# define IF_OS_linux(x,y) x
#else
# define IF_OS_linux(x,y) y
#endif
-- - - - - - - - - - - - - - - - - - - - - - 
#if linuxaout_TARGET_OS
# define IF_OS_linuxaout(x,y) x
#else
# define IF_OS_linuxaout(x,y) y
#endif
-- - - - - - - - - - - - - - - - - - - - - - 
#if bsdi_TARGET_OS
# define IF_OS_bsdi(x,y) x
#else
# define IF_OS_bsdi(x,y) y
#endif
-- - - - - - - - - - - - - - - - - - - - - - 
#if cygwin32_TARGET_OS
# define IF_OS_cygwin32(x,y) x
#else
# define IF_OS_cygwin32(x,y) y
#endif
-- - - - - - - - - - - - - - - - - - - - - - 
#if sparc_TARGET_ARCH
# define IF_ARCH_sparc(x,y) x
#else
# define IF_ARCH_sparc(x,y) y
#endif
-- - - - - - - - - - - - - - - - - - - - - - 
#if sunos4_TARGET_OS
# define IF_OS_sunos4(x,y) x
#else
# define IF_OS_sunos4(x,y) y
#endif
-- - - - - - - - - - - - - - - - - - - - - - 
-- NB: this will catch i386-*-solaris2, too
#if solaris2_TARGET_OS
# define IF_OS_solaris2(x,y) x
#else
# define IF_OS_solaris2(x,y) y
#endif
-- - - - - - - - - - - - - - - - - - - - - - 
#if powerpc_TARGET_ARCH
# define IF_ARCH_powerpc(x,y) x
#else
# define IF_ARCH_powerpc(x,y) y
#endif
-- - - - - - - - - - - - - - - - - - - - - - 
#if darwin_TARGET_OS
# define IF_OS_darwin(x,y) x
#else
# define IF_OS_darwin(x,y) y
#endif
---------------------------------------------
#endif