Coverage Report

Created: 2019-07-24 05:18

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/tools/clang/include/clang/Basic/X86Target.def
Line
Count
Source (jump to first uncovered line)
1
0
//===--- X86Target.def - X86 Feature/Processor Database ---------*- C++ -*-===//
2
0
//
3
0
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
0
// See https://llvm.org/LICENSE.txt for license information.
5
0
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
0
//
7
0
//===----------------------------------------------------------------------===//
8
0
//
9
0
// This file defines the X86-specific Features and Processors, as used by
10
0
// the X86 Targets.
11
0
//
12
0
//===----------------------------------------------------------------------===//
13
0
14
0
#ifndef PROC_WITH_FEAT
15
0
#define PROC_WITH_FEAT(ENUM, STRING, IS64BIT, KEYFEATURE)                      \
16
2.41M
  PROC(ENUM, STRING, IS64BIT)
17
0
#endif
18
0
19
#ifndef PROC
20
#define PROC(ENUM, STRING, IS64BIT)
21
#endif
22
23
#ifndef PROC_ALIAS
24
#define PROC_ALIAS(ENUM, ALIAS)
25
#endif
26
27
#ifndef FEATURE
28
#define FEATURE(ENUM)
29
#endif
30
31
#ifndef CPU_SPECIFIC
32
#define CPU_SPECIFIC(NAME, MANGLING, FEATURES)
33
#endif
34
35
#ifndef CPU_SPECIFIC_ALIAS
36
#define CPU_SPECIFIC_ALIAS(NEW_NAME, NAME)
37
#endif
38
39
0
#define PROC_64_BIT true
40
0
#define PROC_32_BIT false
41
0
42
0
/// \name i386
43
0
/// i386-generation processors.
44
0
//@{
45
96.6k
PROC(i386, "i386", PROC_32_BIT)
46
0
//@}
47
0
48
0
/// \name i486
49
0
/// i486-generation processors.
50
0
//@{
51
96.6k
PROC(i486, "i486", PROC_32_BIT)
52
96.6k
PROC(WinChipC6, "winchip-c6", PROC_32_BIT)
53
96.6k
PROC(WinChip2, "winchip2", PROC_32_BIT)
54
96.6k
PROC(C3, "c3", PROC_32_BIT)
55
0
//@}
56
0
57
0
/// \name i586
58
0
/// i586-generation processors, P5 microarchitecture based.
59
0
//@{
60
96.6k
PROC(i586, "i586", PROC_32_BIT)
61
96.8k
PROC(Pentium, "pentium", PROC_32_BIT)
62
96.6k
PROC(PentiumMMX, "pentium-mmx", PROC_32_BIT)
63
0
//@}
64
0
65
0
/// \name i686
66
0
/// i686-generation processors, P6 / Pentium M microarchitecture based.
67
0
//@{
68
96.6k
PROC(PentiumPro, "pentiumpro", PROC_32_BIT)
69
96.6k
PROC(i686, "i686", PROC_32_BIT)
70
96.6k
PROC(Pentium2, "pentium2", PROC_32_BIT)
71
96.7k
PROC(Pentium3, "pentium3", PROC_32_BIT)
72
96.6k
PROC_ALIAS(Pentium3, "pentium3m")
73
96.6k
PROC(PentiumM, "pentium-m", PROC_32_BIT)
74
96.6k
PROC(C3_2, "c3-2", PROC_32_BIT)
75
0
76
0
/// This enumerator is a bit odd, as GCC no longer accepts -march=yonah.
77
0
/// Clang however has some logic to support this.
78
0
// FIXME: Warn, deprecate, and potentially remove this.
79
97.0k
PROC(Yonah, "yonah", PROC_32_BIT)
80
0
//@}
81
0
82
0
/// \name Netburst
83
0
/// Netburst microarchitecture based processors.
84
0
//@{
85
98.6k
PROC(Pentium4, "pentium4", PROC_32_BIT)
86
96.6k
PROC_ALIAS(Pentium4, "pentium4m")
87
0
88
96.6k
PROC(Prescott, "prescott", PROC_32_BIT)
89
96.6k
PROC(Nocona, "nocona", PROC_64_BIT)
90
0
//@}
91
0
92
0
/// \name Core
93
0
/// Core microarchitecture based processors.
94
0
//@{
95
97.9k
PROC_WITH_FEAT(Core2, "core2", PROC_64_BIT, FEATURE_SSSE3)
96
0
97
0
/// This enumerator, like Yonah, is a bit odd. It is another
98
0
/// codename which GCC no longer accepts as an option to -march, but Clang
99
0
/// has some logic for recognizing it.
100
0
// FIXME: Warn, deprecate, and potentially remove this.
101
105k
PROC(Penryn, "penryn", PROC_64_BIT)
102
0
//@}
103
0
104
0
/// \name Atom
105
0
/// Atom processors
106
0
//@{
107
96.7k
PROC_WITH_FEAT(Bonnell, "bonnell", PROC_64_BIT, FEATURE_SSSE3)
108
96.6k
PROC_ALIAS(Bonnell, "atom")
109
0
110
96.7k
PROC_WITH_FEAT(Silvermont, "silvermont", PROC_64_BIT, FEATURE_SSE4_2)
111
96.6k
PROC_ALIAS(Silvermont, "slm")
112
0
113
96.6k
PROC(Goldmont, "goldmont", PROC_64_BIT)
114
96.6k
PROC(GoldmontPlus, "goldmont-plus", PROC_64_BIT)
115
0
116
96.6k
PROC(Tremont, "tremont", PROC_64_BIT)
117
0
//@}
118
0
119
0
/// \name Nehalem
120
0
/// Nehalem microarchitecture based processors.
121
96.7k
PROC_WITH_FEAT(Nehalem, "nehalem", PROC_64_BIT, FEATURE_SSE4_2)
122
96.6k
PROC_ALIAS(Nehalem, "corei7")
123
0
124
0
/// \name Westmere
125
0
/// Westmere microarchitecture based processors.
126
96.6k
PROC_WITH_FEAT(Westmere, "westmere", PROC_64_BIT, FEATURE_PCLMUL)
127
0
128
0
/// \name Sandy Bridge
129
0
/// Sandy Bridge microarchitecture based processors.
130
96.8k
PROC_WITH_FEAT(SandyBridge, "sandybridge", PROC_64_BIT, FEATURE_AVX)
131
96.6k
PROC_ALIAS(SandyBridge, "corei7-avx")
132
0
133
0
/// \name Ivy Bridge
134
0
/// Ivy Bridge microarchitecture based processors.
135
97.0k
PROC_WITH_FEAT(IvyBridge, "ivybridge", PROC_64_BIT, FEATURE_AVX)
136
96.6k
PROC_ALIAS(IvyBridge, "core-avx-i")
137
0
138
0
/// \name Haswell
139
0
/// Haswell microarchitecture based processors.
140
97.3k
PROC_WITH_FEAT(Haswell, "haswell", PROC_64_BIT, FEATURE_AVX2)
141
96.6k
PROC_ALIAS(Haswell, "core-avx2")
142
0
143
0
/// \name Broadwell
144
0
/// Broadwell microarchitecture based processors.
145
96.6k
PROC_WITH_FEAT(Broadwell, "broadwell", PROC_64_BIT, FEATURE_AVX2)
146
0
147
0
/// \name Skylake Client
148
0
/// Skylake client microarchitecture based processors.
149
96.6k
PROC_WITH_FEAT(SkylakeClient, "skylake", PROC_64_BIT, FEATURE_AVX2)
150
0
151
0
/// \name Skylake Server
152
0
/// Skylake server microarchitecture based processors.
153
96.7k
PROC_WITH_FEAT(SkylakeServer, "skylake-avx512", PROC_64_BIT, FEATURE_AVX512F)
154
96.6k
PROC_ALIAS(SkylakeServer, "skx")
155
0
156
0
/// \name Cascadelake Server
157
0
/// Cascadelake Server microarchitecture based processors.
158
96.6k
PROC_WITH_FEAT(Cascadelake, "cascadelake", PROC_64_BIT, FEATURE_AVX512VNNI)
159
0
160
0
/// \name Cooperlake Server
161
0
/// Cooperlake Server microarchitecture based processors.
162
96.6k
PROC_WITH_FEAT(Cooperlake, "cooperlake", PROC_64_BIT, FEATURE_AVX512BF16)
163
0
164
0
/// \name Cannonlake Client
165
0
/// Cannonlake client microarchitecture based processors.
166
96.6k
PROC_WITH_FEAT(Cannonlake, "cannonlake", PROC_64_BIT, FEATURE_AVX512VBMI)
167
0
168
0
/// \name Icelake Client
169
0
/// Icelake client microarchitecture based processors.
170
96.6k
PROC(IcelakeClient, "icelake-client", PROC_64_BIT)
171
0
172
0
/// \name Icelake Server
173
0
/// Icelake server microarchitecture based processors.
174
96.6k
PROC(IcelakeServer, "icelake-server", PROC_64_BIT)
175
0
176
0
/// \name Knights Landing
177
0
/// Knights Landing processor.
178
96.6k
PROC_WITH_FEAT(KNL, "knl", PROC_64_BIT, FEATURE_AVX512F)
179
0
180
0
/// \name Knights Mill
181
0
/// Knights Mill processor.
182
96.6k
PROC_WITH_FEAT(KNM, "knm", PROC_64_BIT, FEATURE_AVX5124FMAPS)
183
0
184
0
/// \name Lakemont
185
0
/// Lakemont microarchitecture based processors.
186
96.6k
PROC(Lakemont, "lakemont", PROC_32_BIT)
187
0
188
0
/// \name K6
189
0
/// K6 architecture processors.
190
0
//@{
191
96.6k
PROC(K6, "k6", PROC_32_BIT)
192
96.6k
PROC(K6_2, "k6-2", PROC_32_BIT)
193
96.6k
PROC(K6_3, "k6-3", PROC_32_BIT)
194
0
//@}
195
0
196
0
/// \name K7
197
0
/// K7 architecture processors.
198
0
//@{
199
96.7k
PROC(Athlon, "athlon", PROC_32_BIT)
200
96.6k
PROC_ALIAS(Athlon, "athlon-tbird")
201
0
202
96.7k
PROC(AthlonXP, "athlon-xp", PROC_32_BIT)
203
96.6k
PROC_ALIAS(AthlonXP, "athlon-mp")
204
96.6k
PROC_ALIAS(AthlonXP, "athlon-4")
205
0
//@}
206
0
207
0
/// \name K8
208
0
/// K8 architecture processors.
209
0
//@{
210
96.7k
PROC(K8, "k8", PROC_64_BIT)
211
96.6k
PROC_ALIAS(K8, "athlon64")
212
96.6k
PROC_ALIAS(K8, "athlon-fx")
213
96.6k
PROC_ALIAS(K8, "opteron")
214
0
215
96.7k
PROC(K8SSE3, "k8-sse3", PROC_64_BIT)
216
96.6k
PROC_ALIAS(K8SSE3, "athlon64-sse3")
217
96.6k
PROC_ALIAS(K8SSE3, "opteron-sse3")
218
0
219
96.7k
PROC_WITH_FEAT(AMDFAM10, "amdfam10", PROC_64_BIT, FEATURE_SSE4_A)
220
96.6k
PROC_ALIAS(AMDFAM10, "barcelona")
221
0
//@}
222
0
223
0
/// \name Bobcat
224
0
/// Bobcat architecture processors.
225
0
//@{
226
96.6k
PROC_WITH_FEAT(BTVER1, "btver1", PROC_64_BIT, FEATURE_SSE4_A)
227
96.6k
PROC_WITH_FEAT(BTVER2, "btver2", PROC_64_BIT, FEATURE_BMI)
228
0
//@}
229
0
230
0
/// \name Bulldozer
231
0
/// Bulldozer architecture processors.
232
0
//@{
233
96.6k
PROC_WITH_FEAT(BDVER1, "bdver1", PROC_64_BIT, FEATURE_XOP)
234
96.6k
PROC_WITH_FEAT(BDVER2, "bdver2", PROC_64_BIT, FEATURE_FMA)
235
96.6k
PROC_WITH_FEAT(BDVER3, "bdver3", PROC_64_BIT, FEATURE_FMA)
236
96.6k
PROC_WITH_FEAT(BDVER4, "bdver4", PROC_64_BIT, FEATURE_AVX2)
237
0
//@}
238
0
239
0
/// \name zen
240
0
/// Zen architecture processors.
241
0
//@{
242
96.6k
PROC_WITH_FEAT(ZNVER1, "znver1", PROC_64_BIT, FEATURE_AVX2)
243
96.6k
PROC_WITH_FEAT(ZNVER2, "znver2", PROC_64_BIT, FEATURE_AVX2)
244
0
//@}
245
0
246
0
/// This specification is deprecated and will be removed in the future.
247
0
/// Users should prefer K8.
248
0
// FIXME: Warn on this when the CPU is set to it.
249
0
//@{
250
96.8k
PROC(x86_64, "x86-64", PROC_64_BIT)
251
0
//@}
252
0
253
0
/// \name Geode
254
0
/// Geode processors.
255
0
//@{
256
96.6k
PROC(Geode, "geode", PROC_32_BIT)
257
0
//@}
258
0
259
0
// List of CPU Supports features in order.  These need to remain in the order
260
0
// required by attribute 'target' checking.  Note that not all are supported/
261
0
// prioritized by GCC, so synchronization with GCC's implementation may require
262
0
// changing some existing values.
263
0
FEATURE(FEATURE_CMOV)
264
0
FEATURE(FEATURE_MMX)
265
0
FEATURE(FEATURE_SSE)
266
0
FEATURE(FEATURE_SSE2)
267
0
FEATURE(FEATURE_SSE3)
268
0
FEATURE(FEATURE_SSSE3)
269
0
FEATURE(FEATURE_SSE4_A)
270
0
FEATURE(FEATURE_SSE4_1)
271
117
FEATURE(FEATURE_SSE4_2)
272
117
FEATURE0
(FEATURE_POPCNT)
273
0
FEATURE(FEATURE_AES)
274
0
FEATURE(FEATURE_PCLMUL)
275
172
FEATURE(FEATURE_AVX)
276
172
FEATURE0
(FEATURE_BMI)
277
12
FEATURE(FEATURE_FMA4)
278
12
FEATURE0
(FEATURE_XOP)
279
0
FEATURE(FEATURE_FMA)
280
0
FEATURE(FEATURE_BMI2)
281
0
FEATURE(FEATURE_AVX2)
282
0
FEATURE(FEATURE_AVX512F)
283
0
FEATURE(FEATURE_AVX512VL)
284
0
FEATURE(FEATURE_AVX512BW)
285
0
FEATURE(FEATURE_AVX512DQ)
286
0
FEATURE(FEATURE_AVX512CD)
287
0
FEATURE(FEATURE_AVX512ER)
288
0
FEATURE(FEATURE_AVX512PF)
289
0
FEATURE(FEATURE_AVX512VBMI)
290
0
FEATURE(FEATURE_AVX512IFMA)
291
0
FEATURE(FEATURE_AVX5124VNNIW)
292
0
FEATURE(FEATURE_AVX5124FMAPS)
293
0
FEATURE(FEATURE_AVX512VPOPCNTDQ)
294
0
FEATURE(FEATURE_AVX512VBMI2)
295
0
FEATURE(FEATURE_GFNI)
296
0
FEATURE(FEATURE_VPCLMULQDQ)
297
0
FEATURE(FEATURE_AVX512VNNI)
298
0
FEATURE(FEATURE_AVX512BITALG)
299
0
FEATURE(FEATURE_AVX512BF16)
300
0
301
0
302
0
// FIXME: When commented out features are supported in LLVM, enable them here.
303
512
CPU_SPECIFIC("generic", 'A', "")
304
512
CPU_SPECIFIC("pentium", 'B', "")
305
512
CPU_SPECIFIC("pentium_pro", 'C', "+cmov")
306
512
CPU_SPECIFIC("pentium_mmx", 'D', "+mmx")
307
512
CPU_SPECIFIC("pentium_ii", 'E', "+cmov,+mmx")
308
512
CPU_SPECIFIC("pentium_iii", 'H', "+cmov,+mmx,+sse")
309
512
CPU_SPECIFIC_ALIAS("pentium_iii_no_xmm_regs", "pentium_iii")
310
512
CPU_SPECIFIC("pentium_4", 'J', "+cmov,+mmx,+sse,+sse2")
311
512
CPU_SPECIFIC("pentium_m", 'K', "+cmov,+mmx,+sse,+sse2")
312
512
CPU_SPECIFIC("pentium_4_sse3", 'L', "+cmov,+mmx,+sse,+sse2,+sse3")
313
512
CPU_SPECIFIC("core_2_duo_ssse3", 'M', "+cmov,+mmx,+sse,+sse2,+sse3,+ssse3")
314
512
CPU_SPECIFIC("core_2_duo_sse4_1", 'N', "+cmov,+mmx,+sse,+sse2,+sse3,+ssse3,+sse4.1")
315
512
CPU_SPECIFIC("atom", 'O', "+cmov,+mmx,+sse,+sse2,+sse3,+ssse3,+movbe")
316
512
CPU_SPECIFIC("atom_sse4_2", 'c', "+cmov,+mmx,+sse,+sse2,+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt")
317
512
CPU_SPECIFIC("core_i7_sse4_2", 'P', "+cmov,+mmx,+sse,+sse2,+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt")
318
512
CPU_SPECIFIC("core_aes_pclmulqdq", 'Q', "+cmov,+mmx,+sse,+sse2,+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt")
319
512
CPU_SPECIFIC("atom_sse4_2_movbe", 'd', "+cmov,+mmx,+sse,+sse2,+sse3,+ssse3,+sse4.1,+sse4.2,+movbe,+popcnt")
320
512
CPU_SPECIFIC("goldmont", 'i', "+cmov,+mmx,+sse,+sse2,+sse3,+ssse3,+sse4.1,+sse4.2,+movbe,+popcnt")
321
512
CPU_SPECIFIC("sandybridge", 'R', "+cmov,+mmx,+sse,+sse2,+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt,+avx")
322
512
CPU_SPECIFIC_ALIAS("core_2nd_gen_avx", "sandybridge")
323
512
CPU_SPECIFIC("ivybridge", 'S', "+cmov,+mmx,+sse,+sse2,+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt,+f16c,+avx")
324
512
CPU_SPECIFIC_ALIAS("core_3rd_gen_avx", "ivybridge")
325
512
CPU_SPECIFIC("haswell", 'V', "+cmov,+mmx,+sse,+sse2,+sse3,+ssse3,+sse4.1,+sse4.2,+movbe,+popcnt,+f16c,+avx,+fma,+bmi,+lzcnt,+avx2")
326
512
CPU_SPECIFIC_ALIAS("core_4th_gen_avx", "haswell")
327
512
CPU_SPECIFIC("core_4th_gen_avx_tsx", 'W', "+cmov,+mmx,+sse,+sse2,+sse3,+ssse3,+sse4.1,+sse4.2,+movbe,+popcnt,+f16c,+avx,+fma,+bmi,+lzcnt,+avx2")
328
512
CPU_SPECIFIC("broadwell", 'X', "+cmov,+mmx,+sse,+sse2,+sse3,+ssse3,+sse4.1,+sse4.2,+movbe,+popcnt,+f16c,+avx,+fma,+bmi,+lzcnt,+avx2,+adx")
329
512
CPU_SPECIFIC_ALIAS("core_5th_gen_avx", "broadwell")
330
512
CPU_SPECIFIC("core_5th_gen_avx_tsx", 'Y', "+cmov,+mmx,+sse,+sse2,+sse3,+ssse3,+sse4.1,+sse4.2,+movbe,+popcnt,+f16c,+avx,+fma,+bmi,+lzcnt,+avx2,+adx")
331
512
CPU_SPECIFIC("knl", 'Z', "+cmov,+mmx,+sse,+sse2,+sse3,+ssse3,+sse4.1,+sse4.2,+movbe,+popcnt,+f16c,+avx,+fma,+bmi,+lzcnt,+avx2,+avx512f,+adx,+avx512er,+avx512pf,+avx512cd")
332
512
CPU_SPECIFIC_ALIAS("mic_avx512", "knl")
333
512
CPU_SPECIFIC("skylake", 'b', "+cmov,+mmx,+sse,+sse2,+sse3,+ssse3,+sse4.1,+sse4.2,+movbe,+popcnt,+f16c,+avx,+fma,+bmi,+lzcnt,+avx2,+adx,+mpx")
334
512
CPU_SPECIFIC( "skylake_avx512", 'a', "+cmov,+mmx,+sse,+sse2,+sse3,+ssse3,+sse4.1,+sse4.2,+movbe,+popcnt,+f16c,+avx,+fma,+bmi,+lzcnt,+avx2,+avx512dq,+avx512f,+adx,+avx512cd,+avx512bw,+avx512vl,+clwb")
335
512
CPU_SPECIFIC("cannonlake", 'e', "+cmov,+mmx,+sse,+sse2,+sse3,+ssse3,+sse4.1,+sse4.2,+movbe,+popcnt,+f16c,+avx,+fma,+bmi,+lzcnt,+avx2,+avx512dq,+avx512f,+adx,+avx512ifma,+avx512cd,+avx512bw,+avx512vl,+avx512vbmi")
336
512
CPU_SPECIFIC("knm", 'j', "+cmov,+mmx,+sse,+sse2,+sse3,+ssse3,+sse4.1,+sse4.2,+movbe,+popcnt,+f16c,+avx,+fma,+bmi,+lzcnt,+avx2,+avx512f,+adx,+avx512er,+avx512pf,+avx512cd,+avx5124fmaps,+avx5124vnniw,+avx512vpopcntdq")
337
0
338
0
#undef CPU_SPECIFIC_ALIAS
339
0
#undef CPU_SPECIFIC
340
0
#undef PROC_64_BIT
341
0
#undef PROC_32_BIT
342
0
#undef FEATURE
343
0
#undef PROC
344
0
#undef PROC_ALIAS
345
0
#undef PROC_WITH_FEAT