Implement bswap
[llvm/msp430.git] / lib / AsmParser / LLToken.h
blobd8bd38a4a61d8786c70c1ff183171dcd878b4ef7
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_internal, kw_linkonce, kw_linkonce_odr, kw_weak, kw_weak_odr,
40 kw_appending, kw_dllimport, kw_dllexport, kw_common,kw_available_externally,
41 kw_default, kw_hidden, kw_protected,
42 kw_extern_weak,
43 kw_external, kw_thread_local,
44 kw_zeroinitializer,
45 kw_undef, kw_null,
46 kw_to,
47 kw_tail,
48 kw_target,
49 kw_triple,
50 kw_deplibs,
51 kw_datalayout,
52 kw_volatile,
53 kw_align,
54 kw_addrspace,
55 kw_section,
56 kw_alias,
57 kw_module,
58 kw_asm,
59 kw_sideeffect,
60 kw_gc,
61 kw_c,
63 kw_cc, kw_ccc, kw_fastcc, kw_coldcc, kw_x86_stdcallcc, kw_x86_fastcallcc,
65 kw_signext,
66 kw_zeroext,
67 kw_inreg,
68 kw_sret,
69 kw_nounwind,
70 kw_noreturn,
71 kw_noalias,
72 kw_nocapture,
73 kw_byval,
74 kw_nest,
75 kw_readnone,
76 kw_readonly,
78 kw_noinline,
79 kw_alwaysinline,
80 kw_optsize,
81 kw_ssp,
82 kw_sspreq,
84 kw_type,
85 kw_opaque,
87 kw_eq, kw_ne, kw_slt, kw_sgt, kw_sle, kw_sge, kw_ult, kw_ugt, kw_ule,
88 kw_uge, kw_oeq, kw_one, kw_olt, kw_ogt, kw_ole, kw_oge, kw_ord, kw_uno,
89 kw_ueq, kw_une,
91 // Instruction Opcodes (Opcode in UIntVal).
92 kw_add, kw_sub, kw_mul, kw_udiv, kw_sdiv, kw_fdiv,
93 kw_urem, kw_srem, kw_frem, kw_shl, kw_lshr, kw_ashr,
94 kw_and, kw_or, kw_xor, kw_icmp, kw_fcmp, kw_vicmp, kw_vfcmp,
96 kw_phi, kw_call,
97 kw_trunc, kw_zext, kw_sext, kw_fptrunc, kw_fpext, kw_uitofp, kw_sitofp,
98 kw_fptoui, kw_fptosi, kw_inttoptr, kw_ptrtoint, kw_bitcast,
99 kw_select, kw_va_arg,
101 kw_ret, kw_br, kw_switch, kw_invoke, kw_unwind, kw_unreachable,
103 kw_malloc, kw_alloca, kw_free, kw_load, kw_store, kw_getelementptr,
105 kw_extractelement, kw_insertelement, kw_shufflevector, kw_getresult,
106 kw_extractvalue, kw_insertvalue,
108 // Unsigned Valued tokens (UIntVal).
109 GlobalID, // @42
110 LocalVarID, // %42
112 // String valued tokens (StrVal).
113 LabelStr, // foo:
114 GlobalVar, // @foo @"foo"
115 LocalVar, // %foo %"foo"
116 StringConstant, // "foo"
118 // Metadata valued tokens.
119 Metadata, // !"foo" !{i8 42}
121 // Type valued tokens (TyVal).
122 Type,
124 APFloat, // APFloatVal
125 APSInt // APSInt
127 } // end namespace lltok
128 } // end namespace llvm
130 #endif