LLVM 17.0.0git
LLToken.h
Go to the documentation of this file.
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.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef LLVM_ASMPARSER_LLTOKEN_H
14#define LLVM_ASMPARSER_LLTOKEN_H
15
16namespace llvm {
17namespace lltok {
18enum Kind {
19 // Markers
22
23 // Tokens with no info.
24 dotdotdot, // ...
26 comma, // = ,
27 star, // *
29 rsquare, // [ ]
31 rbrace, // { }
33 greater, // < >
35 rparen, // ( )
36 exclaim, // !
37 bar, // |
38 colon, // :
39
48
51
56 kw_weak, // Used as a linkage, and a modifier for "cmpxchg".
127
176
177 // Attributes:
181#define GET_ATTR_NAMES
182#define ATTRIBUTE_ENUM(ENUM_NAME, DISPLAY_NAME) \
183 kw_##DISPLAY_NAME,
184#include "llvm/IR/Attributes.inc"
185
186 // Memory attribute:
192
193 // Legacy memory attributes:
197
198 // nofpclass attribute:
204 // kw_ninf, - already an fmf
209 // kw_sub, - already an instruction
215
218
220
221 // Comdat types
227
248
249 // atomicrmw operations that aren't also instruction keywords.
260
261 // Instruction Opcodes (Opcode in UIntVal).
283
301
307
321
329
338
340
341 // Metadata types.
343
344 // Use-list order directives.
347
348 // Summary index keywords
429 // The following are used by MemProf summary info.
437
438 // GV's with __attribute__((no_sanitize("address"))), or things in
439 // -fsanitize-ignorelist when built with ASan.
441 // GV's with __attribute__((no_sanitize("hwaddress"))), or things in
442 // -fsanitize-ignorelist when built with HWASan.
444 // GV's where the clang++ frontend (when ASan is used) notes that this is
445 // dynamically initialized, and thus needs ODR detection.
447
448 // Unsigned Valued tokens (UIntVal).
449 LabelID, // 42:
450 GlobalID, // @42
452 AttrGrpID, // #42
453 SummaryID, // ^42
454
455 // String valued tokens (StrVal).
456 LabelStr, // foo:
457 GlobalVar, // @foo @"foo"
458 ComdatVar, // $foo
459 LocalVar, // %foo %"foo"
460 MetadataVar, // !foo
462 DwarfTag, // DW_TAG_foo
463 DwarfAttEncoding, // DW_ATE_foo
464 DwarfVirtuality, // DW_VIRTUALITY_foo
465 DwarfLang, // DW_LANG_foo
466 DwarfCC, // DW_CC_foo
467 EmissionKind, // lineTablesOnly
469 DwarfOp, // DW_OP_foo
470 DIFlag, // DIFlagFoo
471 DISPFlag, // DISPFlagFoo
472 DwarfMacinfo, // DW_MACINFO_foo
473 ChecksumKind, // CSK_foo
474
475 // Type valued tokens (TyVal).
477
478 APFloat, // APFloatVal
479 APSInt // APSInt
481} // end namespace lltok
482} // end namespace llvm
483
484#endif
An arbitrary precision integer that knows its signedness.
Definition: APSInt.h:23
@ kw_samesize
Definition: LLToken.h:226
@ kw_msp430_intrcc
Definition: LLToken.h:146
@ kw_acquire
Definition: LLToken.h:96
@ kw_cxx_fast_tlscc
Definition: LLToken.h:165
@ kw_extractvalue
Definition: LLToken.h:333
@ kw_dso_preemptable
Definition: LLToken.h:50
@ DwarfVirtuality
Definition: LLToken.h:464
@ kw_arm_apcscc
Definition: LLToken.h:139
@ kw_inteldialect
Definition: LLToken.h:122
@ kw_x86_stdcallcc
Definition: LLToken.h:134
@ kw_constant
Definition: LLToken.h:47
@ kw_initialexec
Definition: LLToken.h:73
@ kw_mustBeUnreachable
Definition: LLToken.h:375
@ kw_internal
Definition: LLToken.h:53
@ kw_hhvm_ccc
Definition: LLToken.h:164
@ kw_ptrtoint
Definition: LLToken.h:296
@ kw_anyregcc
Definition: LLToken.h:156
@ kw_no_sanitize_hwaddress
Definition: LLToken.h:443
@ kw_win64cc
Definition: LLToken.h:154
@ kw_datalayout
Definition: LLToken.h:91
@ kw_wpdResolutions
Definition: LLToken.h:414
@ kw_cleanup
Definition: LLToken.h:304
@ kw_canAutoHide
Definition: LLToken.h:362
@ kw_alwaysInline
Definition: LLToken.h:371
@ kw_notail
Definition: LLToken.h:86
@ kw_insertelement
Definition: LLToken.h:331
@ kw_linkonce
Definition: LLToken.h:54
@ kw_fptrunc
Definition: LLToken.h:289
@ kw_webkit_jscc
Definition: LLToken.h:155
@ kw_inaccessiblememonly
Definition: LLToken.h:195
@ kw_amdgpu_gfx
Definition: LLToken.h:174
@ kw_getelementptr
Definition: LLToken.h:328
@ kw_x86_fastcallcc
Definition: LLToken.h:135
@ kw_readOnly
Definition: LLToken.h:367
@ kw_varFlags
Definition: LLToken.h:428
@ kw_partition
Definition: LLToken.h:116
@ kw_visibility
Definition: LLToken.h:358
@ kw_vFuncId
Definition: LLToken.h:395
@ kw_noUnwind
Definition: LLToken.h:372
@ kw_bitMask
Definition: LLToken.h:411
@ kw_unordered
Definition: LLToken.h:94
@ kw_singleImpl
Definition: LLToken.h:417
@ kw_swiftcc
Definition: LLToken.h:157
@ kw_localexec
Definition: LLToken.h:74
@ kw_cfguard_checkcc
Definition: LLToken.h:133
@ kw_stackIds
Definition: LLToken.h:432
@ kw_typeCheckedLoadConstVCalls
Definition: LLToken.h:394
@ kw_private
Definition: LLToken.h:52
@ kw_aarch64_sve_vector_pcs
Definition: LLToken.h:143
@ kw_amdgpu_kernel
Definition: LLToken.h:173
@ kw_acq_rel
Definition: LLToken.h:98
@ kw_uselistorder
Definition: LLToken.h:345
@ MetadataVar
Definition: LLToken.h:460
@ kw_reassoc
Definition: LLToken.h:106
@ kw_blockcount
Definition: LLToken.h:356
@ kw_notEligibleToImport
Definition: LLToken.h:359
@ kw_noRecurse
Definition: LLToken.h:368
@ kw_dsoLocal
Definition: LLToken.h:361
@ kw_linkonce_odr
Definition: LLToken.h:55
@ kw_protected
Definition: LLToken.h:65
@ kw_contract
Definition: LLToken.h:105
@ kw_variable
Definition: LLToken.h:384
@ kw_dllexport
Definition: LLToken.h:60
@ kw_hotness
Definition: LLToken.h:380
@ kw_x86_vectorcallcc
Definition: LLToken.h:137
@ kw_ptx_device
Definition: LLToken.h:150
@ kw_personality
Definition: LLToken.h:303
@ kw_catchpad
Definition: LLToken.h:318
@ kw_spir_func
Definition: LLToken.h:152
@ kw_inbounds
Definition: LLToken.h:112
@ kw_atomic
Definition: LLToken.h:93
@ kw_readNone
Definition: LLToken.h:366
@ kw_define
Definition: LLToken.h:45
@ DwarfAttEncoding
Definition: LLToken.h:463
@ kw_critical
Definition: LLToken.h:382
@ kw_external
Definition: LLToken.h:70
@ kw_largest
Definition: LLToken.h:224
@ kw_amdgpu_hs
Definition: LLToken.h:168
@ kw_spir_kernel
Definition: LLToken.h:151
@ kw_local_unnamed_addr
Definition: LLToken.h:67
@ kw_amdgpu_es
Definition: LLToken.h:169
@ kw_hasUnknownCall
Definition: LLToken.h:374
@ LocalVarID
Definition: LLToken.h:451
@ kw_seq_cst
Definition: LLToken.h:99
@ kw_unwind
Definition: LLToken.h:90
@ kw_distinct
Definition: LLToken.h:342
@ kw_linkage
Definition: LLToken.h:357
@ kw_amdgpu_gs
Definition: LLToken.h:170
@ kw_x86_intrcc
Definition: LLToken.h:162
@ kw_addrspacecast
Definition: LLToken.h:298
@ kw_callsites
Definition: LLToken.h:430
@ kw_zeroinitializer
Definition: LLToken.h:75
@ StringConstant
Definition: LLToken.h:461
@ kw_x86_thiscallcc
Definition: LLToken.h:136
@ kw_false
Definition: LLToken.h:43
@ kw_unnamed_addr
Definition: LLToken.h:66
@ kw_uselistorder_bb
Definition: LLToken.h:346
@ NameTableKind
Definition: LLToken.h:468
@ kw_amdgpu_vs
Definition: LLToken.h:166
@ kw_inlineBits
Definition: LLToken.h:412
@ kw_weak_odr
Definition: LLToken.h:57
@ kw_udec_wrap
Definition: LLToken.h:259
@ kw_resByArg
Definition: LLToken.h:420
@ kw_inttoptr
Definition: LLToken.h:295
@ kw_dllimport
Definition: LLToken.h:59
@ kw_argmemonly
Definition: LLToken.h:194
@ kw_blockaddress
Definition: LLToken.h:335
@ kw_landingpad
Definition: LLToken.h:302
@ kw_aarch64_vector_pcs
Definition: LLToken.h:142
@ kw_amdgpu_cs
Definition: LLToken.h:172
@ kw_syncscope
Definition: LLToken.h:100
@ kw_noInline
Definition: LLToken.h:370
@ kw_source_filename
Definition: LLToken.h:89
@ kw_typeTestAssumeConstVCalls
Definition: LLToken.h:393
@ kw_inrange
Definition: LLToken.h:113
@ kw_ptx_kernel
Definition: LLToken.h:149
@ kw_summaries
Definition: LLToken.h:354
@ kw_extractelement
Definition: LLToken.h:330
@ kw_branchFunnel
Definition: LLToken.h:418
@ kw_typeidCompatibleVTable
Definition: LLToken.h:399
@ kw_bitcast
Definition: LLToken.h:297
@ kw_declare
Definition: LLToken.h:44
@ kw_allOnes
Definition: LLToken.h:407
@ kw_vTableFuncs
Definition: LLToken.h:385
@ ChecksumKind
Definition: LLToken.h:473
@ DwarfMacinfo
Definition: LLToken.h:472
@ kw_volatile
Definition: LLToken.h:92
@ kw_typeCheckedLoadVCalls
Definition: LLToken.h:392
@ kw_function
Definition: LLToken.h:363
@ kw_default
Definition: LLToken.h:63
@ kw_no_sanitize_address
Definition: LLToken.h:440
@ kw_inaccessiblemem_or_argmemonly
Definition: LLToken.h:196
@ kw_uinc_wrap
Definition: LLToken.h:258
@ kw_externally_initialized
Definition: LLToken.h:68
@ kw_sanitize_address_dyninit
Definition: LLToken.h:446
@ kw_atomicrmw
Definition: LLToken.h:327
@ kw_hidden
Definition: LLToken.h:64
@ EmissionKind
Definition: LLToken.h:467
@ kw_readwrite
Definition: LLToken.h:189
@ kw_within
Definition: LLToken.h:82
@ kw_section
Definition: LLToken.h:115
@ kw_triple
Definition: LLToken.h:88
@ kw_thread_local
Definition: LLToken.h:71
@ kw_catchswitch
Definition: LLToken.h:316
@ kw_extern_weak
Definition: LLToken.h:69
@ kw_arm_aapcscc
Definition: LLToken.h:140
@ kw_memProf
Definition: LLToken.h:435
@ kw_alignLog2
Definition: LLToken.h:409
@ kw_cleanuppad
Definition: LLToken.h:319
@ kw_available_externally
Definition: LLToken.h:62
@ kw_singleImplName
Definition: LLToken.h:419
@ kw_typeTests
Definition: LLToken.h:390
@ kw_versions
Definition: LLToken.h:434
@ kw_notcold
Definition: LLToken.h:436
@ kw_mayThrow
Definition: LLToken.h:373
@ kw_swifttailcc
Definition: LLToken.h:158
@ kw_monotonic
Definition: LLToken.h:95
@ kw_typeTestAssumeVCalls
Definition: LLToken.h:391
@ kw_amdgpu_ls
Definition: LLToken.h:167
@ kw_caller
Definition: LLToken.h:81
@ kw_vscale
Definition: LLToken.h:40
@ kw_target
Definition: LLToken.h:87
@ kw_attributes
Definition: LLToken.h:178
@ kw_cmpxchg
Definition: LLToken.h:326
@ kw_funcFlags
Definition: LLToken.h:365
@ kw_localdynamic
Definition: LLToken.h:72
@ kw_uniformRetVal
Definition: LLToken.h:422
@ kw_sideeffect
Definition: LLToken.h:121
@ kw_amdgpu_ps
Definition: LLToken.h:171
@ kw_sizeM1BitWidth
Definition: LLToken.h:408
@ kw_catchret
Definition: LLToken.h:317
@ kw_nodeduplicate
Definition: LLToken.h:225
@ kw_avr_signalcc
Definition: LLToken.h:148
@ kw_exactmatch
Definition: LLToken.h:223
@ kw_aliasee
Definition: LLToken.h:387
@ kw_common
Definition: LLToken.h:61
@ kw_unreachable
Definition: LLToken.h:314
@ kw_intel_ocl_bicc
Definition: LLToken.h:132
@ kw_global
Definition: LLToken.h:46
@ kw_dso_local
Definition: LLToken.h:49
@ kw_undef
Definition: LLToken.h:76
@ kw_addrspace
Definition: LLToken.h:114
@ kw_release
Definition: LLToken.h:97
@ kw_returnDoesNotAlias
Definition: LLToken.h:369
@ kw_aarch64_sme_preservemost_from_x0
Definition: LLToken.h:144
@ kw_preserve_allcc
Definition: LLToken.h:160
@ dotdotdot
Definition: LLToken.h:24
@ kw_cleanupret
Definition: LLToken.h:315
@ kw_shufflevector
Definition: LLToken.h:332
@ kw_avr_intrcc
Definition: LLToken.h:147
@ kw_prologue
Definition: LLToken.h:125
@ kw_virtualConstProp
Definition: LLToken.h:424
@ kw_vcall_visibility
Definition: LLToken.h:413
@ kw_poison
Definition: LLToken.h:77
@ kw_appending
Definition: LLToken.h:58
@ kw_inaccessiblemem
Definition: LLToken.h:191
@ kw_preserve_mostcc
Definition: LLToken.h:159
@ kw_arm_aapcs_vfpcc
Definition: LLToken.h:141
@ kw_typeTestRes
Definition: LLToken.h:401
@ kw_unknown
Definition: LLToken.h:381
@ kw_x86_regcallcc
Definition: LLToken.h:138
@ kw_typeIdInfo
Definition: LLToken.h:389
@ kw_dso_local_equivalent
Definition: LLToken.h:336
@ kw_x86_64_sysvcc
Definition: LLToken.h:153
@ kw_summary
Definition: LLToken.h:400
@ kw_virtFunc
Definition: LLToken.h:386
@ kw_musttail
Definition: LLToken.h:85
@ kw_aarch64_sme_preservemost_from_x2
Definition: LLToken.h:145
@ kw_byteArray
Definition: LLToken.h:404
@ kw_uniqueRetVal
Definition: LLToken.h:423
@ kw_insertvalue
Definition: LLToken.h:334
@ kw_indirectbr
Definition: LLToken.h:311
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18