[ARM] Rejig MVE load store tests. NFC
[llvm-core.git] / lib / AsmParser / LLToken.h
blob0e9ba4db474276954104155add72b391d918f334
1 //===- LLToken.h - Token Codes for LLVM Assembly Files ----------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file defines the enums for the .ll lexer.
11 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_LIB_ASMPARSER_LLTOKEN_H
14 #define LLVM_LIB_ASMPARSER_LLTOKEN_H
16 namespace llvm {
17 namespace lltok {
18 enum Kind {
19 // Markers
20 Eof,
21 Error,
23 // Tokens with no info.
24 dotdotdot, // ...
25 equal,
26 comma, // = ,
27 star, // *
28 lsquare,
29 rsquare, // [ ]
30 lbrace,
31 rbrace, // { }
32 less,
33 greater, // < >
34 lparen,
35 rparen, // ( )
36 exclaim, // !
37 bar, // |
38 colon, // :
40 kw_vscale,
41 kw_x,
42 kw_true,
43 kw_false,
44 kw_declare,
45 kw_define,
46 kw_global,
47 kw_constant,
49 kw_dso_local,
50 kw_dso_preemptable,
52 kw_private,
53 kw_internal,
54 kw_linkonce,
55 kw_linkonce_odr,
56 kw_weak, // Used as a linkage, and a modifier for "cmpxchg".
57 kw_weak_odr,
58 kw_appending,
59 kw_dllimport,
60 kw_dllexport,
61 kw_common,
62 kw_available_externally,
63 kw_default,
64 kw_hidden,
65 kw_protected,
66 kw_unnamed_addr,
67 kw_local_unnamed_addr,
68 kw_externally_initialized,
69 kw_extern_weak,
70 kw_external,
71 kw_thread_local,
72 kw_localdynamic,
73 kw_initialexec,
74 kw_localexec,
75 kw_zeroinitializer,
76 kw_undef,
77 kw_null,
78 kw_none,
79 kw_to,
80 kw_caller,
81 kw_within,
82 kw_from,
83 kw_tail,
84 kw_musttail,
85 kw_notail,
86 kw_target,
87 kw_triple,
88 kw_source_filename,
89 kw_unwind,
90 kw_deplibs, // FIXME: Remove in 4.0
91 kw_datalayout,
92 kw_volatile,
93 kw_atomic,
94 kw_unordered,
95 kw_monotonic,
96 kw_acquire,
97 kw_release,
98 kw_acq_rel,
99 kw_seq_cst,
100 kw_syncscope,
101 kw_nnan,
102 kw_ninf,
103 kw_nsz,
104 kw_arcp,
105 kw_contract,
106 kw_reassoc,
107 kw_afn,
108 kw_fast,
109 kw_nuw,
110 kw_nsw,
111 kw_exact,
112 kw_inbounds,
113 kw_inrange,
114 kw_align,
115 kw_addrspace,
116 kw_section,
117 kw_partition,
118 kw_alias,
119 kw_ifunc,
120 kw_module,
121 kw_asm,
122 kw_sideeffect,
123 kw_alignstack,
124 kw_inteldialect,
125 kw_gc,
126 kw_prefix,
127 kw_prologue,
128 kw_c,
130 kw_cc,
131 kw_ccc,
132 kw_fastcc,
133 kw_coldcc,
134 kw_intel_ocl_bicc,
135 kw_x86_stdcallcc,
136 kw_x86_fastcallcc,
137 kw_x86_thiscallcc,
138 kw_x86_vectorcallcc,
139 kw_x86_regcallcc,
140 kw_arm_apcscc,
141 kw_arm_aapcscc,
142 kw_arm_aapcs_vfpcc,
143 kw_aarch64_vector_pcs,
144 kw_msp430_intrcc,
145 kw_avr_intrcc,
146 kw_avr_signalcc,
147 kw_ptx_kernel,
148 kw_ptx_device,
149 kw_spir_kernel,
150 kw_spir_func,
151 kw_x86_64_sysvcc,
152 kw_win64cc,
153 kw_webkit_jscc,
154 kw_anyregcc,
155 kw_swiftcc,
156 kw_preserve_mostcc,
157 kw_preserve_allcc,
158 kw_ghccc,
159 kw_x86_intrcc,
160 kw_hhvmcc,
161 kw_hhvm_ccc,
162 kw_cxx_fast_tlscc,
163 kw_amdgpu_vs,
164 kw_amdgpu_ls,
165 kw_amdgpu_hs,
166 kw_amdgpu_es,
167 kw_amdgpu_gs,
168 kw_amdgpu_ps,
169 kw_amdgpu_cs,
170 kw_amdgpu_kernel,
172 // Attributes:
173 kw_attributes,
174 kw_allocsize,
175 kw_alwaysinline,
176 kw_argmemonly,
177 kw_sanitize_address,
178 kw_sanitize_hwaddress,
179 kw_sanitize_memtag,
180 kw_builtin,
181 kw_byval,
182 kw_inalloca,
183 kw_cold,
184 kw_convergent,
185 kw_dereferenceable,
186 kw_dereferenceable_or_null,
187 kw_inaccessiblememonly,
188 kw_inaccessiblemem_or_argmemonly,
189 kw_inlinehint,
190 kw_inreg,
191 kw_jumptable,
192 kw_minsize,
193 kw_naked,
194 kw_nest,
195 kw_noalias,
196 kw_nobuiltin,
197 kw_nocapture,
198 kw_noduplicate,
199 kw_nofree,
200 kw_noimplicitfloat,
201 kw_noinline,
202 kw_norecurse,
203 kw_nonlazybind,
204 kw_nonnull,
205 kw_noredzone,
206 kw_noreturn,
207 kw_nosync,
208 kw_nocf_check,
209 kw_nounwind,
210 kw_optforfuzzing,
211 kw_optnone,
212 kw_optsize,
213 kw_readnone,
214 kw_readonly,
215 kw_returned,
216 kw_returns_twice,
217 kw_signext,
218 kw_speculatable,
219 kw_ssp,
220 kw_sspreq,
221 kw_sspstrong,
222 kw_safestack,
223 kw_shadowcallstack,
224 kw_sret,
225 kw_sanitize_thread,
226 kw_sanitize_memory,
227 kw_speculative_load_hardening,
228 kw_strictfp,
229 kw_swifterror,
230 kw_swiftself,
231 kw_uwtable,
232 kw_willreturn,
233 kw_writeonly,
234 kw_zeroext,
235 kw_immarg,
237 kw_type,
238 kw_opaque,
240 kw_comdat,
242 // Comdat types
243 kw_any,
244 kw_exactmatch,
245 kw_largest,
246 kw_noduplicates,
247 kw_samesize,
249 kw_eq,
250 kw_ne,
251 kw_slt,
252 kw_sgt,
253 kw_sle,
254 kw_sge,
255 kw_ult,
256 kw_ugt,
257 kw_ule,
258 kw_uge,
259 kw_oeq,
260 kw_one,
261 kw_olt,
262 kw_ogt,
263 kw_ole,
264 kw_oge,
265 kw_ord,
266 kw_uno,
267 kw_ueq,
268 kw_une,
270 // atomicrmw operations that aren't also instruction keywords.
271 kw_xchg,
272 kw_nand,
273 kw_max,
274 kw_min,
275 kw_umax,
276 kw_umin,
278 // Instruction Opcodes (Opcode in UIntVal).
279 kw_fneg,
280 kw_add,
281 kw_fadd,
282 kw_sub,
283 kw_fsub,
284 kw_mul,
285 kw_fmul,
286 kw_udiv,
287 kw_sdiv,
288 kw_fdiv,
289 kw_urem,
290 kw_srem,
291 kw_frem,
292 kw_shl,
293 kw_lshr,
294 kw_ashr,
295 kw_and,
296 kw_or,
297 kw_xor,
298 kw_icmp,
299 kw_fcmp,
301 kw_phi,
302 kw_call,
303 kw_trunc,
304 kw_zext,
305 kw_sext,
306 kw_fptrunc,
307 kw_fpext,
308 kw_uitofp,
309 kw_sitofp,
310 kw_fptoui,
311 kw_fptosi,
312 kw_inttoptr,
313 kw_ptrtoint,
314 kw_bitcast,
315 kw_addrspacecast,
316 kw_select,
317 kw_va_arg,
319 kw_landingpad,
320 kw_personality,
321 kw_cleanup,
322 kw_catch,
323 kw_filter,
325 kw_ret,
326 kw_br,
327 kw_switch,
328 kw_indirectbr,
329 kw_invoke,
330 kw_resume,
331 kw_unreachable,
332 kw_cleanupret,
333 kw_catchswitch,
334 kw_catchret,
335 kw_catchpad,
336 kw_cleanuppad,
337 kw_callbr,
339 kw_alloca,
340 kw_load,
341 kw_store,
342 kw_fence,
343 kw_cmpxchg,
344 kw_atomicrmw,
345 kw_getelementptr,
347 kw_extractelement,
348 kw_insertelement,
349 kw_shufflevector,
350 kw_extractvalue,
351 kw_insertvalue,
352 kw_blockaddress,
354 // Metadata types.
355 kw_distinct,
357 // Use-list order directives.
358 kw_uselistorder,
359 kw_uselistorder_bb,
361 // Summary index keywords
362 kw_path,
363 kw_hash,
364 kw_gv,
365 kw_guid,
366 kw_name,
367 kw_summaries,
368 kw_flags,
369 kw_linkage,
370 kw_notEligibleToImport,
371 kw_live,
372 kw_dsoLocal,
373 kw_canAutoHide,
374 kw_function,
375 kw_insts,
376 kw_funcFlags,
377 kw_readNone,
378 kw_readOnly,
379 kw_noRecurse,
380 kw_returnDoesNotAlias,
381 kw_noInline,
382 kw_calls,
383 kw_callee,
384 kw_hotness,
385 kw_unknown,
386 kw_hot,
387 kw_critical,
388 kw_relbf,
389 kw_variable,
390 kw_vTableFuncs,
391 kw_virtFunc,
392 kw_aliasee,
393 kw_refs,
394 kw_typeIdInfo,
395 kw_typeTests,
396 kw_typeTestAssumeVCalls,
397 kw_typeCheckedLoadVCalls,
398 kw_typeTestAssumeConstVCalls,
399 kw_typeCheckedLoadConstVCalls,
400 kw_vFuncId,
401 kw_offset,
402 kw_args,
403 kw_typeid,
404 kw_typeidCompatibleVTable,
405 kw_summary,
406 kw_typeTestRes,
407 kw_kind,
408 kw_unsat,
409 kw_byteArray,
410 kw_inline,
411 kw_single,
412 kw_allOnes,
413 kw_sizeM1BitWidth,
414 kw_alignLog2,
415 kw_sizeM1,
416 kw_bitMask,
417 kw_inlineBits,
418 kw_wpdResolutions,
419 kw_wpdRes,
420 kw_indir,
421 kw_singleImpl,
422 kw_branchFunnel,
423 kw_singleImplName,
424 kw_resByArg,
425 kw_byArg,
426 kw_uniformRetVal,
427 kw_uniqueRetVal,
428 kw_virtualConstProp,
429 kw_info,
430 kw_byte,
431 kw_bit,
432 kw_varFlags,
434 // Unsigned Valued tokens (UIntVal).
435 LabelID, // 42:
436 GlobalID, // @42
437 LocalVarID, // %42
438 AttrGrpID, // #42
439 SummaryID, // ^42
441 // String valued tokens (StrVal).
442 LabelStr, // foo:
443 GlobalVar, // @foo @"foo"
444 ComdatVar, // $foo
445 LocalVar, // %foo %"foo"
446 MetadataVar, // !foo
447 StringConstant, // "foo"
448 DwarfTag, // DW_TAG_foo
449 DwarfAttEncoding, // DW_ATE_foo
450 DwarfVirtuality, // DW_VIRTUALITY_foo
451 DwarfLang, // DW_LANG_foo
452 DwarfCC, // DW_CC_foo
453 EmissionKind, // lineTablesOnly
454 NameTableKind, // GNU
455 DwarfOp, // DW_OP_foo
456 DIFlag, // DIFlagFoo
457 DISPFlag, // DISPFlagFoo
458 DwarfMacinfo, // DW_MACINFO_foo
459 ChecksumKind, // CSK_foo
461 // Type valued tokens (TyVal).
462 Type,
464 APFloat, // APFloatVal
465 APSInt // APSInt
467 } // end namespace lltok
468 } // end namespace llvm
470 #endif