@@ -55,9 +55,9 @@ PPCSubtarget &PPCSubtarget::initializeSubtargetDependencies(StringRef CPU,
55
55
PPCSubtarget::PPCSubtarget (const Triple &TT, const std::string &CPU,
56
56
const std::string &TuneCPU, const std::string &FS,
57
57
const PPCTargetMachine &TM)
58
- : PPCGenSubtargetInfo(TT, CPU, TuneCPU, FS), TargetTriple(TT),
59
- IsPPC64(TargetTriple .getArch() == Triple::ppc64 ||
60
- TargetTriple .getArch() == Triple::ppc64le),
58
+ : PPCGenSubtargetInfo(TT, CPU, TuneCPU, FS),
59
+ IsPPC64(getTargetTriple() .getArch() == Triple::ppc64 ||
60
+ getTargetTriple() .getArch() == Triple::ppc64le),
61
61
TM(TM), FrameLowering(initializeSubtargetDependencies(CPU, TuneCPU, FS)),
62
62
InstrInfo(*this ), TLInfo(TM, *this ) {
63
63
TSInfo = std::make_unique<PPCSelectionDAGInfo>();
@@ -87,10 +87,10 @@ void PPCSubtarget::initSubtargetFeatures(StringRef CPU, StringRef TuneCPU,
87
87
// Determine default and user specified characteristics
88
88
std::string CPUName = std::string (CPU);
89
89
if (CPUName.empty () || CPU == " generic" ) {
90
- if (TargetTriple .getSubArch () == Triple::PPCSubArch_spe)
90
+ if (getTargetTriple () .getSubArch () == Triple::PPCSubArch_spe)
91
91
CPUName = " e500" ;
92
92
else
93
- CPUName = std::string (PPC::getNormalizedPPCTargetCPU (TargetTriple ));
93
+ CPUName = std::string (PPC::getNormalizedPPCTargetCPU (getTargetTriple () ));
94
94
}
95
95
96
96
// Determine the CPU to schedule for.
@@ -107,7 +107,7 @@ void PPCSubtarget::initSubtargetFeatures(StringRef CPU, StringRef TuneCPU,
107
107
if (IsPPC64 && has64BitSupport ())
108
108
Use64BitRegs = true ;
109
109
110
- if (TargetTriple .isPPC32SecurePlt ())
110
+ if (getTargetTriple () .isPPC32SecurePlt ())
111
111
IsSecurePlt = true ;
112
112
113
113
if (HasSPE && IsPPC64)
@@ -126,7 +126,7 @@ void PPCSubtarget::initSubtargetFeatures(StringRef CPU, StringRef TuneCPU,
126
126
IsLittleEndian = TM.isLittleEndian ();
127
127
128
128
if (HasAIXSmallLocalExecTLS || HasAIXSmallLocalDynamicTLS) {
129
- if (!TargetTriple .isOSAIX () || !IsPPC64)
129
+ if (!getTargetTriple () .isOSAIX () || !IsPPC64)
130
130
report_fatal_error (" The aix-small-local-[exec|dynamic]-tls attribute is "
131
131
" only supported on AIX in "
132
132
" 64-bit mode.\n " ,
@@ -143,7 +143,7 @@ void PPCSubtarget::initSubtargetFeatures(StringRef CPU, StringRef TuneCPU,
143
143
false );
144
144
}
145
145
146
- if (HasAIXShLibTLSModelOpt && (!TargetTriple .isOSAIX () || !IsPPC64))
146
+ if (HasAIXShLibTLSModelOpt && (!getTargetTriple () .isOSAIX () || !IsPPC64))
147
147
report_fatal_error (" The aix-shared-lib-tls-model-opt attribute "
148
148
" is only supported on AIX in 64-bit mode.\n " ,
149
149
false );
0 commit comments