Fix a memory smasher caught by Mac OS X's debug malloc library. We were
[oota-llvm.git] / lib / Target / PowerPC / PowerPCInstrInfo.h
1 //===- PowerPCInstrInfo.h - PowerPC Instruction Information -----*- 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 contains the PowerPC implementation of the TargetInstrInfo class.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef POWERPC_INSTRUCTIONINFO_H
15 #define POWERPC_INSTRUCTIONINFO_H
16
17 #include "PowerPC.h"
18 #include "llvm/Target/TargetInstrInfo.h"
19
20 namespace llvm {
21   namespace PPCII {
22     enum {
23       VMX   = 1 << 0,
24       PPC64 = 1 << 1,
25     };
26
27     enum {
28       None = 0,
29       Gpr = 1,
30       Gpr0 = 2,
31       Simm16 = 3,
32       Zimm16 = 4,
33       PCRelimm24 = 5,
34       Imm24 = 6,
35       Imm5 = 7,
36       PCRelimm14 = 8,
37       Imm14 = 9,
38       Imm2 = 10,
39       Crf = 11,
40       Imm3 = 12,
41       Imm1 = 13,
42       Fpr = 14,
43       Imm4 = 15,
44       Imm8 = 16,
45       Disimm16 = 17,
46       Disimm14 = 18,
47       Spr = 19,
48       Sgr = 20,
49       Imm15 = 21,
50       Vpr = 22
51     };
52   }
53 }
54
55 #endif