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 TargetMachine &TM, const Module &M, 
00020                              const std::string &FS)
00021   : IsXS1A(false),
00022     IsXS1B(false)
00023 {
00024   std::string CPU = "xs1a-generic";
00025 
00026   // Parse features string.
00027   ParseSubtargetFeatures(FS, CPU);
00028 }