Indentation.
[llvm/avr.git] / lib / AsmParser / LLToken.h
bloba49d05442bc183a52af443b227eacf70deef33dc
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.
12 //===----------------------------------------------------------------------===//
14 #ifndef LIBS_ASMPARSER_LLTOKEN_H
15 #define LIBS_ASMPARSER_LLTOKEN_H
17 namespace llvm {
18 namespace lltok {
19 enum Kind {
20 // Markers
21 Eof, Error,
23 // Tokens with no info.
24 dotdotdot, // ...
25 equal, comma, // = ,
26 star, // *
27 lsquare, rsquare, // [ ]
28 lbrace, rbrace, // { }
29 less, greater, // < >
30 lparen, rparen, // ( )
31 backslash, // \ (not /)
33 kw_x,
34 kw_begin, kw_end,
35 kw_true, kw_false,
36 kw_declare, kw_define,
37 kw_global, kw_constant,
39 kw_private, kw_linker_private, kw_internal, kw_linkonce, kw_linkonce_odr,
40 kw_weak, kw_weak_odr, kw_appending, kw_dllimport, kw_dllexport, kw_common,
41 kw_available_externally,
42 kw_default, kw_hidden, kw_protected,
43 kw_extern_weak,
44 kw_external, kw_thread_local,
45 kw_zeroinitializer,
46 kw_undef, kw_null,
47 kw_to,
48 kw_tail,
49 kw_target,
50 kw_triple,
51 kw_deplibs,
52 kw_datalayout,
53 kw_volatile,
54 kw_nuw,
55 kw_nsw,
56 kw_exact,
57 kw_inbounds,
58 kw_align,
59 kw_addrspace,
60 kw_section,
61 kw_alias,
62 kw_module,
63 kw_asm,
64 kw_sideeffect,
65 kw_gc,
66 kw_c,
68 kw_cc, kw_ccc, kw_fastcc, kw_coldcc,
69 kw_x86_stdcallcc, kw_x86_fastcallcc,
70 kw_arm_apcscc, kw_arm_aapcscc, kw_arm_aapcs_vfpcc,
72 kw_signext,
73 kw_zeroext,
74 kw_inreg,
75 kw_sret,
76 kw_nounwind,
77 kw_noreturn,
78 kw_noalias,
79 kw_nocapture,
80 kw_byval,
81 kw_nest,
82 kw_readnone,
83 kw_readonly,
85 kw_noinline,
86 kw_alwaysinline,
87 kw_optsize,
88 kw_ssp,
89 kw_sspreq,
90 kw_noredzone,
91 kw_noimplicitfloat,
92 kw_naked,
94 kw_type,
95 kw_opaque,
97 kw_eq, kw_ne, kw_slt, kw_sgt, kw_sle, kw_sge, kw_ult, kw_ugt, kw_ule,
98 kw_uge, kw_oeq, kw_one, kw_olt, kw_ogt, kw_ole, kw_oge, kw_ord, kw_uno,
99 kw_ueq, kw_une,
101 // Instruction Opcodes (Opcode in UIntVal).
102 kw_add, kw_fadd, kw_sub, kw_fsub, kw_mul, kw_fmul,
103 kw_udiv, kw_sdiv, kw_fdiv,
104 kw_urem, kw_srem, kw_frem, kw_shl, kw_lshr, kw_ashr,
105 kw_and, kw_or, kw_xor, kw_icmp, kw_fcmp,
107 kw_phi, kw_call,
108 kw_trunc, kw_zext, kw_sext, kw_fptrunc, kw_fpext, kw_uitofp, kw_sitofp,
109 kw_fptoui, kw_fptosi, kw_inttoptr, kw_ptrtoint, kw_bitcast,
110 kw_select, kw_va_arg,
112 kw_ret, kw_br, kw_switch, kw_invoke, kw_unwind, kw_unreachable,
114 kw_malloc, kw_alloca, kw_free, kw_load, kw_store, kw_getelementptr,
116 kw_extractelement, kw_insertelement, kw_shufflevector, kw_getresult,
117 kw_extractvalue, kw_insertvalue,
119 // Unsigned Valued tokens (UIntVal).
120 GlobalID, // @42
121 LocalVarID, // %42
123 // String valued tokens (StrVal).
124 LabelStr, // foo:
125 GlobalVar, // @foo @"foo"
126 LocalVar, // %foo %"foo"
127 StringConstant, // "foo"
128 NamedMD, // !foo
130 // Metadata valued tokens.
131 Metadata, // !"foo" !{i8 42}
133 // Type valued tokens (TyVal).
134 Type,
136 APFloat, // APFloatVal
137 APSInt // APSInt
139 } // end namespace lltok
140 } // end namespace llvm
142 #endif