21#define DEBUG_TYPE "sparc-subtarget"
23#define GET_SUBTARGETINFO_TARGET_DESC
24#define GET_SUBTARGETINFO_CTOR
25#include "SparcGenSubtargetInfo.inc"
27void SparcSubtarget::anchor() { }
32 std::string CPUName = std::string(CPU);
34 CPUName = (Is64Bit) ?
"v9" :
"v8";
53 ReserveRegister(TM.getMCRegisterInfo()->getNumRegs()),
54 TargetTriple(TM.getTargetTriple()), Is64Bit(
is64Bit),
55 InstrInfo(initializeSubtargetDependencies(CPU, TuneCPU, FS)),
56 TLInfo(TM, *this), FrameLowering(*this) {}
66 frameSize =
alignTo(frameSize, 16);
79 frameSize =
alignTo(frameSize, 8);
static bool is64Bit(const char *name)
SparcSubtarget(const StringRef &CPU, const StringRef &TuneCPU, const StringRef &FS, const TargetMachine &TM, bool is64bit)
int getAdjustedFrameSize(int stackSize) const
Given a actual stack size as determined by FrameInfo, this function returns adjusted framesize which ...
bool enableMachineScheduler() const override
void ParseSubtargetFeatures(StringRef CPU, StringRef TuneCPU, StringRef FS)
ParseSubtargetFeatures - Parses features string setting specified subtarget options.
SparcSubtarget & initializeSubtargetDependencies(StringRef CPU, StringRef TuneCPU, StringRef FS)
StringRef - Represent a constant reference to a string, i.e.
constexpr bool empty() const
empty - Check if the string is empty.
Primary interface to the complete machine description for the target machine.
This is an optimization pass for GlobalISel generic memory operations.
uint64_t alignTo(uint64_t Size, Align A)
Returns a multiple of A needed to store Size bytes.