17#define DEBUG_TYPE "systemz-subtarget"
19#define GET_SUBTARGETINFO_TARGET_DESC
20#define GET_SUBTARGETINFO_CTOR
21#include "SystemZGenSubtargetInfo.inc"
24 "systemz-subreg-liveness",
25 cl::desc(
"Enable subregister liveness tracking for SystemZ (experimental)"),
29void SystemZSubtarget::anchor() {}
46 HasVectorEnhancements1 =
false;
47 HasVectorEnhancements2 =
false;
48 HasVectorPackedDecimal =
false;
49 HasVectorPackedDecimalEnhancement =
false;
50 HasVectorPackedDecimalEnhancement2 =
false;
57SystemZSubtarget::initializeSpecialRegisters() {
67 const std::string &TuneCPU,
68 const std::string &FS,
71 SpecialRegisters(initializeSpecialRegisters()),
72 InstrInfo(initializeSubtargetDependencies(CPU, TuneCPU, FS)),
80 if (
const auto *GO = dyn_cast<GlobalObject>(GV)) {
85 if (GO->getAlignment() & 0x1) {
90 if (GO->isDeclaration()) {
95 if (GO->hasAvailableExternallyLinkage()) {
MachineBasicBlock MachineBasicBlock::iterator DebugLoc DL
const char LLVMTargetMachineRef TM
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.