Home
last modified time | relevance | path

Searched refs:TheTriple (Results 1 – 25 of 69) sorted by relevance

123

/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMMCAsmInfo.cpp20 ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin(const Triple &TheTriple) { in ARMMCAsmInfoDarwin() argument
21 if ((TheTriple.getArch() == Triple::armeb) || in ARMMCAsmInfoDarwin()
22 (TheTriple.getArch() == Triple::thumbeb)) in ARMMCAsmInfoDarwin()
37 ExceptionsType = (TheTriple.isOSDarwin() && !TheTriple.isWatchABI()) in ARMMCAsmInfoDarwin()
44 ARMELFMCAsmInfo::ARMELFMCAsmInfo(const Triple &TheTriple) { in ARMELFMCAsmInfo() argument
45 if ((TheTriple.getArch() == Triple::armeb) || in ARMELFMCAsmInfo()
46 (TheTriple.getArch() == Triple::thumbeb)) in ARMELFMCAsmInfo()
63 switch (TheTriple.getOS()) { in ARMELFMCAsmInfo()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64AsmBackend.cpp39 Triple TheTriple; member in __anon1d7386b50111::AArch64AsmBackend
45 TheTriple(TT) {} in AArch64AsmBackend()
156 const Triple &TheTriple, bool IsResolved) { in adjustFixupValue() argument
167 if (TheTriple.isOSBinFormatCOFF()) { in adjustFixupValue()
184 if (TheTriple.isOSBinFormatCOFF() && !IsResolved) in adjustFixupValue()
191 if (TheTriple.isOSBinFormatCOFF() && !IsResolved) in adjustFixupValue()
200 if (TheTriple.isOSBinFormatCOFF() && !IsResolved) in adjustFixupValue()
209 if (TheTriple.isOSBinFormatCOFF() && !IsResolved) in adjustFixupValue()
218 if (TheTriple.isOSBinFormatCOFF() && !IsResolved) in adjustFixupValue()
331 if (TheTriple.isOSBinFormatCOFF() && !IsResolved && SignedValue != 0) { in adjustFixupValue()
[all …]
H A DAArch64WinCOFFObjectWriter.cpp33 AArch64WinCOFFObjectWriter(const Triple &TheTriple) in AArch64WinCOFFObjectWriter() argument
34 : MCWinCOFFObjectTargetWriter(TheTriple.isWindowsArm64EC() in AArch64WinCOFFObjectWriter()
165 llvm::createAArch64WinCOFFObjectWriter(const Triple &TheTriple) { in createAArch64WinCOFFObjectWriter() argument
166 return std::make_unique<AArch64WinCOFFObjectWriter>(TheTriple); in createAArch64WinCOFFObjectWriter()
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DObjectFile.cpp110 Triple TheTriple; in makeTriple() local
112 TheTriple.setArch(Triple::ArchType(Arch)); in makeTriple()
116 TheTriple.setOS(OS); in makeTriple()
122 setARMSubArch(TheTriple); in makeTriple()
124 // TheTriple defaults to ELF, and COFF doesn't have an environment: in makeTriple()
127 TheTriple.setObjectFormat(Triple::MachO); in makeTriple()
131 TheTriple.setTriple("thumbv7-windows"); in makeTriple()
134 TheTriple.setOS(Triple::AIX); in makeTriple()
135 TheTriple.setObjectFormat(Triple::XCOFF); in makeTriple()
137 TheTriple in makeTriple()
[all...]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DTargetSelect.cpp43 Triple TheTriple(TargetTriple); in selectTarget() local
44 if (TheTriple.getTriple().empty()) in selectTarget()
45 TheTriple.setTriple(sys::getProcessTriple()); in selectTarget()
66 TheTriple.setArch(Type); in selectTarget()
69 TheTarget = TargetRegistry::lookupTarget(TheTriple.getTriple(), Error); in selectTarget()
88 TheTarget->createTargetMachine(TheTriple.getTriple(), MCPU, FeaturesStr, in selectTarget()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/MCTargetDesc/
H A DMipsMCAsmInfo.cpp21 MipsMCAsmInfo::MipsMCAsmInfo(const Triple &TheTriple, in MipsMCAsmInfo() argument
23 IsLittleEndian = TheTriple.isLittleEndian(); in MipsMCAsmInfo()
25 MipsABIInfo ABI = MipsABIInfo::computeTargetABI(TheTriple, "", Options); in MipsMCAsmInfo()
27 if (TheTriple.isMIPS64() && !ABI.IsN32()) in MipsMCAsmInfo()
H A DMipsAsmBackend.h29 Triple TheTriple; variable
37 TheTriple(TT), IsN32(N32) {} in MipsAsmBackend()
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinkerParallel/
H A DDWARFEmitterImpl.cpp
H A DDWARFLinkerImpl.cpp
/freebsd/contrib/llvm-project/llvm/tools/llc/
H A Dllc.cpp451 Triple TheTriple; in compileModule() local
486 auto InitializeOptions = [&](const Triple &TheTriple) { in compileModule() argument
487 Options = codegen::InitTargetOptionsFromCodeGenFlags(TheTriple); in compileModule()
490 if (!TheTriple.isOSAIX()) in compileModule()
542 TheTriple = Triple(IRTargetTriple); in compileModule()
543 if (TheTriple.getTriple().empty()) in compileModule()
544 TheTriple.setTriple(sys::getDefaultTargetTriple()); in compileModule()
548 TargetRegistry::lookupTarget(codegen::getMArch(), TheTriple, Error); in compileModule()
554 InitializeOptions(TheTriple); in compileModule()
556 TheTriple.getTriple(), CPUStr, FeaturesStr, Options, RM, CM, OLvl)); in compileModule()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/LTO/
H A DThinLTOCodeGenerator.cpp308 const Triple &TheTriple, in computeGUIDPreservedSymbols() argument
322 const Triple &TheTriple) { in computeGUIDPreservedSymbols() argument
324 computeGUIDPreservedSymbols(File, PreservedSymbols, TheTriple, in computeGUIDPreservedSymbols()
542 const Triple &TheTriple) { in initTMBuilder() argument
544 TMBuilder.MCpu = lto::getThinLTODefaultCPU(TheTriple); in initTMBuilder()
545 TMBuilder.TheTriple = std::move(TheTriple); in initTMBuilder()
559 Triple TheTriple(TripleStr); in addModule() local
562 initTMBuilder(TMBuilder, Triple(TheTriple)); in addModule()
563 else if (TMBuilder.TheTriple != TheTriple) { in addModule()
564 if (!TMBuilder.TheTriple.isCompatibleWith(TheTriple)) in addModule()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/Parallel/
H A DDWARFEmitterImpl.cpp24 Error DwarfEmitterImpl::init(Triple TheTriple, in init() argument
31 TargetRegistry::lookupTarget(TripleName, TheTriple, ErrorStr); in init()
34 TripleName = TheTriple.getTriple(); in init()
57 MC.reset(new MCContext(TheTriple, MAI.get(), MRI.get(), MSTI.get(), nullptr, in init()
82 MIP = TheTarget->createMCInstPrinter(TheTriple, MAI->getAssemblerDialect(), in init()
92 TheTriple, *MC, std::unique_ptr<MCAsmBackend>(MAB), in init()
H A DDebugLineSectionEmitter.h26 DebugLineSectionEmitter(const Triple &TheTriple, DwarfUnit &U) in DebugLineSectionEmitter() argument
27 : TheTriple(TheTriple), U(U) {} in DebugLineSectionEmitter()
33 if (Error Err = init(TheTriple)) in emit()
64 Error init(Triple TheTriple) { in init() argument
70 TargetRegistry::lookupTarget(TripleName, TheTriple, ErrorStr); in init()
73 TripleName = TheTriple.getTriple(); in init()
94 MC.reset(new MCContext(TheTriple, MAI.get(), MRI.get(), MSTI.get(), nullptr, in init()
419 Triple TheTriple; variable
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/MCTargetDesc/
H A DSparcMCAsmInfo.cpp25 SparcELFMCAsmInfo::SparcELFMCAsmInfo(const Triple &TheTriple) { in SparcELFMCAsmInfo() argument
26 bool isV9 = (TheTriple.getArch() == Triple::sparcv9); in SparcELFMCAsmInfo()
27 IsLittleEndian = (TheTriple.getArch() == Triple::sparcel); in SparcELFMCAsmInfo()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/
H A DX86MCTargetDesc.cpp434 const Triple &TheTriple, in createX86MCAsmInfo() argument
436 bool is64Bit = TheTriple.getArch() == Triple::x86_64; in createX86MCAsmInfo()
439 if (TheTriple.isOSBinFormatMachO()) { in createX86MCAsmInfo()
441 MAI = new X86_64MCAsmInfoDarwin(TheTriple); in createX86MCAsmInfo()
443 MAI = new X86MCAsmInfoDarwin(TheTriple); in createX86MCAsmInfo()
444 } else if (TheTriple.isOSBinFormatELF()) { in createX86MCAsmInfo()
446 MAI = new X86ELFMCAsmInfo(TheTriple); in createX86MCAsmInfo()
447 } else if (TheTriple.isWindowsMSVCEnvironment() || in createX86MCAsmInfo()
448 TheTriple.isWindowsCoreCLREnvironment()) { in createX86MCAsmInfo()
450 MAI = new X86MCAsmInfoMicrosoftMASM(TheTriple); in createX86MCAsmInfo()
[all …]
H A DX86AsmBackend.cpp1498 const Triple &TheTriple = STI.getTargetTriple(); in createX86_32AsmBackend() local
1499 if (TheTriple.isOSBinFormatMachO()) in createX86_32AsmBackend()
1502 if (TheTriple.isOSWindows() && TheTriple.isOSBinFormatCOFF()) in createX86_32AsmBackend()
1505 uint8_t OSABI = MCELFObjectTargetWriter::getOSABI(TheTriple.getOS()); in createX86_32AsmBackend()
1507 if (TheTriple.isOSIAMCU()) in createX86_32AsmBackend()
1517 const Triple &TheTriple = STI.getTargetTriple(); in createX86_64AsmBackend() local
1518 if (TheTriple.isOSBinFormatMachO()) in createX86_64AsmBackend()
1521 if (TheTriple.isOSWindows() && TheTriple.isOSBinFormatCOFF()) in createX86_64AsmBackend()
1524 if (TheTriple.isUEFI()) { in createX86_64AsmBackend()
1525 assert(TheTriple.isOSBinFormatCOFF() && in createX86_64AsmBackend()
[all …]
/freebsd/contrib/llvm-project/llvm/tools/bugpoint/
H A DBugDriver.cpp109 Triple TheTriple(Result->getTargetTriple()); in parseInputFile() local
111 if (TheTriple.getTriple().empty()) in parseInputFile()
112 TheTriple.setTriple(sys::getDefaultTargetTriple()); in parseInputFile()
114 TargetTriple.setTriple(TheTriple.getTriple()); in parseInputFile()
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/MCTargetDesc/
H A DNVPTXMCAsmInfo.cpp20 NVPTXMCAsmInfo::NVPTXMCAsmInfo(const Triple &TheTriple, in NVPTXMCAsmInfo() argument
22 if (TheTriple.getArch() == Triple::nvptx64) { in NVPTXMCAsmInfo()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/LogicalView/Readers/
H A DLVBinaryReader.cpp277 Error LVBinaryReader::loadGenericTargetInfo(StringRef TheTriple, in loadGenericTargetInfo() argument
281 TargetRegistry::lookupTarget(std::string(TheTriple), TargetLookupError); in loadGenericTargetInfo()
286 MCRegisterInfo *RegisterInfo = TheTarget->createMCRegInfo(TheTriple); in loadGenericTargetInfo()
289 "no register info for target " + TheTriple); in loadGenericTargetInfo()
294 MCAsmInfo *AsmInfo(TheTarget->createMCAsmInfo(*MRI, TheTriple, MCOptions)); in loadGenericTargetInfo()
297 "no assembly info for target " + TheTriple); in loadGenericTargetInfo()
303 TheTarget->createMCSubtargetInfo(TheTriple, CPU, TheFeatures)); in loadGenericTargetInfo()
306 "no subtarget info for target " + TheTriple); in loadGenericTargetInfo()
313 "no instruction info for target " + TheTriple); in loadGenericTargetInfo()
316 MC = std::make_unique<MCContext>(Triple(TheTriple), MAI.get(), MRI.get(), in loadGenericTargetInfo()
[all …]
/freebsd/contrib/llvm-project/llvm/tools/llvm-mc/
H A Dllvm-mc.cpp230 Triple TheTriple(Triple::normalize(TripleName)); in GetTarget() local
234 const Target *TheTarget = TargetRegistry::lookupTarget(ArchName, TheTriple, in GetTarget()
242 TripleName = TheTriple.getTriple(); in GetTarget()
372 Triple TheTriple(TripleName); in main() local
424 MCContext Ctx(TheTriple, MAI.get(), MRI.get(), STI.get(), &SrcMgr, in main()
459 << TheTriple.normalize() << "\n"; in main()
518 << TheTriple.normalize() << "' with assembly variant " in main()
556 TheTriple, Ctx, std::unique_ptr<MCAsmBackend>(MAB), in main()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCMCTargetDesc.cpp182 const Triple &TheTriple, in createPPCMCAsmInfo() argument
184 bool isPPC64 = (TheTriple.getArch() == Triple::ppc64 || in createPPCMCAsmInfo()
185 TheTriple.getArch() == Triple::ppc64le); in createPPCMCAsmInfo()
188 if (TheTriple.isOSBinFormatXCOFF()) in createPPCMCAsmInfo()
189 MAI = new PPCXCOFFMCAsmInfo(isPPC64, TheTriple); in createPPCMCAsmInfo()
191 MAI = new PPCELFMCAsmInfo(isPPC64, TheTriple); in createPPCMCAsmInfo()
/freebsd/contrib/llvm-project/llvm/tools/llvm-mca/
H A Dllvm-mca.cpp279 Triple TheTriple(TripleName); in getTarget() local
284 TargetRegistry::lookupTarget(ArchName, TheTriple, Error); in getTarget()
291 TripleName = TheTriple.str(); in getTarget()
381 Triple TheTriple(TripleName); in main() local
411 << " target triple '" << TheTriple.normalize() << "' and cpu '" << MCPU in main()
459 << TheTriple.normalize() << "' with assembly variant " in main()
465 MCContext ACtx(TheTriple, MAI.get(), MRI.get(), STI.get(), &SrcMgr); in main()
508 MCContext ICtx(TheTriple, MAI.get(), MRI.get(), STI.get(), &SrcMgr); in main()
548 << TheTriple.normalize() << "' with assembly variant " in main()
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DTargetRegistry.cpp118 Triple &TheTriple, in lookupTarget() argument
139 TheTriple.setArch(Type); in lookupTarget()
143 TheTarget = TargetRegistry::lookupTarget(TheTriple.getTriple(), TempError); in lookupTarget()
145 Error = "unable to get target for '" + TheTriple.getTriple() + in lookupTarget()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64MCInstLower.cpp47 const Triple &TheTriple = Printer.TM.getTargetTriple(); in GetGlobalValueSymbol() local
48 if (!TheTriple.isOSBinFormatCOFF()) in GetGlobalValueSymbol()
51 assert(TheTriple.isOSWindows() && in GetGlobalValueSymbol()
61 if (!TheTriple.isWindowsArm64EC() || !isa<Function>(GV) || in GetGlobalValueSymbol()
100 TheTriple.isWindowsArm64EC() && in GetGlobalValueSymbol()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DCommandFlags.cpp548 codegen::InitTargetOptionsFromCodeGenFlags(const Triple &TheTriple) { in InitTargetOptionsFromCodeGenFlags() argument
574 getExplicitDataSections().value_or(TheTriple.hasDefaultDataSections()); in InitTargetOptionsFromCodeGenFlags()
585 getExplicitEmulatedTLS().value_or(TheTriple.hasDefaultEmulatedTLS()); in InitTargetOptionsFromCodeGenFlags()
587 getExplicitEnableTLSDESC().value_or(TheTriple.hasDefaultTLSDESC()); in InitTargetOptionsFromCodeGenFlags()
754 Triple TheTriple(TargetTriple); in createTargetMachineForTriple() local
757 TargetRegistry::lookupTarget(codegen::getMArch(), TheTriple, Error); in createTargetMachineForTriple()
761 TheTriple.getTriple(), codegen::getCPUStr(), codegen::getFeaturesStr(), in createTargetMachineForTriple()
762 codegen::InitTargetOptionsFromCodeGenFlags(TheTriple), in createTargetMachineForTriple()

123