2012-04-14 09:54:10 -04:00
|
|
|
//===-- XCoreSubtarget.cpp - XCore Subtarget Information ------------------===//
|
2009-06-02 13:52:33 -04:00
|
|
|
//
|
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
|
//
|
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
|
//
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
//
|
2011-07-17 11:36:56 -04:00
|
|
|
// This file implements the XCore specific subclass of TargetSubtargetInfo.
|
2009-06-02 13:52:33 -04:00
|
|
|
//
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
|
|
#include "XCoreSubtarget.h"
|
|
|
|
|
#include "XCore.h"
|
2011-10-20 17:10:27 -04:00
|
|
|
#include "llvm/Support/TargetRegistry.h"
|
2011-07-17 11:36:56 -04:00
|
|
|
|
2014-11-24 04:08:18 -05:00
|
|
|
using namespace llvm;
|
|
|
|
|
|
|
|
|
|
#define DEBUG_TYPE "xcore-subtarget"
|
|
|
|
|
|
2011-07-17 11:36:56 -04:00
|
|
|
#define GET_SUBTARGETINFO_TARGET_DESC
|
|
|
|
|
#define GET_SUBTARGETINFO_CTOR
|
|
|
|
|
#include "XCoreGenSubtargetInfo.inc"
|
|
|
|
|
|
2012-04-14 09:54:10 -04:00
|
|
|
void XCoreSubtarget::anchor() { }
|
|
|
|
|
|
2015-06-21 09:59:01 -04:00
|
|
|
XCoreSubtarget::XCoreSubtarget(const Triple &TT, const std::string &CPU,
|
2014-11-24 04:08:18 -05:00
|
|
|
const std::string &FS, const TargetMachine &TM)
|
2015-05-27 14:44:32 -04:00
|
|
|
: XCoreGenSubtargetInfo(TT, CPU, FS), InstrInfo(), FrameLowering(*this),
|
2015-08-07 19:01:33 -04:00
|
|
|
TLInfo(TM, *this), TSInfo() {}
|