20#define DEBUG_TYPE "sparc-subtarget"
22#define GET_SUBTARGETINFO_TARGET_DESC
23#define GET_SUBTARGETINFO_CTOR
24#include "SparcGenSubtargetInfo.inc"
26void SparcSubtarget::anchor() { }
31 std::string CPUName = std::string(CPU);
33 CPUName = (Is64Bit) ?
"v9" :
"v8";
52 ReserveRegister(TM.getMCRegisterInfo()->getNumRegs()),
53 TargetTriple(TM.getTargetTriple()), Is64Bit(
is64Bit),
54 InstrInfo(initializeSubtargetDependencies(CPU, TuneCPU, FS)),
55 TLInfo(TM, *this), FrameLowering(*this) {}
65 frameSize =
alignTo(frameSize, 16);
78 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.