21 #define DEBUG_TYPE "sparc-subtarget"
23 #define GET_SUBTARGETINFO_TARGET_DESC
24 #define GET_SUBTARGETINFO_CTOR
25 #include "SparcGenSubtargetInfo.inc"
27 void SparcSubtarget::anchor() { }
33 V8DeprecatedInsts =
false;
42 PerformSDIVReplace =
false;
50 std::string CPUName = CPU;
52 CPUName = (Is64Bit) ?
"v9" :
"v8";
68 InstrInfo(initializeSubtargetDependencies(CPU, FS)), TLInfo(TM, *this),
69 FrameLowering(*this) {}
79 frameSize =
alignTo(frameSize, 16);
92 frameSize =
alignTo(frameSize, 8);
SparcSubtarget & initializeSubtargetDependencies(StringRef CPU, StringRef FS)
SparcSubtarget(const Triple &TT, const std::string &CPU, const std::string &FS, const TargetMachine &TM, bool is64bit)
uint64_t alignTo(uint64_t Value, uint64_t Align, uint64_t Skew=0)
Returns the next integer (mod 2**64) that is greater than or equal to Value and is a multiple of Alig...
bool enableMachineScheduler() const override
static bool is64Bit(const char *name)
void ParseSubtargetFeatures(StringRef CPU, StringRef FS)
ParseSubtargetFeatures - Parses features string setting specified subtarget options.
Triple - Helper class for working with autoconf configuration names.
int getAdjustedFrameSize(int stackSize) const
Given a actual stack size as determined by FrameInfo, this function returns adjusted framesize which ...
Primary interface to the complete machine description for the target machine.
StringRef - Represent a constant reference to a string, i.e.