Lines Matching defs:TT
110 static std::unique_ptr<TargetLoweringObjectFile> createTLOF(const Triple &TT) {
111 if (TT.isOSBinFormatMachO()) {
112 if (TT.getArch() == Triple::x86_64)
117 if (TT.isOSBinFormatCOFF())
120 if (TT.getArch() == Triple::x86_64)
125 static std::string computeDataLayout(const Triple &TT) {
129 Ret += DataLayout::getManglingComponent(TT);
131 if (!TT.isArch64Bit() || TT.isX32() || TT.isOSNaCl())
140 if (TT.isArch64Bit() || TT.isOSWindows() || TT.isOSNaCl())
142 else if (TT.isOSIAMCU())
148 if (TT.isOSNaCl() || TT.isOSIAMCU())
150 else if (TT.isArch64Bit() || TT.isOSDarwin() || TT.isWindowsMSVCEnvironment())
155 if (TT.isOSIAMCU())
159 if (TT.isArch64Bit())
165 if ((!TT.isArch64Bit() && TT.isOSWindows()) || TT.isOSIAMCU())
173 static Reloc::Model getEffectiveRelocModel(const Triple &TT, bool JIT,
175 bool is64Bit = TT.getArch() == Triple::x86_64;
185 if (TT.isOSDarwin()) {
190 if (TT.isOSWindows() && is64Bit)
202 if (!TT.isOSDarwin())
208 if (*RM == Reloc::Static && TT.isOSDarwin() && is64Bit)
215 getEffectiveX86CodeModel(const Triple &TT, std::optional<CodeModel::Model> CM,
217 bool Is64Bit = TT.getArch() == Triple::x86_64;
230 X86TargetMachine::X86TargetMachine(const Target &T, const Triple &TT,
236 : CodeGenTargetMachineImpl(T, computeDataLayout(TT), TT, CPU, FS, Options,
237 getEffectiveRelocModel(TT, JIT, RM),
238 getEffectiveX86CodeModel(TT, CM, JIT), OL),
245 if (TT.isPS() || TT.isOSBinFormatMachO()) {
247 this->Options.NoTrapAfterNoreturn = TT.isOSBinFormatMachO();
486 const Triple &TT = TM->getTargetTriple();
487 if (TT.isOSWindows()) {
488 if (TT.getArch() == Triple::x86_64) {
546 const Triple &TT = TM->getTargetTriple();
547 if (TT.isOSWindows() && TT.getArch() == Triple::x86)
617 const Triple &TT = TM->getTargetTriple();
635 if (TT.isOSWindows() && TT.getArch() == Triple::x86_64)
641 if (!TT.isOSDarwin() &&
642 (!TT.isOSWindows() ||
646 if (TT.isOSWindows()) {
659 addPass(createUnpackMachineBundles([&TT](const MachineFunction &MF) {
665 (TT.isOSDarwin() &&