/external/llvm/lib/Support/ |
D | Triple.cpp | 18 const char *Triple::getArchTypeName(ArchType Kind) { in getArchTypeName() 63 const char *Triple::getArchTypePrefix(ArchType Kind) { in getArchTypePrefix() 120 const char *Triple::getVendorTypeName(VendorType Kind) { in getVendorTypeName() 140 const char *Triple::getOSTypeName(OSType Kind) { in getOSTypeName() 173 const char *Triple::getEnvironmentTypeName(EnvironmentType Kind) { in getEnvironmentTypeName() 192 Triple::ArchType Triple::getArchTypeForLLVMName(StringRef Name) { in getArchTypeForLLVMName() 193 return StringSwitch<Triple::ArchType>(Name) in getArchTypeForLLVMName() 235 static Triple::ArchType parseARMArch(StringRef ArchName) { in parseARMArch() 237 Triple::ArchType arch = Triple::UnknownArch; in parseARMArch() 241 return Triple::arm; in parseARMArch() [all …]
|
/external/llvm/unittests/ADT/ |
D | TripleTest.cpp | 18 Triple T; in TEST() 20 T = Triple(""); in TEST() 26 T = Triple("-"); in TEST() 32 T = Triple("--"); in TEST() 38 T = Triple("---"); in TEST() 44 T = Triple("----"); in TEST() 50 T = Triple("a"); in TEST() 56 T = Triple("a-b"); in TEST() 62 T = Triple("a-b-c"); in TEST() 68 T = Triple("a-b-c-d"); in TEST() [all …]
|
/external/clang/lib/Basic/ |
D | Targets.cpp | 73 virtual void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, 76 OSTargetInfo(const llvm::Triple &Triple) : TgtInfo(Triple) {} in OSTargetInfo() argument 88 const llvm::Triple &Triple, in getDarwinDefines() argument 125 if (Triple.isMacOSX()) { in getDarwinDefines() 126 Triple.getMacOSXVersion(Maj, Min, Rev); in getDarwinDefines() 129 Triple.getOSVersion(Maj, Min, Rev); in getDarwinDefines() 130 PlatformName = llvm::Triple::getOSTypeName(Triple.getOS()); in getDarwinDefines() 142 if (Triple.isiOS()) { in getDarwinDefines() 153 } else if (Triple.isMacOSX()) { in getDarwinDefines() 180 if (Triple.isOSDarwin()) in getDarwinDefines() [all …]
|
/external/llvm/include/llvm/ADT/ |
D | Triple.h | 44 class Triple { 201 Triple() : Data(), Arch(), Vendor(), OS(), Environment(), ObjectFormat() {} in Triple() function 203 explicit Triple(const Twine &Str); 204 Triple(const Twine &ArchStr, const Twine &VendorStr, const Twine &OSStr); 205 Triple(const Twine &ArchStr, const Twine &VendorStr, const Twine &OSStr, 208 bool operator==(const Triple &Other) const { 352 bool isOSVersionLT(const Triple &Other) const { in isOSVersionLT() 366 if (getOS() == Triple::MacOSX) 377 return getOS() == Triple::Darwin || getOS() == Triple::MacOSX; in isMacOSX() 382 return getOS() == Triple::IOS; in isiOS() [all …]
|
/external/clang/lib/Driver/ |
D | ToolChain.cpp | 35 const llvm::Triple &Triple, in CalculateRTTIMode() argument 46 if (!Triple.isPS4CPU()) in CalculateRTTIMode() 62 ToolChain::ToolChain(const Driver &D, const llvm::Triple &T, in ToolChain() 64 : D(D), Triple(T), Args(Args), CachedRTTIArg(GetRTTIArgument(Args)), in ToolChain() 65 CachedRTTIMode(CalculateRTTIMode(Args, Triple, CachedRTTIArg)) { in ToolChain() 96 switch (Triple.getArch()) { in getDefaultUniversalArchName() 97 case llvm::Triple::ppc: in getDefaultUniversalArchName() 99 case llvm::Triple::ppc64: in getDefaultUniversalArchName() 101 case llvm::Triple::ppc64le: in getDefaultUniversalArchName() 104 return Triple.getArchName(); in getDefaultUniversalArchName() [all …]
|
D | ToolChains.cpp | 41 MachO::MachO(const Driver &D, const llvm::Triple &Triple, in MachO() argument 43 : ToolChain(D, Triple, Args) { in MachO() 55 Darwin::Darwin(const Driver & D, const llvm::Triple & Triple, in Darwin() argument 57 : MachO(D, Triple, Args), TargetInitialized(false) { in Darwin() 60 if (!Triple.getMacOSXVersion(Major, Minor, Micro)) in Darwin() 62 Triple.getOSName(); in Darwin() 73 Triple.getiOSVersion(Major, Minor, Micro); in Darwin() 161 case llvm::Triple::aarch64: in getMachOArchName() 164 case llvm::Triple::thumb: in getMachOArchName() 165 case llvm::Triple::arm: { in getMachOArchName() [all …]
|
D | Tools.cpp | 477 static bool isSignedCharDefault(const llvm::Triple &Triple) { in isSignedCharDefault() argument 478 switch (Triple.getArch()) { in isSignedCharDefault() 482 case llvm::Triple::aarch64: in isSignedCharDefault() 483 case llvm::Triple::aarch64_be: in isSignedCharDefault() 484 case llvm::Triple::arm: in isSignedCharDefault() 485 case llvm::Triple::armeb: in isSignedCharDefault() 486 case llvm::Triple::thumb: in isSignedCharDefault() 487 case llvm::Triple::thumbeb: in isSignedCharDefault() 488 if (Triple.isOSDarwin() || Triple.isOSWindows()) in isSignedCharDefault() 492 case llvm::Triple::ppc: in isSignedCharDefault() [all …]
|
D | ToolChains.h | 80 llvm::Triple GCCTriple; 103 void init(const Driver &D, const llvm::Triple &TargetTriple, 110 const llvm::Triple &getTriple() const { return GCCTriple; } in getTriple() 136 CollectLibDirsAndTriples(const llvm::Triple &TargetTriple, 137 const llvm::Triple &BiarchTriple, 143 void ScanLibDirForGCCTriple(const llvm::Triple &TargetArch, 153 Generic_GCC(const Driver &D, const llvm::Triple &Triple, 197 MachO(const Driver &D, const llvm::Triple &Triple, 277 return getTriple().getArch() != llvm::Triple::x86; in IsObjCNonFragileABIDefault() 346 Darwin(const Driver &D, const llvm::Triple &Triple, [all …]
|
D | CrossWindowsToolChain.cpp | 19 const llvm::Triple &T, in CrossWindowsToolChain() 35 return getArch() == llvm::Triple::x86_64; in IsUnwindTablesDefault() 39 return getArch() == llvm::Triple::x86_64; in isPICDefault() 43 return getArch() == llvm::Triple::x86_64; in isPIEDefault() 47 return getArch() == llvm::Triple::x86_64; in isPICDefaultForced() 71 const llvm::Triple &Triple = getTriple(); in AddClangCXXStdlibIncludeArgs() local 86 SysRoot + "/usr/include/c++/" + Triple.str()); in AddClangCXXStdlibIncludeArgs()
|
/external/lldb/source/Plugins/Process/Utility/ |
D | StopInfoMachException.cpp | 39 …const llvm::Triple::ArchType cpu = target ? target->GetArchitecture().GetMachine() : llvm::Triple:… in GetDescription() 53 case llvm::Triple::x86: in GetDescription() 54 case llvm::Triple::x86_64: in GetDescription() 60 case llvm::Triple::arm: in GetDescription() 68 case llvm::Triple::ppc: in GetDescription() 69 case llvm::Triple::ppc64: in GetDescription() 87 case llvm::Triple::x86: in GetDescription() 88 case llvm::Triple::x86_64: in GetDescription() 93 case llvm::Triple::ppc: in GetDescription() 94 case llvm::Triple::ppc64: in GetDescription() [all …]
|
/external/lldb/source/Core/ |
D | ArchSpec.cpp | 41 llvm::Triple::ArchType machine; 51 …{ eByteOrderLittle, 4, 2, 4, llvm::Triple::arm , ArchSpec::eCore_arm_generic , "arm" … 52 …{ eByteOrderLittle, 4, 2, 4, llvm::Triple::arm , ArchSpec::eCore_arm_armv4 , "armv4" … 53 …{ eByteOrderLittle, 4, 2, 4, llvm::Triple::arm , ArchSpec::eCore_arm_armv4t , "armv4t" … 54 …{ eByteOrderLittle, 4, 2, 4, llvm::Triple::arm , ArchSpec::eCore_arm_armv5 , "armv5" … 55 …{ eByteOrderLittle, 4, 2, 4, llvm::Triple::arm , ArchSpec::eCore_arm_armv5e , "armv5e" … 56 …{ eByteOrderLittle, 4, 2, 4, llvm::Triple::arm , ArchSpec::eCore_arm_armv5t , "armv5t" … 57 …{ eByteOrderLittle, 4, 2, 4, llvm::Triple::arm , ArchSpec::eCore_arm_armv6 , "armv6" … 58 …{ eByteOrderLittle, 4, 2, 4, llvm::Triple::arm , ArchSpec::eCore_arm_armv7 , "armv7" … 59 …{ eByteOrderLittle, 4, 2, 4, llvm::Triple::arm , ArchSpec::eCore_arm_armv7f , "armv7f" … [all …]
|
/external/llvm/lib/Target/X86/MCTargetDesc/ |
D | X86MCAsmInfo.cpp | 44 X86MCAsmInfoDarwin::X86MCAsmInfoDarwin(const Triple &T) { in X86MCAsmInfoDarwin() 45 bool is64Bit = T.getArch() == Triple::x86_64; in X86MCAsmInfoDarwin() 83 X86_64MCAsmInfoDarwin::X86_64MCAsmInfoDarwin(const Triple &Triple) in X86_64MCAsmInfoDarwin() argument 84 : X86MCAsmInfoDarwin(Triple) { in X86_64MCAsmInfoDarwin() 89 X86ELFMCAsmInfo::X86ELFMCAsmInfo(const Triple &T) { in X86ELFMCAsmInfo() 90 bool is64Bit = T.getArch() == Triple::x86_64; in X86ELFMCAsmInfo() 91 bool isX32 = T.getEnvironment() == Triple::GNUX32; in X86ELFMCAsmInfo() 129 X86MCAsmInfoMicrosoft::X86MCAsmInfoMicrosoft(const Triple &Triple) { in X86MCAsmInfoMicrosoft() argument 130 if (Triple.getArch() == Triple::x86_64) { in X86MCAsmInfoMicrosoft() 149 X86MCAsmInfoGNUCOFF::X86MCAsmInfoGNUCOFF(const Triple &Triple) { in X86MCAsmInfoGNUCOFF() argument [all …]
|
D | X86MCAsmInfo.h | 23 class Triple; variable 29 explicit X86MCAsmInfoDarwin(const Triple &Triple); 33 explicit X86_64MCAsmInfoDarwin(const Triple &Triple); 42 explicit X86ELFMCAsmInfo(const Triple &Triple); 48 explicit X86MCAsmInfoMicrosoft(const Triple &Triple); 54 explicit X86MCAsmInfoGNUCOFF(const Triple &Triple);
|
D | X86MCTargetDesc.cpp | 46 Triple TheTriple(TT); in ParseX86Triple() 48 if (TheTriple.getArch() == Triple::x86_64) in ParseX86Triple() 50 else if (TheTriple.getEnvironment() != Triple::CODE16) in ParseX86Triple() 58 unsigned X86_MC::getDwarfRegFlavour(Triple TT, bool isEH) { in getDwarfRegFlavour() 59 if (TT.getArch() == Triple::x86_64) in getDwarfRegFlavour() 104 Triple TheTriple(TT); in createX86MCRegisterInfo() 105 unsigned RA = (TheTriple.getArch() == Triple::x86_64) in createX86MCRegisterInfo() 119 Triple TheTriple(TT); in createX86MCAsmInfo() 120 bool is64Bit = TheTriple.getArch() == Triple::x86_64; in createX86MCAsmInfo() 165 Triple T(TT); in createX86MCCodeGenInfo() [all …]
|
/external/clang/lib/Frontend/ |
D | InitHeaderSearch.cpp | 77 const llvm::Triple &triple); 91 void AddDefaultCIncludePaths(const llvm::Triple &triple, 96 void AddDefaultCPlusPlusIncludePaths(const llvm::Triple &triple, 102 const llvm::Triple &triple, 184 const llvm::Triple &triple) { in AddGnuCPlusPlusIncludePaths() 189 llvm::Triple::ArchType arch = triple.getArch(); in AddGnuCPlusPlusIncludePaths() 190 bool is64bit = arch == llvm::Triple::ppc64 || arch == llvm::Triple::x86_64; in AddGnuCPlusPlusIncludePaths() 224 void InitHeaderSearch::AddDefaultCIncludePaths(const llvm::Triple &triple, in AddDefaultCIncludePaths() 226 llvm::Triple::OSType os = triple.getOS(); in AddDefaultCIncludePaths() 230 case llvm::Triple::CloudABI: in AddDefaultCIncludePaths() [all …]
|
/external/llvm/lib/MC/ |
D | MCObjectFileInfo.cpp | 21 static bool useCompactUnwind(const Triple &T) { in useCompactUnwind() 27 if (T.getArch() == Triple::aarch64) in useCompactUnwind() 36 (T.getArch() == Triple::x86_64 || T.getArch() == Triple::x86)) in useCompactUnwind() 42 void MCObjectFileInfo::InitMachOMCObjectFileInfo(Triple T) { in InitMachOMCObjectFileInfo() 46 if (T.isOSDarwin() && T.getArch() == Triple::aarch64) in InitMachOMCObjectFileInfo() 178 if (T.getArch() == Triple::x86_64 || T.getArch() == Triple::x86) in InitMachOMCObjectFileInfo() 180 else if (T.getArch() == Triple::aarch64) in InitMachOMCObjectFileInfo() 244 void MCObjectFileInfo::InitELFMCObjectFileInfo(Triple T) { in InitELFMCObjectFileInfo() 246 case Triple::mips: in InitELFMCObjectFileInfo() 247 case Triple::mipsel: in InitELFMCObjectFileInfo() [all …]
|
/external/llvm/lib/Target/ARM/MCTargetDesc/ |
D | ARMMCTargetDesc.cpp | 135 Triple triple(TT); in ParseARMTriple() 137 bool isThumb = triple.getArch() == Triple::thumb || in ParseARMTriple() 138 triple.getArch() == Triple::thumbeb; in ParseARMTriple() 145 case Triple::ARMSubArch_v8: in ParseARMTriple() 156 case Triple::ARMSubArch_v8_1a: in ParseARMTriple() 167 case Triple::ARMSubArch_v7m: in ParseARMTriple() 176 case Triple::ARMSubArch_v7em: in ParseARMTriple() 185 case Triple::ARMSubArch_v7s: in ParseARMTriple() 194 case Triple::ARMSubArch_v7: in ParseARMTriple() 206 case Triple::ARMSubArch_v6t2: in ParseARMTriple() [all …]
|
D | ARMMCAsmInfo.cpp | 23 Triple TheTriple(TT); in ARMMCAsmInfoDarwin() 24 if ((TheTriple.getArch() == Triple::armeb) || in ARMMCAsmInfoDarwin() 25 (TheTriple.getArch() == Triple::thumbeb)) in ARMMCAsmInfoDarwin() 45 Triple TheTriple(TT); in ARMELFMCAsmInfo() 46 if ((TheTriple.getArch() == Triple::armeb) || in ARMELFMCAsmInfo() 47 (TheTriple.getArch() == Triple::thumbeb)) in ARMELFMCAsmInfo() 62 case Triple::Bitrig: in ARMELFMCAsmInfo() 63 case Triple::NetBSD: in ARMELFMCAsmInfo()
|
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_debug.cpp | 197 std::string Triple = sys::getDefaultTargetTriple(); local 199 std::string Triple = sys::getHostTriple(); local 203 const Target *T = TargetRegistry::lookupTarget(Triple, Error); 206 OwningPtr<const MCAsmInfo> AsmInfo(T->createMCAsmInfo(Triple)); 208 OwningPtr<const MCAsmInfo> AsmInfo(T->createAsmInfo(Triple)); 212 debug_printf("error: no assembly info for target %s\n", Triple.c_str()); 217 const MCSubtargetInfo *STI = T->createMCSubtargetInfo(Triple, sys::getHostCPUName(), ""); 223 debug_printf("error: no disassembler for target %s\n", Triple.c_str()); 236 OwningPtr<const MCRegisterInfo> MRI(T->createMCRegInfo(Triple)); 238 debug_printf("error: no register info for target %s\n", Triple.c_str()); [all …]
|
/external/llvm/lib/ExecutionEngine/RuntimeDyld/ |
D | RuntimeDyldELF.h | 53 if (Arch == Triple::aarch64 || Arch == Triple::aarch64_be) in getMaxStubSize() 55 if (Arch == Triple::arm || Arch == Triple::thumb) in getMaxStubSize() 57 else if (Arch == Triple::mipsel || Arch == Triple::mips) in getMaxStubSize() 59 else if (Arch == Triple::ppc64 || Arch == Triple::ppc64le) in getMaxStubSize() 61 else if (Arch == Triple::x86_64) in getMaxStubSize() 63 else if (Arch == Triple::systemz) in getMaxStubSize() 70 if (Arch == Triple::systemz) in getStubAlignment()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCTargetMachine.cpp | 59 static std::string getDataLayoutString(const Triple &T) { in getDataLayoutString() 60 bool is64Bit = T.getArch() == Triple::ppc64 || T.getArch() == Triple::ppc64le; in getDataLayoutString() 64 if (T.getArch() == Triple::ppc64le) in getDataLayoutString() 73 if (!is64Bit || T.getOS() == Triple::Lv2) in getDataLayoutString() 94 Triple TargetTriple(TT); in computeFSAdditions() 97 if (TargetTriple.getArch() == Triple::ppc64 || in computeFSAdditions() 98 TargetTriple.getArch() == Triple::ppc64le) { in computeFSAdditions() 122 static std::unique_ptr<TargetLoweringObjectFile> createTLOF(const Triple &TT) { in createTLOF() 131 static PPCTargetMachine::PPCABI computeTargetABI(const Triple &TT, in computeTargetABI() 143 case Triple::ppc64le: in computeTargetABI() [all …]
|
/external/llvm/lib/Target/ARM/ |
D | ARMTargetMachine.cpp | 58 static std::unique_ptr<TargetLoweringObjectFile> createTLOF(const Triple &TT) { in createTLOF() 67 computeTargetABI(const Triple &TT, StringRef CPU, in computeTargetABI() 82 if (TT.getEnvironment() == llvm::Triple::EABI || in computeTargetABI() 83 (TT.getOS() == llvm::Triple::UnknownOS && in computeTargetABI() 84 TT.getObjectFormat() == llvm::Triple::MachO) || in computeTargetABI() 96 case llvm::Triple::Android: in computeTargetABI() 97 case llvm::Triple::GNUEABI: in computeTargetABI() 98 case llvm::Triple::GNUEABIHF: in computeTargetABI() 99 case llvm::Triple::EABIHF: in computeTargetABI() 100 case llvm::Triple::EABI: in computeTargetABI() [all …]
|
D | ARMSubtarget.h | 223 Triple TargetTriple; 349 const Triple &getTargetTriple() const { return TargetTriple; } in getTargetTriple() 370 return (TargetTriple.getEnvironment() == Triple::EABI || in isTargetAEABI() 371 TargetTriple.getEnvironment() == Triple::EABIHF) && in isTargetAEABI() 378 return (TargetTriple.getEnvironment() == Triple::EABI || in isTargetEHABICompatible() 379 TargetTriple.getEnvironment() == Triple::GNUEABI || in isTargetEHABICompatible() 380 TargetTriple.getEnvironment() == Triple::EABIHF || in isTargetEHABICompatible() 381 TargetTriple.getEnvironment() == Triple::GNUEABIHF || in isTargetEHABICompatible() 382 TargetTriple.getEnvironment() == Triple::Android) && in isTargetEHABICompatible() 388 return TargetTriple.getEnvironment() == Triple::GNUEABIHF || in isTargetHardFloat() [all …]
|
/external/llvm/unittests/ExecutionEngine/MCJIT/ |
D | MCJITTestAPICommon.h | 46 HostTriple = Triple::normalize(HostTriple); in MCJITTestAPICommon() 51 Triple Host(HostTriple); in ArchSupportsMCJIT() 73 Triple Host(HostTriple); in OSSupportsMCJIT() 87 SmallVector<Triple::ArchType, 4> SupportedArchs; 88 SmallVector<Triple::ArchType, 1> HasSubArchs; 90 SmallVector<Triple::OSType, 4> UnsupportedOSs; 91 SmallVector<Triple::EnvironmentType, 1> UnsupportedEnvironments;
|
/external/llvm/lib/ExecutionEngine/ |
D | TargetSelect.cpp | 29 Triple TT; in selectTarget() 41 TargetMachine *EngineBuilder::selectTarget(const Triple &TargetTriple, in selectTarget() 45 Triple TheTriple(TargetTriple); in selectTarget() 69 Triple::ArchType Type = Triple::getArchTypeForLLVMName(MArch); in selectTarget() 70 if (Type != Triple::UnknownArch) in selectTarget() 92 if (TheTriple.getArch() == Triple::arm && in selectTarget()
|