21#define DEBUG_TYPE "sparc-subtarget"
23#define GET_SUBTARGETINFO_TARGET_DESC
24#define GET_SUBTARGETINFO_CTOR
25#include "SparcGenSubtargetInfo.inc"
27void SparcSubtarget::anchor() { }
31 const Triple &TT = getTargetTriple();
33 std::string CPUName = std::string(CPU);
35 CPUName = TT.isSPARC64() ?
"v9" :
"v8";
43 if (!Is64Bit && TT.isSPARC64()) {
45 setFeatureBits(Features.
set(Sparc::Feature64Bit));
59 ReserveRegister(TM.getMCRegisterInfo()->getNumRegs()),
61 TLInfo(TM, *this), FrameLowering(*this) {
62 TSInfo = std::make_unique<SparcSelectionDAGInfo>();
79 frameSize =
alignTo(frameSize, 16);
92 frameSize =
alignTo(frameSize, 8);
static bool is64Bit(const char *name)
Container class for subtarget features.
Targets can subclass this to parameterize the SelectionDAG lowering and instruction selection process...
~SparcSubtarget() override
int getAdjustedFrameSize(int stackSize) const
Given a actual stack size as determined by FrameInfo, this function returns adjusted framesize which ...
bool enableMachineScheduler() const override
SparcSubtarget(const StringRef &CPU, const StringRef &TuneCPU, const StringRef &FS, const TargetMachine &TM)
void ParseSubtargetFeatures(StringRef CPU, StringRef TuneCPU, StringRef FS)
ParseSubtargetFeatures - Parses features string setting specified subtarget options.
SparcSubtarget & initializeSubtargetDependencies(StringRef CPU, StringRef TuneCPU, StringRef FS)
const SelectionDAGTargetInfo * getSelectionDAGInfo() const override
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.
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.