1 //===- LLToken.h - Token Codes for LLVM Assembly Files ----------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file defines the enums for the .ll lexer.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_LIB_ASMPARSER_LLTOKEN_H
15 #define LLVM_LIB_ASMPARSER_LLTOKEN_H
24 // Tokens with no info.
56 kw_weak, // Used as a linkage, and a modifier for "cmpxchg".
62 kw_available_externally,
67 kw_local_unnamed_addr,
68 kw_externally_initialized,
90 kw_deplibs, // FIXME: Remove in 4.0
176 kw_sanitize_hwaddress,
183 kw_dereferenceable_or_null,
184 kw_inaccessiblememonly,
185 kw_inaccessiblemem_or_argmemonly,
262 // atomicrmw operations that aren't also instruction keywords.
270 // Instruction Opcodes (Opcode in UIntVal).
347 // Use-list order directives.
351 // Summary index keywords
360 kw_notEligibleToImport,
369 kw_returnDoesNotAlias,
382 kw_typeTestAssumeVCalls,
383 kw_typeCheckedLoadVCalls,
384 kw_typeTestAssumeConstVCalls,
385 kw_typeCheckedLoadConstVCalls,
418 // Unsigned Valued tokens (UIntVal).
424 // String valued tokens (StrVal).
426 GlobalVar, // @foo @"foo"
428 LocalVar, // %foo %"foo"
430 StringConstant, // "foo"
431 DwarfTag, // DW_TAG_foo
432 DwarfAttEncoding, // DW_ATE_foo
433 DwarfVirtuality, // DW_VIRTUALITY_foo
434 DwarfLang, // DW_LANG_foo
435 DwarfCC, // DW_CC_foo
436 EmissionKind, // lineTablesOnly
437 DwarfOp, // DW_OP_foo
439 DwarfMacinfo, // DW_MACINFO_foo
440 ChecksumKind, // CSK_foo
442 // Type valued tokens (TyVal).
445 APFloat, // APFloatVal
448 } // end namespace lltok
449 } // end namespace llvm