1 //===- SparcV8Subtarget.cpp - SPARC Subtarget Information -----------------===//
3 // The LLVM Compiler Infrastructure
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.
8 //===----------------------------------------------------------------------===//
10 // This file implements the SPARC specific subclass of TargetSubtarget.
12 //===----------------------------------------------------------------------===//
14 #include "SparcV8Subtarget.h"
15 #include "SparcV8GenSubtarget.inc"
18 SparcV8Subtarget::SparcV8Subtarget(const Module &M, const std::string &FS) {
19 // Set the default features.
21 V8DeprecatedInsts = false;
24 // Determine default and user specified characteristics
25 std::string CPU = "generic";
27 // FIXME: autodetect host here!
29 // Parse features string.
30 ParseSubtargetFeatures(FS, CPU);