LLVM API Documentation
00001 //===- PowerPCInstrInfo.h - PowerPC Instruction Information -----*- C++ -*-===// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file was developed by the LLVM research group and is distributed under 00006 // the University of Illinois Open Source License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 // 00010 // This file contains the PowerPC implementation of the TargetInstrInfo class. 00011 // 00012 //===----------------------------------------------------------------------===// 00013 00014 #ifndef POWERPC_INSTRUCTIONINFO_H 00015 #define POWERPC_INSTRUCTIONINFO_H 00016 00017 #include "PowerPC.h" 00018 #include "llvm/Target/TargetInstrInfo.h" 00019 00020 namespace llvm { 00021 namespace PPCII { 00022 enum { 00023 VMX = 1 << 0, 00024 PPC64 = 1 << 1, 00025 }; 00026 00027 enum { 00028 None = 0, 00029 Gpr = 1, 00030 Gpr0 = 2, 00031 Simm16 = 3, 00032 Zimm16 = 4, 00033 PCRelimm24 = 5, 00034 Imm24 = 6, 00035 Imm5 = 7, 00036 PCRelimm14 = 8, 00037 Imm14 = 9, 00038 Imm2 = 10, 00039 Crf = 11, 00040 Imm3 = 12, 00041 Imm1 = 13, 00042 Fpr = 14, 00043 Imm4 = 15, 00044 Imm8 = 16, 00045 Disimm16 = 17, 00046 Disimm14 = 18, 00047 Spr = 19, 00048 Sgr = 20, 00049 Imm15 = 21, 00050 Vpr = 22 00051 }; 00052 } 00053 } 00054 00055 #endif