LLVM  5.0.0
LLToken.h
Go to the documentation of this file.
1 //===- LLToken.h - Token Codes for LLVM Assembly Files ----------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file defines the enums for the .ll lexer.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_LIB_ASMPARSER_LLTOKEN_H
15 #define LLVM_LIB_ASMPARSER_LLTOKEN_H
16 
17 namespace llvm {
18 namespace lltok {
19 enum Kind {
20  // Markers
21  Eof,
23 
24  // Tokens with no info.
25  dotdotdot, // ...
27  comma, // = ,
28  star, // *
30  rsquare, // [ ]
32  rbrace, // { }
34  greater, // < >
36  rparen, // ( )
37  exclaim, // !
38  bar, // |
39 
47 
52  kw_weak, // Used as a linkage, and a modifier for "cmpxchg".
86  kw_deplibs, // FIXME: Remove in 4.0
122 
161 
162  // Attributes:
215 
218 
220 
221  // Comdat types
227 
248 
249  // atomicrmw operations that aren't also instruction keywords.
256 
257  // Instruction Opcodes (Opcode in UIntVal).
278 
296 
302 
315 
323 
330 
331  // Metadata types.
333 
334  // Use-list order directives.
337 
338  // Unsigned Valued tokens (UIntVal).
339  GlobalID, // @42
340  LocalVarID, // %42
341  AttrGrpID, // #42
342 
343  // String valued tokens (StrVal).
344  LabelStr, // foo:
345  GlobalVar, // @foo @"foo"
346  ComdatVar, // $foo
347  LocalVar, // %foo %"foo"
348  MetadataVar, // !foo
349  StringConstant, // "foo"
350  DwarfTag, // DW_TAG_foo
351  DwarfAttEncoding, // DW_ATE_foo
352  DwarfVirtuality, // DW_VIRTUALITY_foo
353  DwarfLang, // DW_LANG_foo
354  DwarfCC, // DW_CC_foo
355  EmissionKind, // lineTablesOnly
356  DwarfOp, // DW_OP_foo
357  DIFlag, // DIFlagFoo
358  DwarfMacinfo, // DW_MACINFO_foo
359  ChecksumKind, // CSK_foo
360 
361  // Type valued tokens (TyVal).
363 
364  APFloat, // APFloatVal
365  APSInt // APSInt
366 };
367 } // end namespace lltok
368 } // end namespace llvm
369 
370 #endif