13#ifndef LLVM_LIB_TARGET_SPARC_SPARCSUBTARGET_H
14#define LLVM_LIB_TARGET_SPARC_SPARCSUBTARGET_H
25#define OPTIONS_STRUCT_DECL
26#include "SparcOptions.inc"
28#define GET_SUBTARGETINFO_HEADER
29#include "SparcGenSubtargetInfo.inc"
32class SparcTargetMachine;
36 const SparcOptions &CLOpts;
42 virtual void anchor();
44#define GET_SUBTARGETINFO_MACRO(ATTRIBUTE, DEFAULT, GETTER) \
45 bool ATTRIBUTE = DEFAULT;
46#include "SparcGenSubtargetInfo.inc"
48 SparcInstrInfo InstrInfo;
49 SparcTargetLowering TLInfo;
50 std::unique_ptr<const SelectionDAGTargetInfo> TSInfo;
51 SparcFrameLowering FrameLowering;
55 const StringRef &FS,
const SparcTargetMachine &TM);
59 const SparcOptions &
getCLOpts()
const {
return CLOpts; }
63 return &FrameLowering;
66 return &InstrInfo.getRegisterInfo();
78#define GET_SUBTARGETINFO_MACRO(ATTRIBUTE, DEFAULT, GETTER) \
79 bool GETTER() const { return ATTRIBUTE; }
80#include "SparcGenSubtargetInfo.inc"
96 return ReserveRegister[PhysReg];
static bool is64Bit(const char *name)
Tracks which library functions to use for a particular subtarget or function.
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...
void initLibcallLoweringInfo(LibcallLoweringInfo &Info) const override
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
SparcSubtarget(const StringRef &CPU, const StringRef &TuneCPU, const StringRef &FS, const SparcTargetMachine &TM)
const TargetFrameLowering * getFrameLowering() const override
const SparcOptions & getCLOpts() const
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
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...