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";
50 TLInfo(
TM, *this), FrameLowering(*this) {}
60 frameSize =
alignTo(frameSize, 16);
73 frameSize =
alignTo(frameSize, 8);
const char LLVMTargetMachineRef TM
static bool is64Bit(const char *name)
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 FS)
SparcSubtarget(const Triple &TT, const std::string &CPU, const std::string &FS, const TargetMachine &TM, bool is64bit)
StringRef - Represent a constant reference to a string, i.e.
Primary interface to the complete machine description for the target machine.
Triple - Helper class for working with autoconf configuration names.
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.