1 //===-- AVRSubtarget.cpp - AVR Subtarget Information ----------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file implements the AVR specific subclass of TargetSubtargetInfo.
12 //===----------------------------------------------------------------------===//
14 #include "AVRSubtarget.h"
16 #include "llvm/BinaryFormat/ELF.h"
17 #include "llvm/Support/TargetRegistry.h"
20 #include "AVRTargetMachine.h"
21 #include "MCTargetDesc/AVRMCTargetDesc.h"
23 #define DEBUG_TYPE "avr-subtarget"
25 #define GET_SUBTARGETINFO_TARGET_DESC
26 #define GET_SUBTARGETINFO_CTOR
27 #include "AVRGenSubtargetInfo.inc"
31 AVRSubtarget::AVRSubtarget(const Triple
&TT
, const std::string
&CPU
,
32 const std::string
&FS
, AVRTargetMachine
&TM
)
33 : AVRGenSubtargetInfo(TT
, CPU
, FS
), InstrInfo(), FrameLowering(),
37 m_hasSRAM(false), m_hasJMPCALL(false), m_hasIJMPCALL(false),
38 m_hasEIJMPCALL(false), m_hasADDSUBIW(false), m_hasSmallStack(false),
39 m_hasMOVW(false), m_hasLPM(false), m_hasLPMX(false), m_hasELPM(false),
40 m_hasELPMX(false), m_hasSPM(false), m_hasSPMX(false), m_hasDES(false),
41 m_supportsRMW(false), m_supportsMultiplication(false), m_hasBREAK(false),
42 m_hasTinyEncoding(false), ELFArch(false), m_FeatureSetDummy(false) {
43 // Parse features string.
44 ParseSubtargetFeatures(CPU
, FS
);
47 } // end of namespace llvm