llvm.org GIT mirror llvm / 8b67f77
Move DataTypes.h to include/llvm/System, update all users. This breaks the last direct inclusion edge from System to Support. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85086 91177308-0d34-0410-b5e6-96231b3b80d8 Chandler Carruth 10 years ago
82 changed file(s) with 403 addition(s) and 403 deletion(s). Raw diff Collapse all Expand all
132132 $(Echo) Eliminating files constructed by configure
133133 $(Verb) $(RM) -f \
134134 $(TopDistDir)/include/llvm/Config/config.h \
135 $(TopDistDir)/include/llvm/Support/DataTypes.h
135 $(TopDistDir)/include/llvm/System/DataTypes.h
136136
137137 clang-only: all
138138 tools-only: all
148148 include/llvm/Config/config.h \
149149 include/llvm/Config/Targets.def \
150150 include/llvm/Config/AsmPrinters.def \
151 include/llvm/Support/DataTypes.h \
151 include/llvm/System/DataTypes.h \
152152 tools/llvmc/plugins/Base/Base.td
153153 FilesToConfigPATH := $(addprefix $(LLVM_OBJ_ROOT)/,$(FilesToConfig))
154154
13481348 AC_CONFIG_FILES([include/llvm/Config/Targets.def])
13491349 AC_CONFIG_FILES([include/llvm/Config/AsmPrinters.def])
13501350 AC_CONFIG_FILES([include/llvm/Config/AsmParsers.def])
1351 AC_CONFIG_HEADERS([include/llvm/Support/DataTypes.h])
1351 AC_CONFIG_HEADERS([include/llvm/System/DataTypes.h])
13521352
13531353 dnl Configure the makefile's configuration data
13541354 AC_CONFIG_FILES([Makefile.config])
228228 )
229229
230230 configure_file(
231 ${LLVM_MAIN_INCLUDE_DIR}/llvm/Support/DataTypes.h.cmake
232 ${LLVM_BINARY_DIR}/include/llvm/Support/DataTypes.h
231 ${LLVM_MAIN_INCLUDE_DIR}/llvm/System/DataTypes.h.cmake
232 ${LLVM_BINARY_DIR}/include/llvm/System/DataTypes.h
233233 )
234234
3525935259
3526035260 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
3526135261
35262 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
35262 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
3526335263
3526435264
3526535265 ac_config_files="$ac_config_files Makefile.config"
3588635886 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
3588735887 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
3588835888 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
35889 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35889 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
3589035890 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
3589135891 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
3589235892 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
726726 Mikhail Glushenkov
727727 LLVM Compiler Infrastructure
728728
729 Last modified: $Date: 2008-12-11 11:34:48 -0600 (Thu, 11 Dec 2008) $
729 Last modified: $Date$
730730
731731
732732
1414 #ifndef LLVM_ADT_EQUIVALENCECLASSES_H
1515 #define LLVM_ADT_EQUIVALENCECLASSES_H
1616
17 #include "llvm/Support/DataTypes.h"
17 #include "llvm/System/DataTypes.h"
1818 #include
1919
2020 namespace llvm {
1515 #ifndef LLVM_ADT_FOLDINGSET_H
1616 #define LLVM_ADT_FOLDINGSET_H
1717
18 #include "llvm/Support/DataTypes.h"
18 #include "llvm/System/DataTypes.h"
1919 #include "llvm/ADT/SmallVector.h"
2020 #include "llvm/ADT/StringRef.h"
2121
1515
1616 #include "llvm/Support/Allocator.h"
1717 #include "llvm/ADT/FoldingSet.h"
18 #include "llvm/Support/DataTypes.h"
18 #include "llvm/System/DataTypes.h"
1919 #include
2020
2121 namespace llvm {
1515
1616 #include "llvm/Support/Allocator.h"
1717 #include "llvm/ADT/FoldingSet.h"
18 #include "llvm/Support/DataTypes.h"
18 #include "llvm/System/DataTypes.h"
1919 #include
2020 #include
2121
1717 #include
1818 #include
1919 #include
20 #include "llvm/Support/DataTypes.h"
20 #include "llvm/System/DataTypes.h"
2121 #include "llvm/Support/PointerLikeTypeTraits.h"
2222
2323 namespace llvm {
1616
1717 #include "llvm/ADT/ilist.h"
1818 #include "llvm/ADT/ilist_node.h"
19 #include "llvm/Support/DataTypes.h"
19 #include "llvm/System/DataTypes.h"
2020 #include "llvm/Support/MathExtras.h"
2121 #include "llvm/Support/raw_ostream.h"
2222 #include
1313 #ifndef LLVM_ADT_STRINGEXTRAS_H
1414 #define LLVM_ADT_STRINGEXTRAS_H
1515
16 #include "llvm/Support/DataTypes.h"
16 #include "llvm/System/DataTypes.h"
1717 #include "llvm/ADT/APFloat.h"
1818 #include "llvm/ADT/StringRef.h"
1919 #include
1010 #define LLVM_ADT_TWINE_H
1111
1212 #include "llvm/ADT/StringRef.h"
13 #include "llvm/Support/DataTypes.h"
13 #include "llvm/System/DataTypes.h"
1414 #include
1515 #include
1616
2323 #include "llvm/Pass.h"
2424 #include "llvm/Instructions.h"
2525 #include "llvm/Function.h"
26 #include "llvm/Support/DataTypes.h"
26 #include "llvm/System/DataTypes.h"
2727 #include "llvm/Support/ValueHandle.h"
2828 #include "llvm/Support/Allocator.h"
2929 #include "llvm/Support/ConstantRange.h"
1414 #ifndef LLVM_ANALYSIS_VALUETRACKING_H
1515 #define LLVM_ANALYSIS_VALUETRACKING_H
1616
17 #include "llvm/Support/DataTypes.h"
17 #include "llvm/System/DataTypes.h"
1818 #include
1919
2020 namespace llvm {
1616 #include "llvm/Instruction.h"
1717 #include "llvm/SymbolTableListTraits.h"
1818 #include "llvm/ADT/ilist.h"
19 #include "llvm/Support/DataTypes.h"
19 #include "llvm/System/DataTypes.h"
2020
2121 namespace llvm {
2222
1818 #define LLVM_BITCODE_BITCODES_H
1919
2020 #include "llvm/ADT/SmallVector.h"
21 #include "llvm/Support/DataTypes.h"
21 #include "llvm/System/DataTypes.h"
2222 #include
2323
2424 namespace llvm {
1919 #include "llvm/ADT/DenseMap.h"
2020 #include "llvm/ADT/SmallVector.h"
2121 #include "llvm/Support/Allocator.h"
22 #include "llvm/Support/DataTypes.h"
22 #include "llvm/System/DataTypes.h"
2323 #include
2424
2525 namespace llvm {
1414 #ifndef LLVM_CODEGEN_BINARYOBJECT_H
1515 #define LLVM_CODEGEN_BINARYOBJECT_H
1616
17 #include "llvm/Support/DataTypes.h"
17 #include "llvm/System/DataTypes.h"
1818
1919 #include
2020 #include
1313 #ifndef LLVM_CODEGEN_ELF_RELOCATION_H
1414 #define LLVM_CODEGEN_ELF_RELOCATION_H
1515
16 #include "llvm/Support/DataTypes.h"
16 #include "llvm/System/DataTypes.h"
1717
1818 namespace llvm {
1919
1717 #define LLVM_CODEGEN_JITCODEEMITTER_H
1818
1919 #include
20 #include "llvm/Support/DataTypes.h"
20 #include "llvm/System/DataTypes.h"
2121 #include "llvm/Support/MathExtras.h"
2222 #include "llvm/CodeGen/MachineCodeEmitter.h"
2323
1616 #ifndef LLVM_CODEGEN_MACHINECODEEMITTER_H
1717 #define LLVM_CODEGEN_MACHINECODEEMITTER_H
1818
19 #include "llvm/Support/DataTypes.h"
19 #include "llvm/System/DataTypes.h"
2020 #include "llvm/Support/DebugLoc.h"
2121
2222 namespace llvm {
1515
1616 #include "llvm/ADT/BitVector.h"
1717 #include "llvm/ADT/DenseSet.h"
18 #include "llvm/Support/DataTypes.h"
18 #include "llvm/System/DataTypes.h"
1919 #include
2020 #include
2121
3131 #define LLVM_CODEGEN_MACHINEMODULEINFO_H
3232
3333 #include "llvm/Support/Dwarf.h"
34 #include "llvm/Support/DataTypes.h"
34 #include "llvm/System/DataTypes.h"
3535 #include "llvm/ADT/SmallVector.h"
3636 #include "llvm/ADT/DenseMap.h"
3737 #include "llvm/ADT/UniqueVector.h"
1313 #ifndef LLVM_CODEGEN_MACHINEOPERAND_H
1414 #define LLVM_CODEGEN_MACHINEOPERAND_H
1515
16 #include "llvm/Support/DataTypes.h"
16 #include "llvm/System/DataTypes.h"
1717 #include
1818
1919 namespace llvm {
1313 #ifndef LLVM_CODEGEN_MACHINERELOCATION_H
1414 #define LLVM_CODEGEN_MACHINERELOCATION_H
1515
16 #include "llvm/Support/DataTypes.h"
16 #include "llvm/System/DataTypes.h"
1717 #include
1818
1919 namespace llvm {
2727 #include "llvm/CodeGen/ValueTypes.h"
2828 #include "llvm/CodeGen/MachineMemOperand.h"
2929 #include "llvm/Support/MathExtras.h"
30 #include "llvm/Support/DataTypes.h"
30 #include "llvm/System/DataTypes.h"
3131 #include "llvm/Support/DebugLoc.h"
3232 #include
3333
1717
1818 #include
1919 #include
20 #include "llvm/Support/DataTypes.h"
20 #include "llvm/System/DataTypes.h"
2121 #include "llvm/Support/MathExtras.h"
2222
2323 namespace llvm {
1515 #define GENERIC_VALUE_H
1616
1717 #include "llvm/ADT/APInt.h"
18 #include "llvm/Support/DataTypes.h"
18 #include "llvm/System/DataTypes.h"
1919
2020 namespace llvm {
2121
1414 #ifndef LLVM_EXECUTION_ENGINE_JIT_EVENTLISTENER_H
1515 #define LLVM_EXECUTION_ENGINE_JIT_EVENTLISTENER_H
1616
17 #include "llvm/Support/DataTypes.h"
17 #include "llvm/System/DataTypes.h"
1818 #include "llvm/Support/DebugLoc.h"
1919
2020 #include
1313 #ifndef LLVM_EXECUTION_ENGINE_JIT_MEMMANAGER_H
1414 #define LLVM_EXECUTION_ENGINE_JIT_MEMMANAGER_H
1515
16 #include "llvm/Support/DataTypes.h"
16 #include "llvm/System/DataTypes.h"
1717 #include
1818
1919 namespace llvm {
1010 #define LLVM_MC_MCASMLEXER_H
1111
1212 #include "llvm/ADT/StringRef.h"
13 #include "llvm/Support/DataTypes.h"
13 #include "llvm/System/DataTypes.h"
1414
1515 namespace llvm {
1616 class MCAsmLexer;
99 #ifndef LLVM_MC_MCASMPARSER_H
1010 #define LLVM_MC_MCASMPARSER_H
1111
12 #include "llvm/Support/DataTypes.h"
12 #include "llvm/System/DataTypes.h"
1313
1414 namespace llvm {
1515 class MCAsmLexer;
1313 #include "llvm/ADT/ilist.h"
1414 #include "llvm/ADT/ilist_node.h"
1515 #include "llvm/Support/Casting.h"
16 #include "llvm/Support/DataTypes.h"
16 #include "llvm/System/DataTypes.h"
1717 #include // FIXME: Shouldn't be needed.
1818
1919 namespace llvm {
88 #ifndef MCDISASSEMBLER_H
99 #define MCDISASSEMBLER_H
1010
11 #include "llvm/Support/DataTypes.h"
11 #include "llvm/System/DataTypes.h"
1212
1313 namespace llvm {
1414
1010 #define LLVM_MC_MCEXPR_H
1111
1212 #include "llvm/Support/Casting.h"
13 #include "llvm/Support/DataTypes.h"
13 #include "llvm/System/DataTypes.h"
1414
1515 namespace llvm {
1616 class MCAsmInfo;
1616 #define LLVM_MC_MCINST_H
1717
1818 #include "llvm/ADT/SmallVector.h"
19 #include "llvm/Support/DataTypes.h"
19 #include "llvm/System/DataTypes.h"
2020
2121 namespace llvm {
2222 class raw_ostream;
1313 #ifndef LLVM_MC_MCSTREAMER_H
1414 #define LLVM_MC_MCSTREAMER_H
1515
16 #include "llvm/Support/DataTypes.h"
16 #include "llvm/System/DataTypes.h"
1717
1818 namespace llvm {
1919 class MCAsmInfo;
1515
1616 #include
1717 #include "llvm/ADT/StringRef.h"
18 #include "llvm/Support/DataTypes.h"
18 #include "llvm/System/DataTypes.h"
1919
2020 namespace llvm {
2121 class MCAsmInfo;
1313 #ifndef LLVM_MC_MCVALUE_H
1414 #define LLVM_MC_MCVALUE_H
1515
16 #include "llvm/Support/DataTypes.h"
16 #include "llvm/System/DataTypes.h"
1717 #include "llvm/MC/MCSymbol.h"
1818 #include
1919
1818 #include "llvm/GlobalVariable.h"
1919 #include "llvm/GlobalAlias.h"
2020 #include "llvm/Metadata.h"
21 #include "llvm/Support/DataTypes.h"
21 #include "llvm/System/DataTypes.h"
2222 #include
2323
2424 namespace llvm {
2828 #ifndef LLVM_PASS_H
2929 #define LLVM_PASS_H
3030
31 #include "llvm/Support/DataTypes.h"
31 #include "llvm/System/DataTypes.h"
3232 #include
3333 #include
3434 #include
+0
-25
include/llvm/Support/AIXDataTypesFix.h less more
None //===-- llvm/Support/AIXDataTypesFix.h - Fix datatype defs ------*- C++ -*-===//
1 //
2 // The LLVM Compiler Infrastructure
3 //
4 // This file is distributed under the University of Illinois Open Source
5 // License. See LICENSE.TXT for details.
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file overrides default system-defined types and limits which cannot be
10 // done in DataTypes.h.in because it is processed by autoheader first, which
11 // comments out any #undef statement
12 //
13 //===----------------------------------------------------------------------===//
14
15 // No include guards desired!
16
17 #ifndef SUPPORT_DATATYPES_H
18 #error "AIXDataTypesFix.h must only be included via DataTypes.h!"
19 #endif
20
21 // GCC is strict about defining large constants: they must have LL modifier.
22 // These will be defined properly at the end of DataTypes.h
23 #undef INT64_MAX
24 #undef INT64_MIN
1414 #define LLVM_SUPPORT_ALLOCATOR_H
1515
1616 #include "llvm/Support/AlignOf.h"
17 #include "llvm/Support/DataTypes.h"
17 #include "llvm/System/DataTypes.h"
1818 #include
1919 #include
2020
3232 #define LLVM_SUPPORT_CONSTANT_RANGE_H
3333
3434 #include "llvm/ADT/APInt.h"
35 #include "llvm/Support/DataTypes.h"
35 #include "llvm/System/DataTypes.h"
3636
3737 namespace llvm {
3838
+0
-152
include/llvm/Support/DataTypes.h.cmake less more
None /*===-- include/Support/DataTypes.h - Define fixed size types -----*- C -*-===*\
1 |* *|
2 |* The LLVM Compiler Infrastructure *|
3 |* *|
4 |* This file is distributed under the University of Illinois Open Source *|
5 |* License. See LICENSE.TXT for details. *|
6 |* *|
7 |*===----------------------------------------------------------------------===*|
8 |* *|
9 |* This file contains definitions to figure out the size of _HOST_ data types.*|
10 |* This file is important because different host OS's define different macros,*|
11 |* which makes portability tough. This file exports the following *|
12 |* definitions: *|
13 |* *|
14 |* [u]int(32|64)_t : typedefs for signed and unsigned 32/64 bit system types*|
15 |* [U]INT(8|16|32|64)_(MIN|MAX) : Constants for the min and max values. *|
16 |* *|
17 |* No library is required when using these functinons. *|
18 |* *|
19 |*===----------------------------------------------------------------------===*/
20
21 /* Please leave this file C-compatible. */
22
23 #ifndef SUPPORT_DATATYPES_H
24 #define SUPPORT_DATATYPES_H
25
26 #cmakedefine HAVE_SYS_TYPES_H ${HAVE_SYS_TYPES_H}
27 #cmakedefine HAVE_INTTYPES_H ${HAVE_INTTYPES_H}
28 #cmakedefine HAVE_STDINT_H ${HAVE_STDINT_H}
29 #cmakedefine HAVE_UINT64_T ${HAVE_UINT64_T}
30 #cmakedefine HAVE_U_INT64_T ${HAVE_U_INT64_T}
31
32 #ifdef __cplusplus
33 #include
34 #else
35 #include
36 #endif
37
38 #ifndef _MSC_VER
39
40 /* Note that this header's correct operation depends on __STDC_LIMIT_MACROS
41 being defined. We would define it here, but in order to prevent Bad Things
42 happening when system headers or C++ STL headers include stdint.h before we
43 define it here, we define it on the g++ command line (in Makefile.rules). */
44 #if !defined(__STDC_LIMIT_MACROS)
45 # error "Must #define __STDC_LIMIT_MACROS before #including Support/DataTypes.h"
46 #endif
47
48 #if !defined(__STDC_CONSTANT_MACROS)
49 # error "Must #define __STDC_CONSTANT_MACROS before " \
50 "#including Support/DataTypes.h"
51 #endif
52
53 /* Note that includes , if this is a C99 system. */
54 #ifdef HAVE_SYS_TYPES_H
55 #include
56 #endif
57
58 #ifdef HAVE_INTTYPES_H
59 #include
60 #endif
61
62 #ifdef HAVE_STDINT_H
63 #include
64 #endif
65
66 #ifdef _AIX
67 #include "llvm/Support/AIXDataTypesFix.h"
68 #endif
69
70 /* Handle incorrect definition of uint64_t as u_int64_t */
71 #ifndef HAVE_UINT64_T
72 #ifdef HAVE_U_INT64_T
73 typedef u_int64_t uint64_t;
74 #else
75 # error "Don't have a definition for uint64_t on this platform"
76 #endif
77 #endif
78
79 #ifdef _OpenBSD_
80 #define INT8_MAX 127
81 #define INT8_MIN -128
82 #define UINT8_MAX 255
83 #define INT16_MAX 32767
84 #define INT16_MIN -32768
85 #define UINT16_MAX 65535
86 #define INT32_MAX 2147483647
87 #define INT32_MIN -2147483648
88 #define UINT32_MAX 4294967295U
89 #endif
90
91 #else /* _MSC_VER */
92 /* Visual C++ doesn't provide standard integer headers, but it does provide
93 built-in data types. */
94 #include
95 #include
96 #include
97 #ifdef __cplusplus
98 #include
99 #else
100 #include
101 #endif
102 typedef __int64 int64_t;
103 typedef unsigned __int64 uint64_t;
104 typedef signed int int32_t;
105 typedef unsigned int uint32_t;
106 typedef short int16_t;
107 typedef unsigned short uint16_t;
108 typedef signed char int8_t;
109 typedef unsigned char uint8_t;
110 typedef signed int ssize_t;
111 #define INT8_MAX 127
112 #define INT8_MIN -128
113 #define UINT8_MAX 255
114 #define INT16_MAX 32767
115 #define INT16_MIN -32768
116 #define UINT16_MAX 65535
117 #define INT32_MAX 2147483647
118 #define INT32_MIN -2147483648
119 #define UINT32_MAX 4294967295U
120 #define INT8_C(C) C
121 #define UINT8_C(C) C
122 #define INT16_C(C) C
123 #define UINT16_C(C) C
124 #define INT32_C(C) C
125 #define UINT32_C(C) C ## U
126 #define INT64_C(C) ((int64_t) C ## LL)
127 #define UINT64_C(C) ((uint64_t) C ## ULL)
128 #endif /* _MSC_VER */
129
130 /* Set defaults for constants which we cannot find. */
131 #if !defined(INT64_MAX)
132 # define INT64_MAX 9223372036854775807LL
133 #endif
134 #if !defined(INT64_MIN)
135 # define INT64_MIN ((-INT64_MAX)-1)
136 #endif
137 #if !defined(UINT64_MAX)
138 # define UINT64_MAX 0xffffffffffffffffULL
139 #endif
140
141 #if __GNUC__ > 3
142 #define END_WITH_NULL __attribute__((sentinel))
143 #else
144 #define END_WITH_NULL
145 #endif
146
147 #ifndef HUGE_VALF
148 #define HUGE_VALF (float)HUGE_VAL
149 #endif
150
151 #endif /* SUPPORT_DATATYPES_H */
+0
-147
include/llvm/Support/DataTypes.h.in less more
None /*===-- include/Support/DataTypes.h - Define fixed size types -----*- C -*-===*\
1 |* *|
2 |* The LLVM Compiler Infrastructure *|
3 |* *|
4 |* This file is distributed under the University of Illinois Open Source *|
5 |* License. See LICENSE.TXT for details. *|
6 |* *|
7 |*===----------------------------------------------------------------------===*|
8 |* *|
9 |* This file contains definitions to figure out the size of _HOST_ data types.*|
10 |* This file is important because different host OS's define different macros,*|
11 |* which makes portability tough. This file exports the following *|
12 |* definitions: *|
13 |* *|
14 |* [u]int(32|64)_t : typedefs for signed and unsigned 32/64 bit system types*|
15 |* [U]INT(8|16|32|64)_(MIN|MAX) : Constants for the min and max values. *|
16 |* *|
17 |* No library is required when using these functinons. *|
18 |* *|
19 |*===----------------------------------------------------------------------===*/
20
21 /* Please leave this file C-compatible. */
22
23 #ifndef SUPPORT_DATATYPES_H
24 #define SUPPORT_DATATYPES_H
25
26 #undef HAVE_SYS_TYPES_H
27 #undef HAVE_INTTYPES_H
28 #undef HAVE_STDINT_H
29 #undef HAVE_UINT64_T
30 #undef HAVE_U_INT64_T
31
32 #ifdef __cplusplus
33 #include
34 #else
35 #include
36 #endif
37
38 #ifndef _MSC_VER
39
40 /* Note that this header's correct operation depends on __STDC_LIMIT_MACROS
41 being defined. We would define it here, but in order to prevent Bad Things
42 happening when system headers or C++ STL headers include stdint.h before we
43 define it here, we define it on the g++ command line (in Makefile.rules). */
44 #if !defined(__STDC_LIMIT_MACROS)
45 # error "Must #define __STDC_LIMIT_MACROS before #including Support/DataTypes.h"
46 #endif
47
48 #if !defined(__STDC_CONSTANT_MACROS)
49 # error "Must #define __STDC_CONSTANT_MACROS before " \
50 "#including Support/DataTypes.h"
51 #endif
52
53 /* Note that includes , if this is a C99 system. */
54 #ifdef HAVE_SYS_TYPES_H
55 #include
56 #endif
57
58 #ifdef HAVE_INTTYPES_H
59 #include
60 #endif
61
62 #ifdef HAVE_STDINT_H
63 #include
64 #endif
65
66 #ifdef _AIX
67 #include "llvm/Support/AIXDataTypesFix.h"
68 #endif
69
70 /* Handle incorrect definition of uint64_t as u_int64_t */
71 #ifndef HAVE_UINT64_T
72 #ifdef HAVE_U_INT64_T
73 typedef u_int64_t uint64_t;
74 #else
75 # error "Don't have a definition for uint64_t on this platform"
76 #endif
77 #endif
78
79 #ifdef _OpenBSD_
80 #define INT8_MAX 127
81 #define INT8_MIN -128
82 #define UINT8_MAX 255
83 #define INT16_MAX 32767
84 #define INT16_MIN -32768
85 #define UINT16_MAX 65535
86 #define INT32_MAX 2147483647
87 #define INT32_MIN -2147483648
88 #define UINT32_MAX 4294967295U
89 #endif
90
91 #else /* _MSC_VER */
92 /* Visual C++ doesn't provide standard integer headers, but it does provide
93 built-in data types. */
94 #include
95 #include
96 #include
97 typedef __int64 int64_t;
98 typedef unsigned __int64 uint64_t;
99 typedef signed int int32_t;
100 typedef unsigned int uint32_t;
101 typedef short int16_t;
102 typedef unsigned short uint16_t;
103 typedef signed char int8_t;
104 typedef unsigned char uint8_t;
105 typedef signed int ssize_t;
106 #define INT8_MAX 127
107 #define INT8_MIN -128
108 #define UINT8_MAX 255
109 #define INT16_MAX 32767
110 #define INT16_MIN -32768
111 #define UINT16_MAX 65535
112 #define INT32_MAX 2147483647
113 #define INT32_MIN -2147483648
114 #define UINT32_MAX 4294967295U
115 #define INT8_C(C) C
116 #define UINT8_C(C) C
117 #define INT16_C(C) C
118 #define UINT16_C(C) C
119 #define INT32_C(C) C
120 #define UINT32_C(C) C ## U
121 #define INT64_C(C) ((int64_t) C ## LL)
122 #define UINT64_C(C) ((uint64_t) C ## ULL)
123 #endif /* _MSC_VER */
124
125 /* Set defaults for constants which we cannot find. */
126 #if !defined(INT64_MAX)
127 # define INT64_MAX 9223372036854775807LL
128 #endif
129 #if !defined(INT64_MIN)
130 # define INT64_MIN ((-INT64_MAX)-1)
131 #endif
132 #if !defined(UINT64_MAX)
133 # define UINT64_MAX 0xffffffffffffffffULL
134 #endif
135
136 #if __GNUC__ > 3
137 #define END_WITH_NULL __attribute__((sentinel))
138 #else
139 #define END_WITH_NULL
140 #endif
141
142 #ifndef HUGE_VALF
143 #define HUGE_VALF (float)HUGE_VAL
144 #endif
145
146 #endif /* SUPPORT_DATATYPES_H */
2020 #ifndef LLVM_SUPPORT_ELF_H
2121 #define LLVM_SUPPORT_ELF_H
2222
23 #include "llvm/Support/DataTypes.h"
23 #include "llvm/System/DataTypes.h"
2424 #include
2525
2626 namespace llvm {
1313 #ifndef LLVM_SUPPORT_MATHEXTRAS_H
1414 #define LLVM_SUPPORT_MATHEXTRAS_H
1515
16 #include "llvm/Support/DataTypes.h"
16 #include "llvm/System/DataTypes.h"
1717
1818 namespace llvm {
1919
1414 #define LLVM_SUPPORT_MEMORYBUFFER_H
1515
1616 #include "llvm/ADT/StringRef.h"
17 #include "llvm/Support/DataTypes.h"
17 #include "llvm/System/DataTypes.h"
1818 #include
1919
2020 namespace llvm {
99 #ifndef MEMORYOBJECT_H
1010 #define MEMORYOBJECT_H
1111
12 #include "llvm/Support/DataTypes.h"
12 #include "llvm/System/DataTypes.h"
1313
1414 namespace llvm {
1515
1414 #ifndef LLVM_SUPPORT_POINTERLIKETYPETRAITS_H
1515 #define LLVM_SUPPORT_POINTERLIKETYPETRAITS_H
1616
17 #include "llvm/Support/DataTypes.h"
17 #include "llvm/System/DataTypes.h"
1818
1919 namespace llvm {
2020
3030
3131 #include
3232 #include
33 #include "llvm/Support/DataTypes.h"
33 #include "llvm/System/DataTypes.h"
3434
3535 namespace llvm {
3636 class SlowOperationInformer {
1414 #ifndef LLVM_SUPPORT_TIMER_H
1515 #define LLVM_SUPPORT_TIMER_H
1616
17 #include "llvm/Support/DataTypes.h"
17 #include "llvm/System/DataTypes.h"
1818 #include "llvm/System/Mutex.h"
1919 #include
2020 #include
1414 #define LLVM_SUPPORT_RAW_OSTREAM_H
1515
1616 #include "llvm/ADT/StringRef.h"
17 #include "llvm/Support/DataTypes.h"
17 #include "llvm/System/DataTypes.h"
1818
1919 namespace llvm {
2020 class format_object_base;
0 //===-- llvm/System/AIXDataTypesFix.h - Fix datatype defs ------*- C++ -*-===//
1 //
2 // The LLVM Compiler Infrastructure
3 //
4 // This file is distributed under the University of Illinois Open Source
5 // License. See LICENSE.TXT for details.
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file overrides default system-defined types and limits which cannot be
10 // done in DataTypes.h.in because it is processed by autoheader first, which
11 // comments out any #undef statement
12 //
13 //===----------------------------------------------------------------------===//
14
15 // No include guards desired!
16
17 #ifndef SUPPORT_DATATYPES_H
18 #error "AIXDataTypesFix.h must only be included via DataTypes.h!"
19 #endif
20
21 // GCC is strict about defining large constants: they must have LL modifier.
22 // These will be defined properly at the end of DataTypes.h
23 #undef INT64_MAX
24 #undef INT64_MIN
1313 #ifndef LLVM_SYSTEM_ATOMIC_H
1414 #define LLVM_SYSTEM_ATOMIC_H
1515
16 #include "llvm/Support/DataTypes.h"
16 #include "llvm/System/DataTypes.h"
1717
1818 namespace llvm {
1919 namespace sys {
0 /*===-- include/System/DataTypes.h - Define fixed size types -----*- C -*-===*\
1 |* *|
2 |* The LLVM Compiler Infrastructure *|
3 |* *|
4 |* This file is distributed under the University of Illinois Open Source *|
5 |* License. See LICENSE.TXT for details. *|
6 |* *|
7 |*===----------------------------------------------------------------------===*|
8 |* *|
9 |* This file contains definitions to figure out the size of _HOST_ data types.*|
10 |* This file is important because different host OS's define different macros,*|
11 |* which makes portability tough. This file exports the following *|
12 |* definitions: *|
13 |* *|
14 |* [u]int(32|64)_t : typedefs for signed and unsigned 32/64 bit system types*|
15 |* [U]INT(8|16|32|64)_(MIN|MAX) : Constants for the min and max values. *|
16 |* *|
17 |* No library is required when using these functinons. *|
18 |* *|
19 |*===----------------------------------------------------------------------===*/
20
21 /* Please leave this file C-compatible. */
22
23 #ifndef SUPPORT_DATATYPES_H
24 #define SUPPORT_DATATYPES_H
25
26 #cmakedefine HAVE_SYS_TYPES_H ${HAVE_SYS_TYPES_H}
27 #cmakedefine HAVE_INTTYPES_H ${HAVE_INTTYPES_H}
28 #cmakedefine HAVE_STDINT_H ${HAVE_STDINT_H}
29 #cmakedefine HAVE_UINT64_T ${HAVE_UINT64_T}
30 #cmakedefine HAVE_U_INT64_T ${HAVE_U_INT64_T}
31
32 #ifdef __cplusplus
33 #include
34 #else
35 #include
36 #endif
37
38 #ifndef _MSC_VER
39
40 /* Note that this header's correct operation depends on __STDC_LIMIT_MACROS
41 being defined. We would define it here, but in order to prevent Bad Things
42 happening when system headers or C++ STL headers include stdint.h before we
43 define it here, we define it on the g++ command line (in Makefile.rules). */
44 #if !defined(__STDC_LIMIT_MACROS)
45 # error "Must #define __STDC_LIMIT_MACROS before #including System/DataTypes.h"
46 #endif
47
48 #if !defined(__STDC_CONSTANT_MACROS)
49 # error "Must #define __STDC_CONSTANT_MACROS before " \
50 "#including System/DataTypes.h"
51 #endif
52
53 /* Note that includes , if this is a C99 system. */
54 #ifdef HAVE_SYS_TYPES_H
55 #include
56 #endif
57
58 #ifdef HAVE_INTTYPES_H
59 #include
60 #endif
61
62 #ifdef HAVE_STDINT_H
63 #include
64 #endif
65
66 #ifdef _AIX
67 #include "llvm/System/AIXDataTypesFix.h"
68 #endif
69
70 /* Handle incorrect definition of uint64_t as u_int64_t */
71 #ifndef HAVE_UINT64_T
72 #ifdef HAVE_U_INT64_T
73 typedef u_int64_t uint64_t;
74 #else
75 # error "Don't have a definition for uint64_t on this platform"
76 #endif
77 #endif
78
79 #ifdef _OpenBSD_
80 #define INT8_MAX 127
81 #define INT8_MIN -128
82 #define UINT8_MAX 255
83 #define INT16_MAX 32767
84 #define INT16_MIN -32768
85 #define UINT16_MAX 65535
86 #define INT32_MAX 2147483647
87 #define INT32_MIN -2147483648
88 #define UINT32_MAX 4294967295U
89 #endif
90
91 #else /* _MSC_VER */
92 /* Visual C++ doesn't provide standard integer headers, but it does provide
93 built-in data types. */
94 #include
95 #include
96 #include
97 #ifdef __cplusplus
98 #include
99 #else
100 #include
101 #endif
102 typedef __int64 int64_t;
103 typedef unsigned __int64 uint64_t;
104 typedef signed int int32_t;
105 typedef unsigned int uint32_t;
106 typedef short int16_t;
107 typedef unsigned short uint16_t;
108 typedef signed char int8_t;
109 typedef unsigned char uint8_t;
110 typedef signed int ssize_t;
111 #define INT8_MAX 127
112 #define INT8_MIN -128
113 #define UINT8_MAX 255
114 #define INT16_MAX 32767
115 #define INT16_MIN -32768
116 #define UINT16_MAX 65535
117 #define INT32_MAX 2147483647
118 #define INT32_MIN -2147483648
119 #define UINT32_MAX 4294967295U
120 #define INT8_C(C) C
121 #define UINT8_C(C) C
122 #define INT16_C(C) C
123 #define UINT16_C(C) C
124 #define INT32_C(C) C
125 #define UINT32_C(C) C ## U
126 #define INT64_C(C) ((int64_t) C ## LL)
127 #define UINT64_C(C) ((uint64_t) C ## ULL)
128 #endif /* _MSC_VER */
129
130 /* Set defaults for constants which we cannot find. */
131 #if !defined(INT64_MAX)
132 # define INT64_MAX 9223372036854775807LL
133 #endif
134 #if !defined(INT64_MIN)
135 # define INT64_MIN ((-INT64_MAX)-1)
136 #endif
137 #if !defined(UINT64_MAX)
138 # define UINT64_MAX 0xffffffffffffffffULL
139 #endif
140
141 #if __GNUC__ > 3
142 #define END_WITH_NULL __attribute__((sentinel))
143 #else
144 #define END_WITH_NULL
145 #endif
146
147 #ifndef HUGE_VALF
148 #define HUGE_VALF (float)HUGE_VAL
149 #endif
150
151 #endif /* SUPPORT_DATATYPES_H */
0 /*===-- include/System/DataTypes.h - Define fixed size types -----*- C -*-===*\
1 |* *|
2 |* The LLVM Compiler Infrastructure *|
3 |* *|
4 |* This file is distributed under the University of Illinois Open Source *|
5 |* License. See LICENSE.TXT for details. *|
6 |* *|
7 |*===----------------------------------------------------------------------===*|
8 |* *|
9 |* This file contains definitions to figure out the size of _HOST_ data types.*|
10 |* This file is important because different host OS's define different macros,*|
11 |* which makes portability tough. This file exports the following *|
12 |* definitions: *|
13 |* *|
14 |* [u]int(32|64)_t : typedefs for signed and unsigned 32/64 bit system types*|
15 |* [U]INT(8|16|32|64)_(MIN|MAX) : Constants for the min and max values. *|
16 |* *|
17 |* No library is required when using these functinons. *|
18 |* *|
19 |*===----------------------------------------------------------------------===*/
20
21 /* Please leave this file C-compatible. */
22
23 #ifndef SUPPORT_DATATYPES_H
24 #define SUPPORT_DATATYPES_H
25
26 #undef HAVE_SYS_TYPES_H
27 #undef HAVE_INTTYPES_H
28 #undef HAVE_STDINT_H
29 #undef HAVE_UINT64_T
30 #undef HAVE_U_INT64_T
31
32 #ifdef __cplusplus
33 #include
34 #else
35 #include
36 #endif
37
38 #ifndef _MSC_VER
39
40 /* Note that this header's correct operation depends on __STDC_LIMIT_MACROS
41 being defined. We would define it here, but in order to prevent Bad Things
42 happening when system headers or C++ STL headers include stdint.h before we
43 define it here, we define it on the g++ command line (in Makefile.rules). */
44 #if !defined(__STDC_LIMIT_MACROS)
45 # error "Must #define __STDC_LIMIT_MACROS before #including System/DataTypes.h"
46 #endif
47
48 #if !defined(__STDC_CONSTANT_MACROS)
49 # error "Must #define __STDC_CONSTANT_MACROS before " \
50 "#including System/DataTypes.h"
51 #endif
52
53 /* Note that includes , if this is a C99 system. */
54 #ifdef HAVE_SYS_TYPES_H
55 #include
56 #endif
57
58 #ifdef HAVE_INTTYPES_H
59 #include
60 #endif
61
62 #ifdef HAVE_STDINT_H
63 #include
64 #endif
65
66 #ifdef _AIX
67 #include "llvm/System/AIXDataTypesFix.h"
68 #endif
69
70 /* Handle incorrect definition of uint64_t as u_int64_t */
71 #ifndef HAVE_UINT64_T
72 #ifdef HAVE_U_INT64_T
73 typedef u_int64_t uint64_t;
74 #else
75 # error "Don't have a definition for uint64_t on this platform"
76 #endif
77 #endif
78
79 #ifdef _OpenBSD_
80 #define INT8_MAX 127
81 #define INT8_MIN -128
82 #define UINT8_MAX 255
83 #define INT16_MAX 32767
84 #define INT16_MIN -32768
85 #define UINT16_MAX 65535
86 #define INT32_MAX 2147483647
87 #define INT32_MIN -2147483648
88 #define UINT32_MAX 4294967295U
89 #endif
90
91 #else /* _MSC_VER */
92 /* Visual C++ doesn't provide standard integer headers, but it does provide
93 built-in data types. */
94 #include
95 #include
96 #include
97 typedef __int64 int64_t;
98 typedef unsigned __int64 uint64_t;
99 typedef signed int int32_t;
100 typedef unsigned int uint32_t;
101 typedef short int16_t;
102 typedef unsigned short uint16_t;
103 typedef signed char int8_t;
104 typedef unsigned char uint8_t;
105 typedef signed int ssize_t;
106 #define INT8_MAX 127
107 #define INT8_MIN -128
108 #define UINT8_MAX 255
109 #define INT16_MAX 32767
110 #define INT16_MIN -32768
111 #define UINT16_MAX 65535
112 #define INT32_MAX 2147483647
113 #define INT32_MIN -2147483648
114 #define UINT32_MAX 4294967295U
115 #define INT8_C(C) C
116 #define UINT8_C(C) C
117 #define INT16_C(C) C
118 #define UINT16_C(C) C
119 #define INT32_C(C) C
120 #define UINT32_C(C) C ## U
121 #define INT64_C(C) ((int64_t) C ## LL)
122 #define UINT64_C(C) ((uint64_t) C ## ULL)
123 #endif /* _MSC_VER */
124
125 /* Set defaults for constants which we cannot find. */
126 #if !defined(INT64_MAX)
127 # define INT64_MAX 9223372036854775807LL
128 #endif
129 #if !defined(INT64_MIN)
130 # define INT64_MIN ((-INT64_MAX)-1)
131 #endif
132 #if !defined(UINT64_MAX)
133 # define UINT64_MAX 0xffffffffffffffffULL
134 #endif
135
136 #if __GNUC__ > 3
137 #define END_WITH_NULL __attribute__((sentinel))
138 #else
139 #define END_WITH_NULL
140 #endif
141
142 #ifndef HUGE_VALF
143 #define HUGE_VALF (float)HUGE_VAL
144 #endif
145
146 #endif /* SUPPORT_DATATYPES_H */
1414 #ifndef LLVM_SYSTEM_DISASSEMBLER_H
1515 #define LLVM_SYSTEM_DISASSEMBLER_H
1616
17 #include "llvm/Support/DataTypes.h"
17 #include "llvm/System/DataTypes.h"
1818 #include
1919
2020 namespace llvm {
1313 #ifndef LLVM_SYSTEM_MEMORY_H
1414 #define LLVM_SYSTEM_MEMORY_H
1515
16 #include "llvm/Support/DataTypes.h"
16 #include "llvm/System/DataTypes.h"
1717 #include
1818
1919 namespace llvm {
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #include "llvm/Support/DataTypes.h"
13 #include "llvm/System/DataTypes.h"
1414 #include
1515
1616 #ifndef LLVM_SYSTEM_TIMEVALUE_H
2020 #include
2121 #include
2222 #include
23 #include "llvm/Support/DataTypes.h"
23 #include "llvm/System/DataTypes.h"
2424
2525 namespace llvm {
2626 class raw_ostream;
2020 #define LLVM_TARGET_TARGETDATA_H
2121
2222 #include "llvm/Pass.h"
23 #include "llvm/Support/DataTypes.h"
23 #include "llvm/System/DataTypes.h"
2424 #include "llvm/Support/ErrorHandling.h"
2525 #include "llvm/ADT/SmallVector.h"
2626 #include
1717 #define LLVM_TARGET_TARGETJITINFO_H
1818
1919 #include
20 #include "llvm/Support/DataTypes.h"
20 #include "llvm/System/DataTypes.h"
2121
2222 namespace llvm {
2323 class Function;
1313 #include "llvm/AbstractTypeUser.h"
1414 #include "llvm/LLVMContext.h"
1515 #include "llvm/Support/Casting.h"
16 #include "llvm/Support/DataTypes.h"
16 #include "llvm/System/DataTypes.h"
1717 #include "llvm/System/Atomic.h"
1818 #include "llvm/ADT/GraphTraits.h"
1919 #include
1515
1616 #include "llvm/Value.h"
1717 #include "llvm/ADT/StringMap.h"
18 #include "llvm/Support/DataTypes.h"
18 #include "llvm/System/DataTypes.h"
1919
2020 namespace llvm {
2121 template
3232 #ifndef LLVM_C_CORE_H
3333 #define LLVM_C_CORE_H
3434
35 #include "llvm/Support/DataTypes.h"
35 #include "llvm/System/DataTypes.h"
3636
3737 #ifdef __cplusplus
3838
2121
2222 #include "llvm/CodeGen/BinaryObject.h"
2323 #include "llvm/CodeGen/MachineRelocation.h"
24 #include "llvm/Support/DataTypes.h"
24 #include "llvm/System/DataTypes.h"
2525
2626 namespace llvm {
2727 class GlobalValue;
1818 #include "llvm/ExecutionEngine/GenericValue.h"
1919 #include "llvm/Target/TargetData.h"
2020 #include "llvm/Support/CallSite.h"
21 #include "llvm/Support/DataTypes.h"
21 #include "llvm/System/DataTypes.h"
2222 #include "llvm/Support/ErrorHandling.h"
2323 #include "llvm/Support/InstVisitor.h"
2424 #include "llvm/Support/raw_ostream.h"
1515 #define LLVM_EXECUTION_ENGINE_JIT_DEBUGREGISTERER_H
1616
1717 #include "llvm/ADT/DenseMap.h"
18 #include "llvm/Support/DataTypes.h"
18 #include "llvm/System/DataTypes.h"
1919 #include
2020
2121 // This must be kept in sync with gdb/gdb/jit.h .
1212 //===----------------------------------------------------------------------===//
1313
1414 #include "llvm/MC/MCAsmInfo.h"
15 #include "llvm/Support/DataTypes.h"
15 #include "llvm/System/DataTypes.h"
1616 #include
1717 #include
1818 using namespace llvm;
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "llvm/Support/Allocator.h"
14 #include "llvm/Support/DataTypes.h"
14 #include "llvm/System/DataTypes.h"
1515 #include "llvm/Support/Recycler.h"
1616 #include "llvm/Support/raw_ostream.h"
1717 #include "llvm/System/Memory.h"
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "Unix.h"
14 #include "llvm/Support/DataTypes.h"
14 #include "llvm/System/DataTypes.h"
1515 #include "llvm/System/Process.h"
1616
1717 #ifdef HAVE_SYS_MMAN_H
1212 //===----------------------------------------------------------------------===//
1313
1414 #include "Win32.h"
15 #include "llvm/Support/DataTypes.h"
15 #include "llvm/System/DataTypes.h"
1616 #include "llvm/System/Process.h"
1717
1818 namespace llvm {
1414 #ifndef LLVM_TARGET_IBMCELLSPU_H
1515 #define LLVM_TARGET_IBMCELLSPU_H
1616
17 #include "llvm/Support/DataTypes.h"
17 #include "llvm/System/DataTypes.h"
1818 #include "llvm/Target/TargetMachine.h"
1919
2020 namespace llvm {
1010 #include
1111
1212 /* LLVM Header File
13 #include "llvm/Support/DataTypes.h"
13 #include "llvm/System/DataTypes.h"
1414 */
1515
1616 /* Header file global to this project */
1616 #include "llvm/ADT/StringRef.h"
1717 #include "llvm/MC/MCAsmLexer.h"
1818 #include "llvm/MC/MCAsmInfo.h"
19 #include "llvm/Support/DataTypes.h"
19 #include "llvm/System/DataTypes.h"
2020 #include
2121 #include
2222
88
99 #include "gtest/gtest.h"
1010 #include "llvm/ADT/StringMap.h"
11 #include "llvm/Support/DataTypes.h"
11 #include "llvm/System/DataTypes.h"
1212 using namespace llvm;
1313
1414 namespace {
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "Record.h"
14 #include "llvm/Support/DataTypes.h"
14 #include "llvm/System/DataTypes.h"
1515 #include "llvm/Support/Format.h"
1616 #include "llvm/ADT/StringExtras.h"
1717
1515 #define RECORD_H
1616
1717 #include "llvm/Support/SourceMgr.h"
18 #include "llvm/Support/DataTypes.h"
18 #include "llvm/System/DataTypes.h"
1919 #include "llvm/Support/raw_ostream.h"
2020 #include
2121
1313 #ifndef TGLEXER_H
1414 #define TGLEXER_H
1515
16 #include "llvm/Support/DataTypes.h"
16 #include "llvm/System/DataTypes.h"
1717 #include
1818 #include
1919 #include