Lines Matching defs:TT
111 static std::unique_ptr<TargetLoweringObjectFile> createTLOF(const Triple &TT) {
112 if (TT.isOSBinFormatMachO()) {
113 if (TT.getArch() == Triple::x86_64)
118 if (TT.isOSBinFormatCOFF())
121 if (TT.getArch() == Triple::x86_64)
126 static std::string computeDataLayout(const Triple &TT) {
130 Ret += DataLayout::getManglingComponent(TT);
132 if (!TT.isArch64Bit() || TT.isX32() || TT.isOSNaCl())
141 if (TT.isArch64Bit() || TT.isOSWindows() || TT.isOSNaCl())
143 else if (TT.isOSIAMCU())
149 if (TT.isOSNaCl() || TT.isOSIAMCU())
151 else if (TT.isArch64Bit() || TT.isOSDarwin() || TT.isWindowsMSVCEnvironment())
156 if (TT.isOSIAMCU())
160 if (TT.isArch64Bit())
166 if ((!TT.isArch64Bit() && TT.isOSWindows()) || TT.isOSIAMCU())
174 static Reloc::Model getEffectiveRelocModel(const Triple &TT, bool JIT,
176 bool is64Bit = TT.getArch() == Triple::x86_64;
186 if (TT.isOSDarwin()) {
191 if (TT.isOSWindows() && is64Bit)
203 if (!TT.isOSDarwin())
209 if (*RM == Reloc::Static && TT.isOSDarwin() && is64Bit)
216 getEffectiveX86CodeModel(const Triple &TT, std::optional<CodeModel::Model> CM,
218 bool Is64Bit = TT.getArch() == Triple::x86_64;
231 X86TargetMachine::X86TargetMachine(const Target &T, const Triple &TT,
238 T, computeDataLayout(TT), TT, CPU, FS, Options,
239 getEffectiveRelocModel(TT, JIT, RM),
240 getEffectiveX86CodeModel(TT, CM, JIT),
245 if (TT.isPS() || TT.isOSBinFormatMachO()) {
247 this->Options.NoTrapAfterNoreturn = TT.isOSBinFormatMachO();
484 const Triple &TT = TM->getTargetTriple();
485 if (TT.isOSWindows()) {
486 if (TT.getArch() == Triple::x86_64) {
544 const Triple &TT = TM->getTargetTriple();
545 if (TT.isOSWindows() && TT.getArch() == Triple::x86)
615 const Triple &TT = TM->getTargetTriple();
633 if (TT.isOSWindows() && TT.getArch() == Triple::x86_64)
639 if (!TT.isOSDarwin() &&
640 (!TT.isOSWindows() ||
644 if (TT.isOSWindows()) {
657 addPass(createUnpackMachineBundles([&TT](const MachineFunction &MF) {
663 (TT.isOSDarwin() &&