13#ifndef LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZSUBTARGET_H
14#define LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZSUBTARGET_H
26#define OPTIONS_STRUCT_DECL
27#include "SystemZOptions.inc"
29#define GET_SUBTARGETINFO_HEADER
30#include "SystemZGenSubtargetInfo.inc"
35class SystemZTargetMachine;
38 virtual void anchor();
41#define GET_SUBTARGETINFO_MACRO(ATTRIBUTE, DEFAULT, GETTER) \
42 bool ATTRIBUTE = DEFAULT;
43#include "SystemZGenSubtargetInfo.inc"
46 const SystemZOptions &CLOpts;
48 std::unique_ptr<SystemZCallingConventionRegisters> SpecialRegisters;
49 SystemZInstrInfo InstrInfo;
50 SystemZTargetLowering TLInfo;
51 SystemZSelectionDAGInfo TSInfo;
52 std::unique_ptr<const SystemZFrameLowering> FrameLowering;
57 SystemZCallingConventionRegisters *initializeSpecialRegisters();
61 const std::string &TuneCPU,
const std::string &FS,
62 const SystemZTargetMachine &TM);
64 const SystemZOptions &
getCLOpts()
const {
return CLOpts; }
67 assert(SpecialRegisters &&
"Unsupported SystemZ calling convention");
68 return SpecialRegisters.get();
76 return FrameLowering.get();
85 return &InstrInfo.getRegisterInfo();
100 bool useAA()
const override {
return true; }
112#define GET_SUBTARGETINFO_MACRO(ATTRIBUTE, DEFAULT, GETTER) \
113 bool GETTER() const { return ATTRIBUTE; }
114#include "SystemZGenSubtargetInfo.inc"
124 bool isTargetELF()
const {
return TargetTriple.isOSBinFormatELF(); }
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
Targets can subclass this to parameterize the SelectionDAG lowering and instruction selection process...
Represent a constant reference to a string, i.e.
A SystemZ-specific class detailing special use registers particular for calling conventions.
const SystemZInstrInfo * getInstrInfo() const override
bool isPC32DBLSymbol(const GlobalValue *GV, CodeModel::Model CM) const
bool isTargetGOFF() const
SR & getSpecialRegisters() const
const TargetFrameLowering * getFrameLowering() const override
bool isXRaySupported() const override
const SystemZTargetLowering * getTargetLowering() const override
bool isTargetXPLINK64() const
bool enableMachineScheduler() const override
SystemZCallingConventionRegisters * getSpecialRegisters() const
bool enableSubRegLiveness() const override
bool isAddressedViaADA(const GlobalValue *GV) const
bool enableEarlyIfConversion() const override
const SystemZRegisterInfo * getRegisterInfo() const override
const SystemZOptions & getCLOpts() const
const SelectionDAGTargetInfo * getSelectionDAGInfo() const override
SystemZSubtarget(const Triple &TT, const std::string &CPU, const std::string &TuneCPU, const std::string &FS, const SystemZTargetMachine &TM)
const TFL * getFrameLowering() const
void ParseSubtargetFeatures(StringRef CPU, StringRef TuneCPU, StringRef FS)
bool useAA() const override
Information about stack frame layout on the target.
This is an optimization pass for GlobalISel generic memory operations.