13#ifndef LLVM_LIB_TARGET_SPARC_SPARCSUBTARGET_H
14#define LLVM_LIB_TARGET_SPARC_SPARCSUBTARGET_H
26#define GET_SUBTARGETINFO_HEADER
27#include "SparcGenSubtargetInfo.inc"
37 virtual void anchor();
39#define GET_SUBTARGETINFO_MACRO(ATTRIBUTE, DEFAULT, GETTER) \
40 bool ATTRIBUTE = DEFAULT;
41#include "SparcGenSubtargetInfo.inc"
43 SparcInstrInfo InstrInfo;
44 SparcTargetLowering TLInfo;
45 std::unique_ptr<const SelectionDAGTargetInfo> TSInfo;
46 SparcFrameLowering FrameLowering;
50 const StringRef &FS,
const TargetMachine &TM);
56 return &FrameLowering;
59 return &InstrInfo.getRegisterInfo();
69#define GET_SUBTARGETINFO_MACRO(ATTRIBUTE, DEFAULT, GETTER) \
70 bool GETTER() const { return ATTRIBUTE; }
71#include "SparcGenSubtargetInfo.inc"
87 return ReserveRegister[PhysReg];
static bool is64Bit(const char *name)
Targets can subclass this to parameterize the SelectionDAG lowering and instruction selection process...
const SparcRegisterInfo * getRegisterInfo() const override
int64_t getStackPointerBias() const
The 64-bit ABI uses biased stack and frame pointers, so the stack frame of the current function is th...
const SparcTargetLowering * getTargetLowering() const override
~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
const TargetFrameLowering * getFrameLowering() 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)
bool isRegisterReserved(MCPhysReg PhysReg) const
const SparcInstrInfo * getInstrInfo() const override
const SelectionDAGTargetInfo * getSelectionDAGInfo() const override
StringRef - Represent a constant reference to a string, i.e.
Information about stack frame layout on the target.
This is an optimization pass for GlobalISel generic memory operations.
uint16_t MCPhysReg
An unsigned integer type large enough to represent all physical registers, but not necessarily virtua...