Chris Lattner | 0d170a7 | 2006-01-26 06:51:21 +0000 | [diff] [blame] | 1 | //===- SparcV8Subtarget.cpp - SPARC Subtarget Information -----------------===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file was developed by Chris Lattner and is distributed under the |
| 6 | // University of Illinois Open Source License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file implements the SPARC specific subclass of TargetSubtarget. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #include "SparcV8Subtarget.h" |
| 15 | #include "SparcV8GenSubtarget.inc" |
| 16 | using namespace llvm; |
| 17 | |
| 18 | SparcV8Subtarget::SparcV8Subtarget(const Module &M, const std::string &FS) { |
Chris Lattner | 184cc4a | 2006-01-27 22:38:36 +0000 | [diff] [blame^] | 19 | // Set the default features. |
| 20 | IsV9 = false; |
| 21 | V8DeprecatedInsts = false; |
| 22 | IsVIS = false; |
| 23 | |
Chris Lattner | 0d170a7 | 2006-01-26 06:51:21 +0000 | [diff] [blame] | 24 | // Determine default and user specified characteristics |
| 25 | std::string CPU = "generic"; |
| 26 | |
| 27 | // FIXME: autodetect host here! |
| 28 | |
| 29 | // Parse features string. |
| 30 | ParseSubtargetFeatures(FS, CPU); |
| 31 | |
Chris Lattner | 4dcfaac | 2006-01-26 07:22:22 +0000 | [diff] [blame] | 32 | }; |