1 //===--- X86Target.def - X86 Feature/Processor Database ---------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file defines the X86-specific Features and Processors, as used by
13 //===----------------------------------------------------------------------===//
17 #define PROC(ENUM, STRING, IS64BIT)
21 #define PROC_ALIAS(ENUM, ALIAS)
24 #define PROC_64_BIT true
25 #define PROC_32_BIT false
28 /// i386-generation processors.
30 PROC(i386, "i386", PROC_32_BIT)
34 /// i486-generation processors.
36 PROC(i486, "i486", PROC_32_BIT)
37 PROC(WinChipC6, "winchip-c6", PROC_32_BIT)
38 PROC(WinChip2, "winchip2", PROC_32_BIT)
39 PROC(C3, "c3", PROC_32_BIT)
43 /// i586-generation processors, P5 microarchitecture based.
45 PROC(i586, "i586", PROC_32_BIT)
46 PROC(Pentium, "pentium", PROC_32_BIT)
47 PROC(PentiumMMX, "pentium-mmx", PROC_32_BIT)
51 /// i686-generation processors, P6 / Pentium M microarchitecture based.
53 PROC(PentiumPro, "pentiumpro", PROC_32_BIT)
54 PROC_ALIAS(PentiumPro, "i686")
55 PROC(Pentium2, "pentium2", PROC_32_BIT)
56 PROC(Pentium3, "pentium3", PROC_32_BIT)
57 PROC_ALIAS(Pentium3, "pentium3m")
58 PROC(PentiumM, "pentium-m", PROC_32_BIT)
59 PROC(C3_2, "c3-2", PROC_32_BIT)
61 /// This enumerator is a bit odd, as GCC no longer accepts -march=yonah.
62 /// Clang however has some logic to support this.
63 // FIXME: Warn, deprecate, and potentially remove this.
64 PROC(Yonah, "yonah", PROC_32_BIT)
68 /// Netburst microarchitecture based processors.
70 PROC(Pentium4, "pentium4", PROC_32_BIT)
71 PROC_ALIAS(Pentium4, "pentium4m")
73 PROC(Prescott, "prescott", PROC_32_BIT)
74 PROC(Nocona, "nocona", PROC_64_BIT)
78 /// Core microarchitecture based processors.
80 PROC(Core2, "core2", PROC_64_BIT)
82 /// This enumerator, like Yonah, is a bit odd. It is another
83 /// codename which GCC no longer accepts as an option to -march, but Clang
84 /// has some logic for recognizing it.
85 // FIXME: Warn, deprecate, and potentially remove this.
86 PROC(Penryn, "penryn", PROC_64_BIT)
92 PROC(Bonnell, "bonnell", PROC_64_BIT)
93 PROC_ALIAS(Bonnell, "atom")
95 PROC(Silvermont, "silvermont", PROC_64_BIT)
96 PROC_ALIAS(Silvermont, "slm")
98 PROC(Goldmont, "goldmont", PROC_64_BIT)
102 /// Nehalem microarchitecture based processors.
103 PROC(Nehalem, "nehalem", PROC_64_BIT)
104 PROC_ALIAS(Nehalem, "corei7")
107 /// Westmere microarchitecture based processors.
108 PROC(Westmere, "westmere", PROC_64_BIT)
110 /// \name Sandy Bridge
111 /// Sandy Bridge microarchitecture based processors.
112 PROC(SandyBridge, "sandybridge", PROC_64_BIT)
113 PROC_ALIAS(SandyBridge, "corei7-avx")
116 /// Ivy Bridge microarchitecture based processors.
117 PROC(IvyBridge, "ivybridge", PROC_64_BIT)
118 PROC_ALIAS(IvyBridge, "core-avx-i")
121 /// Haswell microarchitecture based processors.
122 PROC(Haswell, "haswell", PROC_64_BIT)
123 PROC_ALIAS(Haswell, "core-avx2")
126 /// Broadwell microarchitecture based processors.
127 PROC(Broadwell, "broadwell", PROC_64_BIT)
129 /// \name Skylake Client
130 /// Skylake client microarchitecture based processors.
131 PROC(SkylakeClient, "skylake", PROC_64_BIT)
133 /// \name Skylake Server
134 /// Skylake server microarchitecture based processors.
135 PROC(SkylakeServer, "skylake-avx512", PROC_64_BIT)
136 PROC_ALIAS(SkylakeServer, "skx")
138 /// \name Cannonlake Client
139 /// Cannonlake client microarchitecture based processors.
140 PROC(Cannonlake, "cannonlake", PROC_64_BIT)
142 /// \name Icelake Client
143 /// Icelake client microarchitecture based processors.
144 PROC(Icelake, "icelake", PROC_64_BIT)
146 /// \name Knights Landing
147 /// Knights Landing processor.
148 PROC(KNL, "knl", PROC_64_BIT)
150 /// \name Knights Mill
151 /// Knights Mill processor.
152 PROC(KNM, "knm", PROC_64_BIT)
155 /// Lakemont microarchitecture based processors.
156 PROC(Lakemont, "lakemont", PROC_32_BIT)
159 /// K6 architecture processors.
161 PROC(K6, "k6", PROC_32_BIT)
162 PROC(K6_2, "k6-2", PROC_32_BIT)
163 PROC(K6_3, "k6-3", PROC_32_BIT)
167 /// K7 architecture processors.
169 PROC(Athlon, "athlon", PROC_32_BIT)
170 PROC_ALIAS(Athlon, "athlon-tbird")
172 PROC(AthlonXP, "athlon-xp", PROC_32_BIT)
173 PROC_ALIAS(AthlonXP, "athlon-mp")
174 PROC_ALIAS(AthlonXP, "athlon-4")
178 /// K8 architecture processors.
180 PROC(K8, "k8", PROC_64_BIT)
181 PROC_ALIAS(K8, "athlon64")
182 PROC_ALIAS(K8, "athlon-fx")
183 PROC_ALIAS(K8, "opteron")
185 PROC(K8SSE3, "k8-sse3", PROC_64_BIT)
186 PROC_ALIAS(K8SSE3, "athlon64-sse3")
187 PROC_ALIAS(K8SSE3, "opteron-sse3")
189 PROC(AMDFAM10, "amdfam10", PROC_64_BIT)
190 PROC_ALIAS(AMDFAM10, "barcelona")
194 /// Bobcat architecture processors.
196 PROC(BTVER1, "btver1", PROC_64_BIT)
197 PROC(BTVER2, "btver2", PROC_64_BIT)
201 /// Bulldozer architecture processors.
203 PROC(BDVER1, "bdver1", PROC_64_BIT)
204 PROC(BDVER2, "bdver2", PROC_64_BIT)
205 PROC(BDVER3, "bdver3", PROC_64_BIT)
206 PROC(BDVER4, "bdver4", PROC_64_BIT)
210 /// Zen architecture processors.
212 PROC(ZNVER1, "znver1", PROC_64_BIT)
215 /// This specification is deprecated and will be removed in the future.
216 /// Users should prefer K8.
217 // FIXME: Warn on this when the CPU is set to it.
219 PROC(x86_64, "x86-64", PROC_64_BIT)
223 /// Geode processors.
225 PROC(Geode, "geode", PROC_32_BIT)