Lines Matching defs:TT
272 static std::unique_ptr<TargetLoweringObjectFile> createTLOF(const Triple &TT) {
273 if (TT.isOSBinFormatMachO())
275 if (TT.isOSBinFormatCOFF())
282 static std::string computeDataLayout(const Triple &TT,
285 if (TT.isOSBinFormatMachO()) {
286 if (TT.getArch() == Triple::aarch64_32)
290 if (TT.isOSBinFormatCOFF())
293 std::string Ptr32 = TT.getEnvironment() == Triple::GNUILP32 ? "-p:32:32" : "";
298 static StringRef computeDefaultCPU(const Triple &TT, StringRef CPU) {
299 if (CPU.empty() && TT.isArm64e())
304 static Reloc::Model getEffectiveRelocModel(const Triple &TT,
307 if (TT.isOSDarwin() || TT.isOSWindows())
318 getEffectiveAArch64CodeModel(const Triple &TT,
325 } else if (*CM == CodeModel::Tiny && !TT.isOSBinFormatELF())
335 if (JIT && !TT.isOSWindows())
342 AArch64TargetMachine::AArch64TargetMachine(const Target &T, const Triple &TT,
350 computeDataLayout(TT, Options.MCOptions, LittleEndian),
351 TT, computeDefaultCPU(TT, CPU), FS, Options,
352 getEffectiveRelocModel(TT, RM),
353 getEffectiveAArch64CodeModel(TT, CM, JIT), OL),
357 if (TT.isOSBinFormatMachO()) {
386 TT.getArch() != Triple::aarch64_32 &&
387 TT.getEnvironment() != Triple::GNUILP32 &&
388 !(getCodeModel() == CodeModel::Large && TT.isOSBinFormatMachO())) {
476 const Target &T, const Triple &TT, StringRef CPU, StringRef FS,
479 : AArch64TargetMachine(T, TT, CPU, FS, Options, RM, CM, OL, JIT, true) {}
484 const Target &T, const Triple &TT, StringRef CPU, StringRef FS,
487 : AArch64TargetMachine(T, TT, CPU, FS, Options, RM, CM, OL, JIT, false) {}