Misha Brukman | 5dfe3a9 | 2004-06-21 16:55:25 +0000 | [diff] [blame] | 1 | //===- PowerPCInstrInfo.h - PowerPC Instruction Information -----*- C++ -*-===// |
Misha Brukman | b5f662f | 2005-04-21 23:30:14 +0000 | [diff] [blame] | 2 | // |
Misha Brukman | 5dfe3a9 | 2004-06-21 16:55:25 +0000 | [diff] [blame] | 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. |
Misha Brukman | b5f662f | 2005-04-21 23:30:14 +0000 | [diff] [blame] | 7 | // |
Misha Brukman | 5dfe3a9 | 2004-06-21 16:55:25 +0000 | [diff] [blame] | 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file contains the PowerPC implementation of the TargetInstrInfo class. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
Misha Brukman | 0145881 | 2004-08-11 00:11:25 +0000 | [diff] [blame] | 14 | #ifndef POWERPC_INSTRUCTIONINFO_H |
| 15 | #define POWERPC_INSTRUCTIONINFO_H |
Misha Brukman | 5dfe3a9 | 2004-06-21 16:55:25 +0000 | [diff] [blame] | 16 | |
Misha Brukman | 8aebe9f | 2004-07-27 18:34:11 +0000 | [diff] [blame] | 17 | #include "PowerPC.h" |
Misha Brukman | 8aebe9f | 2004-07-27 18:34:11 +0000 | [diff] [blame] | 18 | #include "llvm/Target/TargetInstrInfo.h" |
Misha Brukman | 5dfe3a9 | 2004-06-21 16:55:25 +0000 | [diff] [blame] | 19 | |
| 20 | namespace llvm { |
Chris Lattner | 583e32b | 2004-11-23 20:37:41 +0000 | [diff] [blame] | 21 | namespace PPCII { |
| 22 | enum { |
| 23 | VMX = 1 << 0, |
| 24 | PPC64 = 1 << 1, |
| 25 | }; |
Misha Brukman | b5f662f | 2005-04-21 23:30:14 +0000 | [diff] [blame] | 26 | |
Chris Lattner | 583e32b | 2004-11-23 20:37:41 +0000 | [diff] [blame] | 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 | } |
Misha Brukman | 5dfe3a9 | 2004-06-21 16:55:25 +0000 | [diff] [blame] | 53 | } |
| 54 | |
| 55 | #endif |