[llvm-commits] [llvm] r43749 - in /llvm/trunk/lib/Target/Mips: Mips.td MipsSubtarget.cpp
Bruno Cardoso Lopes
bruno.cardoso at gmail.com
Mon Nov 5 19:15:23 PST 2007
Author: bruno
Date: Mon Nov 5 21:15:20 2007
New Revision: 43749
URL: http://llvm.org/viewvc/llvm-project?rev=43749&view=rev
Log:
Better processor definition
Modified:
llvm/trunk/lib/Target/Mips/Mips.td
llvm/trunk/lib/Target/Mips/MipsSubtarget.cpp
Modified: llvm/trunk/lib/Target/Mips/Mips.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/Mips.td?rev=43749&r1=43748&r2=43749&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/Mips.td (original)
+++ llvm/trunk/lib/Target/Mips/Mips.td Mon Nov 5 21:15:20 2007
@@ -33,6 +33,7 @@
// CPU Directives //
//===----------------------------------------------------------------------===//
+// Not currently supported, but work as SubtargetFeature placeholder.
def FeatureMipsIII : SubtargetFeature<"mips3", "IsMipsIII", "true",
"MipsIII ISA Support">;
@@ -40,8 +41,9 @@
// Mips processors supported.
//===----------------------------------------------------------------------===//
-def : Processor<"generic", MipsGenericItineraries, []>;
-//def : Processor<"r4000", MipsR4000Itineraries, [FeatureMipsIII]>;
+def : Processor<"mips1", MipsGenericItineraries, []>;
+def : Processor<"r2000", MipsGenericItineraries, []>;
+def : Processor<"r3000", MipsGenericItineraries, []>;
def Mips : Target {
let InstructionSet = MipsInstrInfo;
Modified: llvm/trunk/lib/Target/Mips/MipsSubtarget.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsSubtarget.cpp?rev=43749&r1=43748&r2=43749&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsSubtarget.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsSubtarget.cpp Mon Nov 5 21:15:20 2007
@@ -20,7 +20,7 @@
const std::string &FS) :
IsMipsIII(false)
{
- std::string CPU = "generic";
+ std::string CPU = "mips1";
// Parse features string.
ParseSubtargetFeatures(FS, CPU);
More information about the llvm-commits
mailing list