xref: /llvm-project/llvm/lib/Target/ARC/ARCSubtarget.cpp (revision 89b57061f7b769e9ea9bf6ed686e284f3e55affe)
12d1f6d67SPete Couperus //===- ARCSubtarget.cpp - ARC Subtarget Information -------------*- C++ -*-===//
22d1f6d67SPete Couperus //
32946cd70SChandler Carruth // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
42946cd70SChandler Carruth // See https://llvm.org/LICENSE.txt for license information.
52946cd70SChandler Carruth // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
62d1f6d67SPete Couperus //
72d1f6d67SPete Couperus //===----------------------------------------------------------------------===//
82d1f6d67SPete Couperus //
92d1f6d67SPete Couperus // This file implements the ARC specific subclass of TargetSubtargetInfo.
102d1f6d67SPete Couperus //
112d1f6d67SPete Couperus //===----------------------------------------------------------------------===//
122d1f6d67SPete Couperus 
132d1f6d67SPete Couperus #include "ARCSubtarget.h"
142d1f6d67SPete Couperus #include "ARC.h"
15*89b57061SReid Kleckner #include "llvm/MC/TargetRegistry.h"
162d1f6d67SPete Couperus 
172d1f6d67SPete Couperus using namespace llvm;
182d1f6d67SPete Couperus 
192d1f6d67SPete Couperus #define DEBUG_TYPE "arc-subtarget"
202d1f6d67SPete Couperus 
212d1f6d67SPete Couperus #define GET_SUBTARGETINFO_TARGET_DESC
222d1f6d67SPete Couperus #define GET_SUBTARGETINFO_CTOR
232d1f6d67SPete Couperus #include "ARCGenSubtargetInfo.inc"
242d1f6d67SPete Couperus 
anchor()252d1f6d67SPete Couperus void ARCSubtarget::anchor() {}
262d1f6d67SPete Couperus 
ARCSubtarget(const Triple & TT,const std::string & CPU,const std::string & FS,const TargetMachine & TM)272d1f6d67SPete Couperus ARCSubtarget::ARCSubtarget(const Triple &TT, const std::string &CPU,
282d1f6d67SPete Couperus                            const std::string &FS, const TargetMachine &TM)
29417f8ea4SMark Schimmel     : ARCGenSubtargetInfo(TT, CPU, /*TuneCPU=*/CPU, FS), InstrInfo(*this),
30417f8ea4SMark Schimmel       FrameLowering(*this), TLInfo(TM, *this) {}
31