Replace the -unwind-tables option with a per function flag. This is more
[oota-llvm.git] / lib / AsmParser / LLToken.h
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 LIBS_ASMPARSER_LLTOKEN_H
15 #define LIBS_ASMPARSER_LLTOKEN_H
16
17 namespace llvm {
18 namespace lltok {
19   enum Kind {
20     // Markers
21     Eof, Error,
22
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 /)
32     exclaim,           // !
33
34     kw_x,
35     kw_begin,   kw_end,
36     kw_true,    kw_false,
37     kw_declare, kw_define,
38     kw_global,  kw_constant,
39
40     kw_private, kw_linker_private, kw_linker_private_weak,
41     kw_linker_private_weak_def_auto, kw_internal,
42     kw_linkonce, kw_linkonce_odr, kw_weak, kw_weak_odr, kw_appending,
43     kw_dllimport, kw_dllexport, kw_common, kw_available_externally,
44     kw_default, kw_hidden, kw_protected,
45     kw_unnamed_addr,
46     kw_extern_weak,
47     kw_external, kw_thread_local,
48     kw_zeroinitializer,
49     kw_undef, kw_null,
50     kw_to,
51     kw_tail,
52     kw_target,
53     kw_triple,
54     kw_deplibs,
55     kw_datalayout,
56     kw_volatile,
57     kw_nuw,
58     kw_nsw,
59     kw_exact,
60     kw_inbounds,
61     kw_align,
62     kw_addrspace,
63     kw_section,
64     kw_alias,
65     kw_module,
66     kw_asm,
67     kw_sideeffect,
68     kw_alignstack,
69     kw_gc,
70     kw_c,
71
72     kw_cc, kw_ccc, kw_fastcc, kw_coldcc,
73     kw_x86_stdcallcc, kw_x86_fastcallcc, kw_x86_thiscallcc,
74     kw_arm_apcscc, kw_arm_aapcscc, kw_arm_aapcs_vfpcc,
75     kw_msp430_intrcc,
76     kw_ptx_kernel, kw_ptx_device,
77
78     kw_signext,
79     kw_zeroext,
80     kw_inreg,
81     kw_sret,
82     kw_nounwind,
83     kw_noreturn,
84     kw_noalias,
85     kw_nocapture,
86     kw_byval,
87     kw_nest,
88     kw_readnone,
89     kw_readonly,
90     kw_uwtable,
91
92     kw_inlinehint,
93     kw_noinline,
94     kw_alwaysinline,
95     kw_optsize,
96     kw_ssp,
97     kw_sspreq,
98     kw_noredzone,
99     kw_noimplicitfloat,
100     kw_naked,
101     kw_hotpatch,
102
103     kw_type,
104     kw_opaque,
105
106     kw_eq, kw_ne, kw_slt, kw_sgt, kw_sle, kw_sge, kw_ult, kw_ugt, kw_ule,
107     kw_uge, kw_oeq, kw_one, kw_olt, kw_ogt, kw_ole, kw_oge, kw_ord, kw_uno,
108     kw_ueq, kw_une,
109
110     // Instruction Opcodes (Opcode in UIntVal).
111     kw_add,  kw_fadd, kw_sub,  kw_fsub, kw_mul,  kw_fmul,
112     kw_udiv, kw_sdiv, kw_fdiv,
113     kw_urem, kw_srem, kw_frem, kw_shl,  kw_lshr, kw_ashr,
114     kw_and,  kw_or,   kw_xor,  kw_icmp, kw_fcmp,
115
116     kw_phi, kw_call,
117     kw_trunc, kw_zext, kw_sext, kw_fptrunc, kw_fpext, kw_uitofp, kw_sitofp,
118     kw_fptoui, kw_fptosi, kw_inttoptr, kw_ptrtoint, kw_bitcast,
119     kw_select, kw_va_arg,
120
121     kw_ret, kw_br, kw_switch, kw_indirectbr, kw_invoke, kw_unwind,
122     kw_unreachable,
123
124     kw_malloc, kw_alloca, kw_free, kw_load, kw_store, kw_getelementptr,
125
126     kw_extractelement, kw_insertelement, kw_shufflevector, kw_getresult,
127     kw_extractvalue, kw_insertvalue, kw_blockaddress,
128
129     // Unsigned Valued tokens (UIntVal).
130     GlobalID,          // @42
131     LocalVarID,        // %42
132
133     // String valued tokens (StrVal).
134     LabelStr,          // foo:
135     GlobalVar,         // @foo @"foo"
136     LocalVar,          // %foo %"foo"
137     MetadataVar,       // !foo
138     StringConstant,    // "foo"
139
140     // Type valued tokens (TyVal).
141     Type,
142
143     APFloat,  // APFloatVal
144     APSInt // APSInt
145   };
146 } // end namespace lltok
147 } // end namespace llvm
148
149 #endif