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
200
202
203 // Comdat types
209
230
231 // atomicrmw operations that aren't also instruction keywords.
242
243 // Instruction Opcodes (Opcode in UIntVal).
265
283
289
303
311
320
322
323 // Metadata types.
325
326 // Use-list order directives.
329
330 // Summary index keywords
411 // The following are used by MemProf summary info.
420
421 // GV's with __attribute__((no_sanitize("address"))), or things in
422 // -fsanitize-ignorelist when built with ASan.
424 // GV's with __attribute__((no_sanitize("hwaddress"))), or things in
425 // -fsanitize-ignorelist when built with HWASan.
427 // GV's where the clang++ frontend (when ASan is used) notes that this is
428 // dynamically initialized, and thus needs ODR detection.
430
431 // Unsigned Valued tokens (UIntVal).
432 LabelID, // 42:
433 GlobalID, // @42
435 AttrGrpID, // #42
436 SummaryID, // ^42
437
438 // String valued tokens (StrVal).
439 LabelStr, // foo:
440 GlobalVar, // @foo @"foo"
441 ComdatVar, // $foo
442 LocalVar, // %foo %"foo"
443 MetadataVar, // !foo
445 DwarfTag, // DW_TAG_foo
446 DwarfAttEncoding, // DW_ATE_foo
447 DwarfVirtuality, // DW_VIRTUALITY_foo
448 DwarfLang, // DW_LANG_foo
449 DwarfCC, // DW_CC_foo
450 EmissionKind, // lineTablesOnly
452 DwarfOp, // DW_OP_foo
453 DIFlag, // DIFlagFoo
454 DISPFlag, // DISPFlagFoo
455 DwarfMacinfo, // DW_MACINFO_foo
456 ChecksumKind, // CSK_foo
457
458 // Type valued tokens (TyVal).
460
461 APFloat, // APFloatVal
462 APSInt // APSInt
464} // end namespace lltok
465} // end namespace llvm
466
467#endif
An arbitrary precision integer that knows its signedness.
Definition: APSInt.h:23
@ kw_samesize
Definition: LLToken.h:208
@ 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:315
@ kw_dso_preemptable
Definition: LLToken.h:50
@ DwarfVirtuality
Definition: LLToken.h:447
@ 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:357
@ kw_internal
Definition: LLToken.h:53
@ kw_hhvm_ccc
Definition: LLToken.h:164
@ kw_ptrtoint
Definition: LLToken.h:278
@ kw_anyregcc
Definition: LLToken.h:156
@ kw_no_sanitize_hwaddress
Definition: LLToken.h:426
@ kw_win64cc
Definition: LLToken.h:154
@ kw_datalayout
Definition: LLToken.h:91
@ kw_wpdResolutions
Definition: LLToken.h:396
@ kw_cleanup
Definition: LLToken.h:286
@ kw_canAutoHide
Definition: LLToken.h:344
@ kw_alwaysInline
Definition: LLToken.h:353
@ kw_notail
Definition: LLToken.h:86
@ kw_insertelement
Definition: LLToken.h:313
@ kw_linkonce
Definition: LLToken.h:54
@ kw_fptrunc
Definition: LLToken.h:271
@ 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:310
@ kw_x86_fastcallcc
Definition: LLToken.h:135
@ kw_readOnly
Definition: LLToken.h:349
@ kw_varFlags
Definition: LLToken.h:410
@ kw_partition
Definition: LLToken.h:116
@ kw_visibility
Definition: LLToken.h:340
@ kw_vFuncId
Definition: LLToken.h:377
@ kw_noUnwind
Definition: LLToken.h:354
@ kw_bitMask
Definition: LLToken.h:393
@ kw_unordered
Definition: LLToken.h:94
@ kw_singleImpl
Definition: LLToken.h:399
@ kw_swiftcc
Definition: LLToken.h:157
@ kw_localexec
Definition: LLToken.h:74
@ kw_cfguard_checkcc
Definition: LLToken.h:133
@ kw_stackIds
Definition: LLToken.h:414
@ kw_typeCheckedLoadConstVCalls
Definition: LLToken.h:376
@ 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:327
@ MetadataVar
Definition: LLToken.h:443
@ kw_reassoc
Definition: LLToken.h:106
@ kw_blockcount
Definition: LLToken.h:338
@ kw_notEligibleToImport
Definition: LLToken.h:341
@ kw_noRecurse
Definition: LLToken.h:350
@ kw_dsoLocal
Definition: LLToken.h:343
@ kw_linkonce_odr
Definition: LLToken.h:55
@ kw_protected
Definition: LLToken.h:65
@ kw_contract
Definition: LLToken.h:105
@ kw_variable
Definition: LLToken.h:366
@ kw_dllexport
Definition: LLToken.h:60
@ kw_hotness
Definition: LLToken.h:362
@ kw_x86_vectorcallcc
Definition: LLToken.h:137
@ kw_ptx_device
Definition: LLToken.h:150
@ kw_personality
Definition: LLToken.h:285
@ kw_catchpad
Definition: LLToken.h:300
@ kw_spir_func
Definition: LLToken.h:152
@ kw_inbounds
Definition: LLToken.h:112
@ kw_atomic
Definition: LLToken.h:93
@ kw_readNone
Definition: LLToken.h:348
@ kw_define
Definition: LLToken.h:45
@ DwarfAttEncoding
Definition: LLToken.h:446
@ kw_critical
Definition: LLToken.h:364
@ kw_external
Definition: LLToken.h:70
@ kw_largest
Definition: LLToken.h:206
@ 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:356
@ LocalVarID
Definition: LLToken.h:434
@ kw_seq_cst
Definition: LLToken.h:99
@ kw_unwind
Definition: LLToken.h:90
@ kw_distinct
Definition: LLToken.h:324
@ kw_linkage
Definition: LLToken.h:339
@ kw_amdgpu_gs
Definition: LLToken.h:170
@ kw_x86_intrcc
Definition: LLToken.h:162
@ kw_addrspacecast
Definition: LLToken.h:280
@ kw_callsites
Definition: LLToken.h:412
@ kw_zeroinitializer
Definition: LLToken.h:75
@ StringConstant
Definition: LLToken.h:444
@ 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:328
@ NameTableKind
Definition: LLToken.h:451
@ kw_amdgpu_vs
Definition: LLToken.h:166
@ kw_inlineBits
Definition: LLToken.h:394
@ kw_weak_odr
Definition: LLToken.h:57
@ kw_udec_wrap
Definition: LLToken.h:241
@ kw_resByArg
Definition: LLToken.h:402
@ kw_inttoptr
Definition: LLToken.h:277
@ kw_dllimport
Definition: LLToken.h:59
@ kw_argmemonly
Definition: LLToken.h:194
@ kw_blockaddress
Definition: LLToken.h:317
@ kw_landingpad
Definition: LLToken.h:284
@ 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:352
@ kw_source_filename
Definition: LLToken.h:89
@ kw_typeTestAssumeConstVCalls
Definition: LLToken.h:375
@ kw_inrange
Definition: LLToken.h:113
@ kw_ptx_kernel
Definition: LLToken.h:149
@ kw_summaries
Definition: LLToken.h:336
@ kw_extractelement
Definition: LLToken.h:312
@ kw_branchFunnel
Definition: LLToken.h:400
@ kw_typeidCompatibleVTable
Definition: LLToken.h:381
@ kw_bitcast
Definition: LLToken.h:279
@ kw_declare
Definition: LLToken.h:44
@ kw_allOnes
Definition: LLToken.h:389
@ kw_vTableFuncs
Definition: LLToken.h:367
@ ChecksumKind
Definition: LLToken.h:456
@ DwarfMacinfo
Definition: LLToken.h:455
@ kw_volatile
Definition: LLToken.h:92
@ kw_typeCheckedLoadVCalls
Definition: LLToken.h:374
@ kw_function
Definition: LLToken.h:345
@ kw_default
Definition: LLToken.h:63
@ kw_no_sanitize_address
Definition: LLToken.h:423
@ kw_inaccessiblemem_or_argmemonly
Definition: LLToken.h:196
@ kw_uinc_wrap
Definition: LLToken.h:240
@ kw_externally_initialized
Definition: LLToken.h:68
@ kw_sanitize_address_dyninit
Definition: LLToken.h:429
@ kw_atomicrmw
Definition: LLToken.h:309
@ kw_hidden
Definition: LLToken.h:64
@ EmissionKind
Definition: LLToken.h:450
@ 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:298
@ kw_extern_weak
Definition: LLToken.h:69
@ kw_arm_aapcscc
Definition: LLToken.h:140
@ kw_memProf
Definition: LLToken.h:417
@ kw_alignLog2
Definition: LLToken.h:391
@ kw_notcoldandcold
Definition: LLToken.h:419
@ kw_cleanuppad
Definition: LLToken.h:301
@ kw_available_externally
Definition: LLToken.h:62
@ kw_singleImplName
Definition: LLToken.h:401
@ kw_typeTests
Definition: LLToken.h:372
@ kw_versions
Definition: LLToken.h:416
@ kw_notcold
Definition: LLToken.h:418
@ kw_mayThrow
Definition: LLToken.h:355
@ kw_swifttailcc
Definition: LLToken.h:158
@ kw_monotonic
Definition: LLToken.h:95
@ kw_typeTestAssumeVCalls
Definition: LLToken.h:373
@ 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:308
@ kw_funcFlags
Definition: LLToken.h:347
@ kw_localdynamic
Definition: LLToken.h:72
@ kw_uniformRetVal
Definition: LLToken.h:404
@ kw_sideeffect
Definition: LLToken.h:121
@ kw_amdgpu_ps
Definition: LLToken.h:171
@ kw_sizeM1BitWidth
Definition: LLToken.h:390
@ kw_catchret
Definition: LLToken.h:299
@ kw_nodeduplicate
Definition: LLToken.h:207
@ kw_avr_signalcc
Definition: LLToken.h:148
@ kw_exactmatch
Definition: LLToken.h:205
@ kw_aliasee
Definition: LLToken.h:369
@ kw_common
Definition: LLToken.h:61
@ kw_unreachable
Definition: LLToken.h:296
@ 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:351
@ 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:297
@ kw_shufflevector
Definition: LLToken.h:314
@ kw_avr_intrcc
Definition: LLToken.h:147
@ kw_prologue
Definition: LLToken.h:125
@ kw_virtualConstProp
Definition: LLToken.h:406
@ kw_vcall_visibility
Definition: LLToken.h:395
@ 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:383
@ kw_unknown
Definition: LLToken.h:363
@ kw_x86_regcallcc
Definition: LLToken.h:138
@ kw_typeIdInfo
Definition: LLToken.h:371
@ kw_dso_local_equivalent
Definition: LLToken.h:318
@ kw_x86_64_sysvcc
Definition: LLToken.h:153
@ kw_summary
Definition: LLToken.h:382
@ kw_virtFunc
Definition: LLToken.h:368
@ kw_musttail
Definition: LLToken.h:85
@ kw_aarch64_sme_preservemost_from_x2
Definition: LLToken.h:145
@ kw_byteArray
Definition: LLToken.h:386
@ kw_uniqueRetVal
Definition: LLToken.h:405
@ kw_insertvalue
Definition: LLToken.h:316
@ kw_indirectbr
Definition: LLToken.h:293
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18