Bruno Cardoso Lopes | 972f589 | 2007-06-06 07:42:06 +0000 | [diff] [blame] | 1 | //===- MipsSubtarget.cpp - Mips Subtarget Information -----------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
Chris Lattner | 4ee451d | 2007-12-29 20:36:04 +0000 | [diff] [blame] | 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
Bruno Cardoso Lopes | 972f589 | 2007-06-06 07:42:06 +0000 | [diff] [blame] | 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file implements the Mips specific subclass of TargetSubtarget. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #include "MipsSubtarget.h" |
| 15 | #include "Mips.h" |
| 16 | #include "MipsGenSubtarget.inc" |
| 17 | using namespace llvm; |
| 18 | |
| 19 | MipsSubtarget::MipsSubtarget(const TargetMachine &TM, const Module &M, |
Bruno Cardoso Lopes | d2947ee | 2008-06-04 01:45:25 +0000 | [diff] [blame] | 20 | const std::string &FS, bool little) : |
| 21 | IsMipsIII(false), |
| 22 | IsLittle(little) |
Bruno Cardoso Lopes | 972f589 | 2007-06-06 07:42:06 +0000 | [diff] [blame] | 23 | { |
Bruno Cardoso Lopes | 000604a | 2007-11-06 03:15:20 +0000 | [diff] [blame] | 24 | std::string CPU = "mips1"; |
Bruno Cardoso Lopes | 972f589 | 2007-06-06 07:42:06 +0000 | [diff] [blame] | 25 | |
| 26 | // Parse features string. |
| 27 | ParseSubtargetFeatures(FS, CPU); |
| 28 | } |