16#define DEBUG_TYPE "systemz-subtarget"
18#define GET_SUBTARGETINFO_TARGET_DESC
19#define GET_SUBTARGETINFO_CTOR
20#include "SystemZGenSubtargetInfo.inc"
23 "systemz-subreg-liveness",
24 cl::desc(
"Enable subregister liveness tracking for SystemZ (experimental)"),
28void SystemZSubtarget::anchor() {}
45 HasVectorEnhancements1 =
false;
46 HasVectorEnhancements2 =
false;
47 HasVectorPackedDecimal =
false;
48 HasVectorPackedDecimalEnhancement =
false;
49 HasVectorPackedDecimalEnhancement2 =
false;
56SystemZSubtarget::initializeSpecialRegisters() {
66 const std::string &TuneCPU,
67 const std::string &FS,
70 SpecialRegisters(initializeSpecialRegisters()),
71 InstrInfo(initializeSubtargetDependencies(CPU, TuneCPU, FS)),
79 if (
const auto *GO = dyn_cast<GlobalObject>(GV)) {
84 if (GO->getAlignment() & 0x1) {
89 if (GO->isDeclaration()) {
94 if (GO->hasAvailableExternallyLinkage()) {
MachineBasicBlock MachineBasicBlock::iterator DebugLoc DL
static cl::opt< bool > UseSubRegLiveness("systemz-subreg-liveness", cl::desc("Enable subregister liveness tracking for SystemZ (experimental)"), cl::Hidden)
A parsed version of the target data layout string in and methods for querying it.
const DataLayout & getDataLayout() const
Get the data layout of the module this global belongs to.
Type * getValueType() const
SectionKind - This is a simple POD value that classifies the properties of a section.
StringRef - Represent a constant reference to a string, i.e.
constexpr bool empty() const
empty - Check if the string is empty.
A SystemZ-specific class detailing special use registers particular for calling conventions.
ELF calling convention specific use registers Particular when on zLinux in 64 bit mode.
bool isPC32DBLSymbol(const GlobalValue *GV, CodeModel::Model CM) const
bool isTargetXPLINK64() const
bool enableSubRegLiveness() const override
bool isAddressedViaADA(const GlobalValue *GV) const
SystemZSubtarget(const Triple &TT, const std::string &CPU, const std::string &TuneCPU, const std::string &FS, const TargetMachine &TM)
void ParseSubtargetFeatures(StringRef CPU, StringRef TuneCPU, StringRef FS)
XPLINK64 calling convention specific use registers Particular to z/OS when in 64 bit mode.
const TargetMachine & getTargetMachine() const
static SectionKind getKindForGlobal(const GlobalObject *GO, const TargetMachine &TM)
Classify the specified global variable into a set of target independent categories embodied in Sectio...
Primary interface to the complete machine description for the target machine.
bool shouldAssumeDSOLocal(const GlobalValue *GV) const
Triple - Helper class for working with autoconf configuration names.
bool isFunctionTy() const
True if this is an instance of FunctionType.
Align getPointerAlignment(const DataLayout &DL) const
Returns an alignment of the pointer value.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
This is an optimization pass for GlobalISel generic memory operations.