18#define DEBUG_TYPE "csky-subtarget"
19#define GET_SUBTARGETINFO_TARGET_DESC
20#define GET_SUBTARGETINFO_CTOR
21#include "CSKYGenSubtargetInfo.inc"
23void CSKYSubtarget::anchor() {}
30 if (TuneCPUName.
empty())
31 TuneCPUName = CPUName;
34 UseHardFloatABI =
false;
35 HasFPUv2SingleFloat =
false;
36 HasFPUv2DoubleFloat =
false;
37 HasFPUv3HalfWord =
false;
38 HasFPUv3HalfFloat =
false;
39 HasFPUv3SingleFloat =
false;
40 HasFPUv3DoubleFloat =
false;
59 HasHardwareDivide =
false;
60 HasHighRegisters =
false;
65 HasVDSPV1_128 =
false;
67 DumpConstPool =
false;
68 EnableInterruptAttribute =
false;
72 EnableStackSize =
false;
93 FrameLowering(initializeSubtargetDependencies(TT, CPU, TuneCPU, FS)),
94 InstrInfo(*this), RegInfo(), TLInfo(TM, *this) {}
100 return UseHardFloatABI;
CSKYSubtarget & initializeSubtargetDependencies(const Triple &TT, StringRef CPU, StringRef TuneCPU, StringRef FS)
Initializes using the passed in CPU and feature strings so that we can use initializer lists for subt...
void ParseSubtargetFeatures(StringRef CPU, StringRef TuneCPU, StringRef FS)
bool useHardFloatABI() const
CSKYSubtarget(const Triple &TT, StringRef CPU, StringRef TuneCPU, StringRef FS, const TargetMachine &TM)
const CSKYTargetLowering * getTargetLowering() const override
StringRef - Represent a constant reference to a string, i.e.
constexpr bool empty() const
empty - Check if the string is empty.
const TargetMachine & getTargetMachine() const
Primary interface to the complete machine description for the target machine.
FloatABI::ABIType FloatABIType
FloatABIType - This setting is set by -float-abi=xxx option is specfied on the command line.
Triple - Helper class for working with autoconf configuration names.
This is an optimization pass for GlobalISel generic memory operations.