| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/ |
| H A D | AArch64AsmBackend.cpp | 33 Triple TheTriple; member in __anon1d7386b50111::AArch64AsmBackend 39 TheTriple(TT) {} in AArch64AsmBackend() 143 const Triple &TheTriple, bool IsResolved) { in adjustFixupValue() argument 154 if (TheTriple.isOSBinFormatCOFF()) { in adjustFixupValue() 171 if (TheTriple.isOSBinFormatCOFF() && !IsResolved) in adjustFixupValue() 178 if (TheTriple.isOSBinFormatCOFF() && !IsResolved) in adjustFixupValue() 187 if (TheTriple.isOSBinFormatCOFF() && !IsResolved) in adjustFixupValue() 196 if (TheTriple.isOSBinFormatCOFF() && !IsResolved) in adjustFixupValue() 205 if (TheTriple.isOSBinFormatCOFF() && !IsResolved) in adjustFixupValue() 324 if (TheTriple.isOSBinFormatCOFF() && !IsResolved && SignedValue != 0) { in adjustFixupValue() [all …]
|
| H A D | AArch64WinCOFFObjectWriter.cpp | 31 AArch64WinCOFFObjectWriter(const Triple &TheTriple) in AArch64WinCOFFObjectWriter() argument 32 : MCWinCOFFObjectTargetWriter(TheTriple.isWindowsArm64EC() in AArch64WinCOFFObjectWriter() 161 llvm::createAArch64WinCOFFObjectWriter(const Triple &TheTriple) { in createAArch64WinCOFFObjectWriter() argument 162 return std::make_unique<AArch64WinCOFFObjectWriter>(TheTriple); in createAArch64WinCOFFObjectWriter()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/ |
| H A D | ARMMCAsmInfo.cpp | 49 ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin(const Triple &TheTriple) { in ARMMCAsmInfoDarwin() argument 50 if ((TheTriple.getArch() == Triple::armeb) || in ARMMCAsmInfoDarwin() 51 (TheTriple.getArch() == Triple::thumbeb)) in ARMMCAsmInfoDarwin() 65 ExceptionsType = (TheTriple.isOSDarwin() && !TheTriple.isWatchABI()) in ARMMCAsmInfoDarwin() 74 ARMELFMCAsmInfo::ARMELFMCAsmInfo(const Triple &TheTriple) { in ARMELFMCAsmInfo() argument 75 if ((TheTriple.getArch() == Triple::armeb) || in ARMELFMCAsmInfo() 76 (TheTriple.getArch() == Triple::thumbeb)) in ARMELFMCAsmInfo() 92 switch (TheTriple.getOS()) { in ARMELFMCAsmInfo()
|
| /freebsd/contrib/llvm-project/llvm/lib/Object/ |
| H A D | ObjectFile.cpp | 110 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 D | TargetSelect.cpp | 43 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, Error); in selectTarget() 88 TheTriple, MCPU, FeaturesStr, Options, RelocModel, CMModel, OptLevel, in selectTarget()
|
| /freebsd/contrib/llvm-project/llvm/lib/DWARFLinkerParallel/ |
| H A D | DWARFEmitterImpl.cpp | |
| H A D | DWARFLinkerImpl.cpp | |
| /freebsd/contrib/llvm-project/llvm/tools/llc/ |
| H A D | llc.cpp | 446 Triple TheTriple; in compileModule() local 481 auto InitializeOptions = [&](const Triple &TheTriple) { in compileModule() argument 482 Options = codegen::InitTargetOptionsFromCodeGenFlags(TheTriple); in compileModule() 485 if (!TheTriple.isOSAIX()) in compileModule() 540 TheTriple = Triple(IRTargetTriple); in compileModule() 541 if (TheTriple.getTriple().empty()) in compileModule() 542 TheTriple.setTriple(sys::getDefaultTargetTriple()); in compileModule() 546 TargetRegistry::lookupTarget(codegen::getMArch(), TheTriple, Error); in compileModule() 552 InitializeOptions(TheTriple); in compileModule() 554 TheTriple, CPUStr, FeaturesStr, Options, RM, CM, OLvl)); in compileModule() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/Parallel/ |
| H A D | DWARFEmitterImpl.cpp | 25 Error DwarfEmitterImpl::init(Triple TheTriple, in init() argument 32 TargetRegistry::lookupTarget(TripleName, TheTriple, ErrorStr); in init() 35 TripleName = TheTriple.getTriple(); in init() 58 MC.reset(new MCContext(TheTriple, MAI.get(), MRI.get(), MSTI.get(), nullptr, in init() 84 TheTriple, MAI->getAssemblerDialect(), *MAI, *MII, *MRI)); in init() 93 TheTriple, *MC, std::unique_ptr<MCAsmBackend>(MAB), in init() 106 TM.reset(TheTarget->createTargetMachine(TheTriple, "", "", TargetOptions(), in init()
|
| H A D | DebugLineSectionEmitter.h | 26 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/LTO/ |
| H A D | ThinLTOCodeGenerator.cpp | 302 const Triple &TheTriple, in computeGUIDPreservedSymbols() argument 317 const Triple &TheTriple) { in computeGUIDPreservedSymbols() argument 319 computeGUIDPreservedSymbols(File, PreservedSymbols, TheTriple, in computeGUIDPreservedSymbols() 535 const Triple &TheTriple) { in initTMBuilder() argument 537 TMBuilder.MCpu = lto::getThinLTODefaultCPU(TheTriple); in initTMBuilder() 538 TMBuilder.TheTriple = std::move(TheTriple); in initTMBuilder() 550 Triple TheTriple(TripleStr); in addModule() local 553 initTMBuilder(TMBuilder, Triple(TheTriple)); in addModule() 554 else if (TMBuilder.TheTriple != TheTriple) { in addModule() 555 if (!TMBuilder.TheTriple.isCompatibleWith(TheTriple)) in addModule() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/MCTargetDesc/ |
| H A D | SparcMCAsmInfo.cpp | 25 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/Mips/MCTargetDesc/ |
| H A D | MipsMCAsmInfo.cpp | 23 MipsELFMCAsmInfo::MipsELFMCAsmInfo(const Triple &TheTriple, in MipsELFMCAsmInfo() argument 25 IsLittleEndian = TheTriple.isLittleEndian(); in MipsELFMCAsmInfo() 27 MipsABIInfo ABI = MipsABIInfo::computeTargetABI(TheTriple, "", Options); in MipsELFMCAsmInfo() 29 if (TheTriple.isMIPS64() && !ABI.IsN32()) in MipsELFMCAsmInfo()
|
| H A D | MipsAsmBackend.h | 29 Triple TheTriple; variable 37 TheTriple(TT), IsN32(N32) {} in MipsAsmBackend()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/ |
| H A D | X86MCTargetDesc.cpp | 434 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() || TheTriple.isUEFI()) { in createX86MCAsmInfo() 450 MAI = new X86MCAsmInfoMicrosoftMASM(TheTriple); in createX86MCAsmInfo() [all …]
|
| H A D | X86AsmBackend.cpp | 1502 const Triple &TheTriple = STI.getTargetTriple(); in createX86_32AsmBackend() local 1503 if (TheTriple.isOSBinFormatMachO()) in createX86_32AsmBackend() 1506 if (TheTriple.isOSWindows() && TheTriple.isOSBinFormatCOFF()) in createX86_32AsmBackend() 1509 uint8_t OSABI = MCELFObjectTargetWriter::getOSABI(TheTriple.getOS()); in createX86_32AsmBackend() 1511 if (TheTriple.isOSIAMCU()) in createX86_32AsmBackend() 1521 const Triple &TheTriple = STI.getTargetTriple(); in createX86_64AsmBackend() local 1522 if (TheTriple.isOSBinFormatMachO()) in createX86_64AsmBackend() 1525 if (TheTriple.isOSWindows() && TheTriple.isOSBinFormatCOFF()) in createX86_64AsmBackend() 1528 if (TheTriple.isUEFI()) { in createX86_64AsmBackend() 1529 assert(TheTriple.isOSBinFormatCOFF() && in createX86_64AsmBackend() [all …]
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-mc/ |
| H A D | llvm-mc.cpp | 247 Triple TheTriple(Triple::normalize(TripleName)); in GetTarget() local 251 const Target *TheTarget = TargetRegistry::lookupTarget(ArchName, TheTriple, in GetTarget() 259 TripleName = TheTriple.getTriple(); in GetTarget() 390 Triple TheTriple(TripleName); in main() local 443 MCContext Ctx(TheTriple, MAI.get(), MRI.get(), STI.get(), &SrcMgr, in main() 478 << TheTriple.normalize() << "\n"; in main() 546 << TheTriple.normalize() << "' with assembly variant " in main() 595 TheTriple, Ctx, std::unique_ptr<MCAsmBackend>(MAB), in main() 601 Str->emitVersionForTarget(TheTriple, VersionTuple(), nullptr, in main()
|
| /freebsd/contrib/llvm-project/llvm/tools/bugpoint/ |
| H A D | BugDriver.cpp | 109 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 D | NVPTXMCAsmInfo.cpp | 20 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 D | LVBinaryReader.cpp | 277 Error LVBinaryReader::loadGenericTargetInfo(StringRef TheTriple, in loadGenericTargetInfo() argument 281 TargetRegistry::lookupTarget(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/lib/Target/PowerPC/MCTargetDesc/ |
| H A D | PPCMCTargetDesc.cpp | 184 const Triple &TheTriple, in createPPCMCAsmInfo() argument 186 bool isPPC64 = (TheTriple.getArch() == Triple::ppc64 || in createPPCMCAsmInfo() 187 TheTriple.getArch() == Triple::ppc64le); in createPPCMCAsmInfo() 190 if (TheTriple.isOSBinFormatXCOFF()) in createPPCMCAsmInfo() 191 MAI = new PPCXCOFFMCAsmInfo(isPPC64, TheTriple); in createPPCMCAsmInfo() 193 MAI = new PPCELFMCAsmInfo(isPPC64, TheTriple); in createPPCMCAsmInfo()
|
| /freebsd/contrib/llvm-project/llvm/lib/MC/ |
| H A D | TargetRegistry.cpp | 106 Triple &TheTriple, in lookupTarget() argument 127 TheTriple.setArch(Type); in lookupTarget() 131 TheTarget = TargetRegistry::lookupTarget(TheTriple, TempError); in lookupTarget() 133 Error = "unable to get target for '" + TheTriple.getTriple() + in lookupTarget()
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-mca/ |
| H A D | llvm-mca.cpp | 298 Triple TheTriple(TripleName); in getTarget() local 303 TargetRegistry::lookupTarget(ArchName, TheTriple, Error); in getTarget() 310 TripleName = TheTriple.str(); in getTarget() 400 Triple TheTriple(TripleName); in main() local 430 << " target triple '" << TheTriple.normalize() << "' and cpu '" << MCPU in main() 476 << TheTriple.normalize() << "' with assembly variant " in main() 482 MCContext ACtx(TheTriple, MAI.get(), MRI.get(), STI.get(), &SrcMgr); in main() 525 MCContext ICtx(TheTriple, MAI.get(), MRI.get(), STI.get(), &SrcMgr); in main() 565 << TheTriple.normalize() << "' with assembly variant " in main()
|
| /freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/ |
| H A D | NaCl.cpp | 355 llvm::Triple TheTriple(ComputeLLVMTriple(Args, InputType)); in ComputeEffectiveClangTriple() local 356 if (TheTriple.getArch() == llvm::Triple::arm && in ComputeEffectiveClangTriple() 357 TheTriple.getEnvironment() == llvm::Triple::UnknownEnvironment) in ComputeEffectiveClangTriple() 358 TheTriple.setEnvironment(llvm::Triple::GNUEABIHF); in ComputeEffectiveClangTriple() 359 return TheTriple.getTriple(); in ComputeEffectiveClangTriple()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64MCInstLower.cpp | 48 const Triple &TheTriple = Printer.TM.getTargetTriple(); in GetGlobalValueSymbol() local 49 if (!TheTriple.isOSBinFormatCOFF()) in GetGlobalValueSymbol() 52 assert(TheTriple.isOSWindows() && in GetGlobalValueSymbol() 62 if (!TheTriple.isWindowsArm64EC() || !isa<Function>(GV) || in GetGlobalValueSymbol() 97 TheTriple.isWindowsArm64EC() && in GetGlobalValueSymbol()
|