Put all LLVM code into the llvm namespace, as per bug 109.
[oota-llvm.git] / include / llvm / CodeGen / ValueTypes.h
1 //===- CodeGen/ValueTypes.h - Low-Level Target independ. types --*- C++ -*-===//
2 // 
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file was developed by the LLVM research group and is distributed under
6 // the University of Illinois Open Source License. See LICENSE.TXT for details.
7 // 
8 //===----------------------------------------------------------------------===//
9 //
10 // This file defines the set of low-level target independent types which various
11 // values in the code generator are.  This allows the target specific behavior
12 // of instructions to be described to target independent passes.
13 //
14 //===----------------------------------------------------------------------===//
15
16 #ifndef LLVM_CODEGEN_VALUETYPES_H
17 #define LLVM_CODEGEN_VALUETYPES_H
18
19 namespace llvm {
20
21 /// MVT namespace - This namespace defines the ValueType enum, which contains
22 /// the various low-level value types.
23 ///
24 namespace MVT {  // MVT = Machine Value Types
25   enum ValueType {
26     // If you change this numbering, you must change the values in Target.td as
27     // well!
28     Other          =   0,   // This is a non-standard value
29     i1             =   1,   // This is a 1 bit integer value
30     i8             =   2,   // This is an 8 bit integer value
31     i16            =   3,   // This is a 16 bit integer value
32     i32            =   4,   // This is a 32 bit integer value
33     i64            =   5,   // This is a 64 bit integer value
34     i128           =   6,   // This is a 128 bit integer value
35
36     f32             =  7,   // This is a 32 bit floating point value
37     f64             =  8,   // This is a 64 bit floating point value
38     f80             =  9,   // This is a 80 bit floating point value
39     f128            = 10,   // This is a 128 bit floating point value
40
41     isVoid          = 11,   // This has no value
42   };
43 };
44
45 } // End llvm namespace
46
47 #endif