LLVM API Documentation

XCoreSubtarget.cpp

Go to the documentation of this file.
00001 //===- XCoreSubtarget.cpp - XCore Subtarget Information -----------*- C++ -*-=//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 //
00010 // This file implements the XCore specific subclass of TargetSubtarget.
00011 //
00012 //===----------------------------------------------------------------------===//
00013 
00014 #include "XCoreSubtarget.h"
00015 #include "XCore.h"
00016 #include "XCoreGenSubtarget.inc"
00017 using namespace llvm;
00018 
00019 XCoreSubtarget::XCoreSubtarget(const std::string &TT, const std::string &FS)
00020   : IsXS1A(false),
00021     IsXS1B(false)
00022 {
00023   std::string CPU = "xs1a-generic";
00024 
00025   // Parse features string.
00026   ParseSubtargetFeatures(FS, CPU);
00027 }