pass machinemoduleinfo down into getSymbolForDwarfGlobalReference,
[llvm/avr.git] / lib / AsmParser / LLToken.h
blobdd6359a630b4c32ef481c7f32be517c2ea228fd4
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_dbg,
67 kw_c,
69 kw_cc, kw_ccc, kw_fastcc, kw_coldcc,
70 kw_x86_stdcallcc, kw_x86_fastcallcc,
71 kw_arm_apcscc, kw_arm_aapcscc, kw_arm_aapcs_vfpcc,
73 kw_signext,
74 kw_zeroext,
75 kw_inreg,
76 kw_sret,
77 kw_nounwind,
78 kw_noreturn,
79 kw_noalias,
80 kw_nocapture,
81 kw_byval,
82 kw_nest,
83 kw_readnone,
84 kw_readonly,
86 kw_inlinehint,
87 kw_noinline,
88 kw_alwaysinline,
89 kw_optsize,
90 kw_ssp,
91 kw_sspreq,
92 kw_noredzone,
93 kw_noimplicitfloat,
94 kw_naked,
96 kw_type,
97 kw_opaque,
99 kw_eq, kw_ne, kw_slt, kw_sgt, kw_sle, kw_sge, kw_ult, kw_ugt, kw_ule,
100 kw_uge, kw_oeq, kw_one, kw_olt, kw_ogt, kw_ole, kw_oge, kw_ord, kw_uno,
101 kw_ueq, kw_une,
103 // Instruction Opcodes (Opcode in UIntVal).
104 kw_add, kw_fadd, kw_sub, kw_fsub, kw_mul, kw_fmul,
105 kw_udiv, kw_sdiv, kw_fdiv,
106 kw_urem, kw_srem, kw_frem, kw_shl, kw_lshr, kw_ashr,
107 kw_and, kw_or, kw_xor, kw_icmp, kw_fcmp,
109 kw_phi, kw_call,
110 kw_trunc, kw_zext, kw_sext, kw_fptrunc, kw_fpext, kw_uitofp, kw_sitofp,
111 kw_fptoui, kw_fptosi, kw_inttoptr, kw_ptrtoint, kw_bitcast,
112 kw_select, kw_va_arg,
114 kw_ret, kw_br, kw_switch, kw_invoke, kw_unwind, kw_unreachable,
116 kw_malloc, kw_alloca, kw_free, kw_load, kw_store, kw_getelementptr,
118 kw_extractelement, kw_insertelement, kw_shufflevector, kw_getresult,
119 kw_extractvalue, kw_insertvalue,
121 // Unsigned Valued tokens (UIntVal).
122 GlobalID, // @42
123 LocalVarID, // %42
125 // String valued tokens (StrVal).
126 LabelStr, // foo:
127 GlobalVar, // @foo @"foo"
128 LocalVar, // %foo %"foo"
129 StringConstant, // "foo"
130 NamedMD, // !foo
132 // Metadata valued tokens.
133 Metadata, // !"foo" !{i8 42}
135 // Type valued tokens (TyVal).
136 Type,
138 APFloat, // APFloatVal
139 APSInt // APSInt
141 } // end namespace lltok
142 } // end namespace llvm
144 #endif