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 HasVectorEnhancements3 =
false;
48 HasVectorPackedDecimal =
false;
49 HasVectorPackedDecimalEnhancement =
false;
50 HasVectorPackedDecimalEnhancement2 =
false;
51 HasVectorPackedDecimalEnhancement3 =
false;
58SystemZSubtarget::initializeSpecialRegisters() {
60 return new SystemZXPLINK64Registers;
62 return new SystemZELFRegisters;
68 const std::string &TuneCPU,
69 const std::string &FS,
72 SpecialRegisters(initializeSpecialRegisters()),
73 InstrInfo(initializeSubtargetDependencies(CPU, TuneCPU, FS)),
87 if (GV->getAlign() && (*GV->getAlign()).value() & 0x1)
91 if (GO->isDeclaration()) {
96 if (GO->hasAvailableExternallyLinkage()) {
101 GO, TLInfo.getTargetMachine());
126 return TLInfo.getTargetMachine().shouldAssumeDSOLocal(GV);
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.
LLVM_ABI 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.
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)
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.
Triple - Helper class for working with autoconf configuration names.
bool isFunctionTy() const
True if this is an instance of FunctionType.
LLVM_ABI 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.
decltype(auto) dyn_cast(const From &Val)
dyn_cast<X> - Return the argument parameter cast to the specified type.