LLVM API Documentation

XCoreSubtarget.cpp
Go to the documentation of this file.
00001 //===-- XCoreSubtarget.cpp - XCore Subtarget Information ------------------===//
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 TargetSubtargetInfo.
00011 //
00012 //===----------------------------------------------------------------------===//
00013 
00014 #include "XCoreSubtarget.h"
00015 #include "XCore.h"
00016 #include "llvm/Support/TargetRegistry.h"
00017 
00018 using namespace llvm;
00019 
00020 #define DEBUG_TYPE "xcore-subtarget"
00021 
00022 #define GET_SUBTARGETINFO_TARGET_DESC
00023 #define GET_SUBTARGETINFO_CTOR
00024 #include "XCoreGenSubtargetInfo.inc"
00025 
00026 void XCoreSubtarget::anchor() { }
00027 
00028 XCoreSubtarget::XCoreSubtarget(const std::string &TT, const std::string &CPU,
00029                                const std::string &FS, const TargetMachine &TM)
00030     : XCoreGenSubtargetInfo(TT, CPU, FS),
00031       DL("e-m:e-p:32:32-i1:8:32-i8:8:32-i16:16:32-i64:32-f64:32-a:0:32-n32"),
00032       InstrInfo(), FrameLowering(*this), TLInfo(TM), TSInfo(DL) {}