2012-02-18 13:03:15 +01:00
|
|
|
//===-- MSP430Subtarget.cpp - MSP430 Subtarget Information ----------------===//
|
2009-05-03 14:57:15 +02:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2011-07-01 23:01:15 +02:00
|
|
|
// This file implements the MSP430 specific subclass of TargetSubtargetInfo.
|
2009-05-03 14:57:15 +02:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "MSP430Subtarget.h"
|
|
|
|
#include "MSP430.h"
|
2011-08-24 20:08:43 +02:00
|
|
|
#include "llvm/Support/TargetRegistry.h"
|
2011-07-01 22:45:01 +02:00
|
|
|
|
2014-04-22 04:03:14 +02:00
|
|
|
using namespace llvm;
|
|
|
|
|
2014-04-22 00:55:11 +02:00
|
|
|
#define DEBUG_TYPE "msp430-subtarget"
|
|
|
|
|
2011-07-01 22:45:01 +02:00
|
|
|
#define GET_SUBTARGETINFO_TARGET_DESC
|
2011-07-08 03:53:10 +02:00
|
|
|
#define GET_SUBTARGETINFO_CTOR
|
2011-07-02 00:36:09 +02:00
|
|
|
#include "MSP430GenSubtargetInfo.inc"
|
2009-05-03 14:57:15 +02:00
|
|
|
|
2011-12-20 03:50:00 +01:00
|
|
|
void MSP430Subtarget::anchor() { }
|
|
|
|
|
2015-03-03 18:54:39 +01:00
|
|
|
MSP430Subtarget &
|
|
|
|
MSP430Subtarget::initializeSubtargetDependencies(StringRef CPU, StringRef FS) {
|
2014-06-27 03:14:54 +02:00
|
|
|
ParseSubtargetFeatures("generic", FS);
|
|
|
|
return *this;
|
2009-05-03 14:57:15 +02:00
|
|
|
}
|
2014-06-27 03:14:54 +02:00
|
|
|
|
2015-06-10 14:11:26 +02:00
|
|
|
MSP430Subtarget::MSP430Subtarget(const Triple &TT, const std::string &CPU,
|
2014-06-27 03:14:54 +02:00
|
|
|
const std::string &FS, const TargetMachine &TM)
|
2015-09-15 18:17:27 +02:00
|
|
|
: MSP430GenSubtargetInfo(TT, CPU, FS), FrameLowering(),
|
2015-07-09 04:10:08 +02:00
|
|
|
InstrInfo(initializeSubtargetDependencies(CPU, FS)), TLInfo(TM, *this) {}
|