1 //===- LLToken.h - Token Codes for LLVM Assembly Files ----------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
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
23 // Tokens with no info.
55 kw_weak
, // Used as a linkage, and a modifier for "cmpxchg".
61 kw_available_externally
,
66 kw_local_unnamed_addr
,
67 kw_externally_initialized
,
89 kw_deplibs
, // FIXME: Remove in 4.0
141 kw_aarch64_vector_pcs
,
176 kw_sanitize_hwaddress
,
183 kw_dereferenceable_or_null
,
184 kw_inaccessiblememonly
,
185 kw_inaccessiblemem_or_argmemonly
,
222 kw_speculative_load_hardening
,
264 // atomicrmw operations that aren't also instruction keywords.
272 // Instruction Opcodes (Opcode in UIntVal).
351 // Use-list order directives.
355 // Summary index keywords
364 kw_notEligibleToImport
,
373 kw_returnDoesNotAlias
,
387 kw_typeTestAssumeVCalls
,
388 kw_typeCheckedLoadVCalls
,
389 kw_typeTestAssumeConstVCalls
,
390 kw_typeCheckedLoadConstVCalls
,
424 // Unsigned Valued tokens (UIntVal).
431 // String valued tokens (StrVal).
433 GlobalVar
, // @foo @"foo"
435 LocalVar
, // %foo %"foo"
437 StringConstant
, // "foo"
438 DwarfTag
, // DW_TAG_foo
439 DwarfAttEncoding
, // DW_ATE_foo
440 DwarfVirtuality
, // DW_VIRTUALITY_foo
441 DwarfLang
, // DW_LANG_foo
442 DwarfCC
, // DW_CC_foo
443 EmissionKind
, // lineTablesOnly
444 NameTableKind
, // GNU
445 DwarfOp
, // DW_OP_foo
447 DISPFlag
, // DISPFlagFoo
448 DwarfMacinfo
, // DW_MACINFO_foo
449 ChecksumKind
, // CSK_foo
451 // Type valued tokens (TyVal).
454 APFloat
, // APFloatVal
457 } // end namespace lltok
458 } // end namespace llvm