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() { }
32 V8DeprecatedInsts =
false;
38 std::string CPUName = CPU;
40 CPUName = (Is64Bit) ?
"v9" :
"v8";
56 InstrInfo(initializeSubtargetDependencies(CPU, FS)), TLInfo(TM, *this),
57 FrameLowering(*this) {}
67 assert(frameSize % 16 == 0 &&
"Stack size not 16-byte aligned");
SparcSubtarget & initializeSubtargetDependencies(StringRef CPU, StringRef FS)
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.
uint64_t RoundUpToAlignment(uint64_t Value, uint64_t Align)
Returns the next integer (mod 2**64) that is greater than or equal to Value and is a multiple of Alig...
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.
SparcSubtarget(const Triple &TT, const std::string &CPU, const std::string &FS, TargetMachine &TM, bool is64bit)