13#ifndef LLVM_LIB_TARGET_SPARC_SPARCSUBTARGET_H
14#define LLVM_LIB_TARGET_SPARC_SPARCSUBTARGET_H
25#define GET_SUBTARGETINFO_HEADER
26#include "SparcGenSubtargetInfo.inc"
36 virtual void anchor();
38#define GET_SUBTARGETINFO_MACRO(ATTRIBUTE, DEFAULT, GETTER) \
39 bool ATTRIBUTE = DEFAULT;
40#include "SparcGenSubtargetInfo.inc"
42 SparcInstrInfo InstrInfo;
43 SparcTargetLowering TLInfo;
44 std::unique_ptr<const SelectionDAGTargetInfo> TSInfo;
45 SparcFrameLowering FrameLowering;
49 const StringRef &FS,
const TargetMachine &TM);
55 return &FrameLowering;
58 return &InstrInfo.getRegisterInfo();
68#define GET_SUBTARGETINFO_MACRO(ATTRIBUTE, DEFAULT, GETTER) \
69 bool GETTER() const { return ATTRIBUTE; }
70#include "SparcGenSubtargetInfo.inc"
86 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...