1 //===- CodeGen/ValueTypes.h - Low-Level Target independ. types --*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
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.
8 //===----------------------------------------------------------------------===//
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.
14 //===----------------------------------------------------------------------===//
16 #ifndef LLVM_CODEGEN_VALUETYPES_H
17 #define LLVM_CODEGEN_VALUETYPES_H
21 /// MVT namespace - This namespace defines the ValueType enum, which contains
22 /// the various low-level value types.
24 namespace MVT { // MVT = Machine Value Types
26 // If you change this numbering, you must change the values in Target.td as
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
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
41 isVoid = 11, // This has no value
45 } // End llvm namespace