diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-10-14 22:44:13 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-10-14 22:44:13 +0000 |
| commit | 2121f3ca50310d0d1d4c58e3be08a7c099caa1f9 (patch) | |
| tree | 91392dc3ea5c07ef2d6ca5e46ca96d09442a2bcf | |
| parent | 9d7008b08d65ba1d9a0d6a5ea8e7e2c1ba9ff8c1 (diff) | |
| download | bcm5719-llvm-2121f3ca50310d0d1d4c58e3be08a7c099caa1f9.tar.gz bcm5719-llvm-2121f3ca50310d0d1d4c58e3be08a7c099caa1f9.zip | |
Nuke PowerPCInstrFormats.h, its contents are dead. Remove the definitions
from the .td file that correspond to it
llvm-svn: 23736
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPC32InstrInfo.h | 5 | ||||
| -rw-r--r-- | llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp | 7 | ||||
| -rw-r--r-- | llvm/lib/Target/PowerPC/PowerPCBranchSelector.cpp | 1 | ||||
| -rw-r--r-- | llvm/lib/Target/PowerPC/PowerPCInstrFormats.td | 28 | ||||
| -rw-r--r-- | llvm/lib/Target/PowerPC/PowerPCInstrInfo.h | 55 |
6 files changed, 11 insertions, 87 deletions
diff --git a/llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp b/llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp index 5bae7c9280c..3cca36220b0 100644 --- a/llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp +++ b/llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp @@ -15,7 +15,7 @@ #include "PowerPC.h" #include "PowerPCInstrBuilder.h" -#include "PowerPCInstrInfo.h" +#include "PPC32InstrInfo.h" #include "PPC32TargetMachine.h" #include "PPC32ISelLowering.h" #include "llvm/Constants.h" diff --git a/llvm/lib/Target/PowerPC/PPC32InstrInfo.h b/llvm/lib/Target/PowerPC/PPC32InstrInfo.h index bbc0be4cd56..8a230897e79 100644 --- a/llvm/lib/Target/PowerPC/PPC32InstrInfo.h +++ b/llvm/lib/Target/PowerPC/PPC32InstrInfo.h @@ -14,11 +14,12 @@ #ifndef POWERPC32_INSTRUCTIONINFO_H #define POWERPC32_INSTRUCTIONINFO_H -#include "PowerPCInstrInfo.h" +#include "PowerPC.h" +#include "llvm/Target/TargetInstrInfo.h" #include "PPC32RegisterInfo.h" namespace llvm { - + class PPC32InstrInfo : public TargetInstrInfo { const PPC32RegisterInfo RI; public: diff --git a/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp index ee428f9b1bc..6073d6031ee 100644 --- a/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp +++ b/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp @@ -342,6 +342,13 @@ void PowerPCAsmPrinter::printOp(const MachineOperand &MO, bool IsCallOp) { /// void PowerPCAsmPrinter::printMachineInstruction(const MachineInstr *MI) { ++EmittedInsts; + +/// NOTE: THIS SHOULD NEVER BE CHECKED IN. STAY LOCAL IN CHRIS'S TREE. + if (0 && MI->getOpcode() == PPC::OR) + assert((MI->getOperand(0).getReg() != MI->getOperand(1).getReg() || + MI->getOperand(2).getReg() != MI->getOperand(1).getReg()) && + "noop copy emitted!"); + // Check for slwi/srwi mnemonics. if (MI->getOpcode() == PPC::RLWINM) { bool FoundMnemonic = false; diff --git a/llvm/lib/Target/PowerPC/PowerPCBranchSelector.cpp b/llvm/lib/Target/PowerPC/PowerPCBranchSelector.cpp index 6e0e36f0a1d..4286d8a14e9 100644 --- a/llvm/lib/Target/PowerPC/PowerPCBranchSelector.cpp +++ b/llvm/lib/Target/PowerPC/PowerPCBranchSelector.cpp @@ -18,7 +18,6 @@ #define DEBUG_TYPE "bsel" #include "PowerPC.h" #include "PowerPCInstrBuilder.h" -#include "PowerPCInstrInfo.h" #include "PPC32InstrInfo.h" #include "llvm/CodeGen/MachineFunctionPass.h" #include "llvm/Support/Debug.h" diff --git a/llvm/lib/Target/PowerPC/PowerPCInstrFormats.td b/llvm/lib/Target/PowerPC/PowerPCInstrFormats.td index 72fa0eb1343..880a66a99e2 100644 --- a/llvm/lib/Target/PowerPC/PowerPCInstrFormats.td +++ b/llvm/lib/Target/PowerPC/PowerPCInstrFormats.td @@ -10,34 +10,6 @@ // //===----------------------------------------------------------------------===// -class Format<bits<5> val> { - bits<5> Value = val; -} - -def Pseudo: Format<0>; -def Gpr : Format<1>; -def Gpr0 : Format<2>; -def Simm16 : Format<3>; -def PCRelimm24 : Format<5>; -def Imm24 : Format<6>; -def Imm5 : Format<7>; -def PCRelimm14 : Format<8>; -def Imm14 : Format<9>; -def Imm2 : Format<10>; -def Crf : Format<11>; -def Imm3 : Format<12>; -def Imm1 : Format<13>; -def Fpr : Format<14>; -def Imm4 : Format<15>; -def Imm8 : Format<16>; -def Disimm16 : Format<17>; -def Disimm14 : Format<18>; -def Spr : Format<19>; -def Sgr : Format<20>; -def Imm15 : Format<21>; -def Vpr : Format<22>; -def Imm6 : Format<23>; - //===----------------------------------------------------------------------===// // // PowerPC instruction formats diff --git a/llvm/lib/Target/PowerPC/PowerPCInstrInfo.h b/llvm/lib/Target/PowerPC/PowerPCInstrInfo.h deleted file mode 100644 index e1ab2511918..00000000000 --- a/llvm/lib/Target/PowerPC/PowerPCInstrInfo.h +++ /dev/null @@ -1,55 +0,0 @@ -//===- PowerPCInstrInfo.h - PowerPC Instruction Information -----*- C++ -*-===// -// -// The LLVM Compiler Infrastructure -// -// This file was developed by the LLVM research group and is distributed under -// the University of Illinois Open Source License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// This file contains the PowerPC implementation of the TargetInstrInfo class. -// -//===----------------------------------------------------------------------===// - -#ifndef POWERPC_INSTRUCTIONINFO_H -#define POWERPC_INSTRUCTIONINFO_H - -#include "PowerPC.h" -#include "llvm/Target/TargetInstrInfo.h" - -namespace llvm { - namespace PPCII { - enum { - VMX = 1 << 0, - PPC64 = 1 << 1, - }; - - enum { - None = 0, - Gpr = 1, - Gpr0 = 2, - Simm16 = 3, - Zimm16 = 4, - PCRelimm24 = 5, - Imm24 = 6, - Imm5 = 7, - PCRelimm14 = 8, - Imm14 = 9, - Imm2 = 10, - Crf = 11, - Imm3 = 12, - Imm1 = 13, - Fpr = 14, - Imm4 = 15, - Imm8 = 16, - Disimm16 = 17, - Disimm14 = 18, - Spr = 19, - Sgr = 20, - Imm15 = 21, - Vpr = 22 - }; - } -} - -#endif |

