brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 2f6517e Raw
31 lines · cpp
1//===-- XCoreSubtarget.cpp - XCore Subtarget Information ------------------===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8//9// This file implements the XCore specific subclass of TargetSubtargetInfo.10//11//===----------------------------------------------------------------------===//12 13#include "XCoreSubtarget.h"14#include "XCore.h"15#include "llvm/MC/TargetRegistry.h"16 17using namespace llvm;18 19#define DEBUG_TYPE "xcore-subtarget"20 21#define GET_SUBTARGETINFO_TARGET_DESC22#define GET_SUBTARGETINFO_CTOR23#include "XCoreGenSubtargetInfo.inc"24 25void XCoreSubtarget::anchor() { }26 27XCoreSubtarget::XCoreSubtarget(const Triple &TT, const std::string &CPU,28                               const std::string &FS, const TargetMachine &TM)29    : XCoreGenSubtargetInfo(TT, CPU, /*TuneCPU*/ CPU, FS), InstrInfo(*this),30      FrameLowering(*this), TLInfo(TM, *this) {}31