Revert " [LoongArch][ISel] Check the number of sign bits in `PatGprGpr_32` (#107432)"
[llvm-project.git] / llvm / lib / Target / AVR / AVRSubtarget.cpp
blob8051f9d21714bf376361c3fe4a6b763d0afa8e1f
1 //===-- AVRSubtarget.cpp - AVR 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-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file implements the AVR specific subclass of TargetSubtargetInfo.
11 //===----------------------------------------------------------------------===//
13 #include "AVRSubtarget.h"
15 #include "llvm/BinaryFormat/ELF.h"
16 #include "llvm/MC/TargetRegistry.h"
18 #include "AVR.h"
19 #include "AVRTargetMachine.h"
20 #include "MCTargetDesc/AVRMCTargetDesc.h"
22 #define DEBUG_TYPE "avr-subtarget"
24 #define GET_SUBTARGETINFO_TARGET_DESC
25 #define GET_SUBTARGETINFO_CTOR
26 #include "AVRGenSubtargetInfo.inc"
28 namespace llvm {
30 AVRSubtarget::AVRSubtarget(const Triple &TT, const std::string &CPU,
31 const std::string &FS, const AVRTargetMachine &TM)
32 : AVRGenSubtargetInfo(TT, CPU, /*TuneCPU*/ CPU, FS), InstrInfo(*this),
33 TLInfo(TM, initializeSubtargetDependencies(CPU, FS, TM)) {
34 // Parse features string.
35 ParseSubtargetFeatures(CPU, /*TuneCPU*/ CPU, FS);
38 AVRSubtarget &
39 AVRSubtarget::initializeSubtargetDependencies(StringRef CPU, StringRef FS,
40 const TargetMachine &TM) {
41 // Parse features string.
42 ParseSubtargetFeatures(CPU, /*TuneCPU*/ CPU, FS);
43 return *this;
46 } // end of namespace llvm