Home
last modified time | relevance | path

Searched refs:Triple (Results 1 – 25 of 172) sorted by relevance

1234567

/external/llvm/lib/Support/
DTriple.cpp18 const char *Triple::getArchTypeName(ArchType Kind) { in getArchTypeName()
53 const char *Triple::getArchTypePrefix(ArchType Kind) { in getArchTypePrefix()
95 const char *Triple::getVendorTypeName(VendorType Kind) { in getVendorTypeName()
112 const char *Triple::getOSTypeName(OSType Kind) { in getOSTypeName()
145 const char *Triple::getEnvironmentTypeName(EnvironmentType Kind) { in getEnvironmentTypeName()
161 Triple::ArchType Triple::getArchTypeForLLVMName(StringRef Name) { in getArchTypeForLLVMName()
162 return StringSwitch<Triple::ArchType>(Name) in getArchTypeForLLVMName()
194 const char *Triple::getArchNameForAssembler() { in getArchNameForAssembler()
195 if (!isOSDarwin() && getVendor() != Triple::Apple) in getArchNameForAssembler()
219 static Triple::ArchType parseArch(StringRef ArchName) { in parseArch()
[all …]
/external/llvm/unittests/ADT/
DTripleTest.cpp18 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/
DTargets.cpp73 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.getOS() == llvm::Triple::IOS) { in getDarwinDefines()
157 assert(Triple.getEnvironmentName().empty() && "Invalid environment!"); in getDarwinDefines()
175 virtual void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
[all …]
/external/llvm/lib/Target/X86/MCTargetDesc/
DX86MCAsmInfo.cpp44 X86MCAsmInfoDarwin::X86MCAsmInfoDarwin(const Triple &T) { in X86MCAsmInfoDarwin()
45 bool is64Bit = T.getArch() == Triple::x86_64; in X86MCAsmInfoDarwin()
72 X86_64MCAsmInfoDarwin::X86_64MCAsmInfoDarwin(const Triple &Triple) in X86_64MCAsmInfoDarwin() argument
73 : X86MCAsmInfoDarwin(Triple) { in X86_64MCAsmInfoDarwin()
78 X86ELFMCAsmInfo::X86ELFMCAsmInfo(const Triple &T) { in X86ELFMCAsmInfo()
79 bool is64Bit = T.getArch() == Triple::x86_64; in X86ELFMCAsmInfo()
80 bool isX32 = T.getEnvironment() == Triple::GNUX32; in X86ELFMCAsmInfo()
109 if ((T.getOS() == Triple::OpenBSD || T.getOS() == Triple::Bitrig) && in X86ELFMCAsmInfo()
110 T.getArch() == Triple::x86) in X86ELFMCAsmInfo()
133 X86MCAsmInfoMicrosoft::X86MCAsmInfoMicrosoft(const Triple &Triple) { in X86MCAsmInfoMicrosoft() argument
[all …]
DX86MCAsmInfo.h22 class Triple; variable
27 explicit X86MCAsmInfoDarwin(const Triple &Triple);
31 explicit X86_64MCAsmInfoDarwin(const Triple &Triple);
41 explicit X86ELFMCAsmInfo(const Triple &Triple);
48 explicit X86MCAsmInfoMicrosoft(const Triple &Triple);
54 explicit X86MCAsmInfoGNUCOFF(const Triple &Triple);
DX86MCTargetDesc.cpp47 Triple TheTriple(TT); in ParseX86Triple()
49 if (TheTriple.getArch() == Triple::x86_64) in ParseX86Triple()
199 Triple TheTriple(TT); in getDwarfRegFlavour()
200 if (TheTriple.getArch() == Triple::x86_64) in getDwarfRegFlavour()
205 if (TheTriple.getOS() == Triple::MinGW32 || in getDwarfRegFlavour()
206 TheTriple.getOS() == Triple::Cygwin) in getDwarfRegFlavour()
252 Triple TheTriple(TT); in createX86MCRegisterInfo()
253 unsigned RA = (TheTriple.getArch() == Triple::x86_64) in createX86MCRegisterInfo()
267 Triple TheTriple(TT); in createX86MCAsmInfo()
268 bool is64Bit = TheTriple.getArch() == Triple::x86_64; in createX86MCAsmInfo()
[all …]
/external/clang/lib/Driver/
DToolChains.h72 llvm::Triple GCCTriple;
86 GCCInstallationDetector(const Driver &D, const llvm::Triple &TargetTriple,
93 const llvm::Triple &getTriple() const { return GCCTriple; } in getTriple()
113 CollectLibDirsAndTriples(const llvm::Triple &TargetTriple,
114 const llvm::Triple &BiarchTriple,
120 void ScanLibDirForGCCTriple(llvm::Triple::ArchType TargetArch,
130 Generic_GCC(const Driver &D, const llvm::Triple &Triple,
208 Darwin(const Driver &D, const llvm::Triple &Triple,
330 return getTriple().getArch() != llvm::Triple::x86; in IsObjCNonFragileABIDefault()
370 DarwinClang(const Driver &D, const llvm::Triple &Triple,
[all …]
DToolChains.cpp46 Darwin::Darwin(const Driver &D, const llvm::Triple& Triple, const ArgList &Args) in Darwin() argument
47 : ToolChain(D, Triple, Args), TargetInitialized(false) in Darwin()
51 if (!Triple.getMacOSXVersion(Major, Minor, Micro)) in Darwin()
53 Triple.getOSName(); in Darwin()
64 Triple.getiOSVersion(Major, Minor, Micro); in Darwin()
140 case llvm::Triple::thumb: in getDarwinArchName()
141 case llvm::Triple::arm: { in getDarwinArchName()
160 llvm::Triple Triple(ComputeLLVMTriple(Args, InputType)); in ComputeEffectiveClangTriple() local
165 return Triple.getTriple(); in ComputeEffectiveClangTriple()
170 Triple.setOSName(Str); in ComputeEffectiveClangTriple()
[all …]
DToolChain.cpp27 ToolChain::ToolChain(const Driver &D, const llvm::Triple &T, in ToolChain()
29 : D(D), Triple(T), Args(A) { in ToolChain()
50 switch (Triple.getArch()) { in getDefaultUniversalArchName()
51 case llvm::Triple::ppc: in getDefaultUniversalArchName()
53 case llvm::Triple::ppc64: in getDefaultUniversalArchName()
55 case llvm::Triple::ppc64le: in getDefaultUniversalArchName()
58 return Triple.getArchName(); in getDefaultUniversalArchName()
159 const llvm::Triple &Triple) { in getARMTargetCPU() argument
163 if (!Triple.isOSDarwin()) { in getARMTargetCPU()
176 MArch = Triple.getArchName(); in getARMTargetCPU()
[all …]
DTools.cpp210 llvm::Triple Triple) { in addProfileRT() argument
476 const llvm::Triple &Triple) { in getARMTargetCPU() argument
495 MArch = Triple.getArchName(); in getARMTargetCPU()
540 static bool isSignedCharDefault(const llvm::Triple &Triple) { in isSignedCharDefault() argument
541 switch (Triple.getArch()) { in isSignedCharDefault()
545 case llvm::Triple::aarch64: in isSignedCharDefault()
546 case llvm::Triple::arm: in isSignedCharDefault()
547 case llvm::Triple::ppc: in isSignedCharDefault()
548 case llvm::Triple::ppc64: in isSignedCharDefault()
549 if (Triple.isOSDarwin()) in isSignedCharDefault()
[all …]
/external/clang/lib/Frontend/
DInitHeaderSearch.cpp77 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::FreeBSD: in AddDefaultCIncludePaths()
[all …]
/external/llvm/lib/Support/Unix/
DHost.inc45 std::string Triple(Arch);
46 Triple += '-';
47 Triple += ArchSplit.second;
50 if (Triple[0] == 'i' && isdigit(Triple[1]) &&
51 Triple[2] == '8' && Triple[3] == '6')
52 Triple[1] = '3';
56 std::string::size_type DarwinDashIdx = Triple.find("-darwin");
58 Triple.resize(DarwinDashIdx + strlen("-darwin"));
59 Triple += getOSVersion();
62 return Triple;
/external/llvm/include/llvm/ADT/
DTriple.h43 class Triple {
149 Triple() : Data(), Arch(), Vendor(), OS(), Environment() {} in Triple() function
151 explicit Triple(const Twine &Str);
152 Triple(const Twine &ArchStr, const Twine &VendorStr, const Twine &OSStr);
153 Triple(const Twine &ArchStr, const Twine &VendorStr, const Twine &OSStr,
292 if (getOS() == Triple::MacOSX)
303 return getOS() == Triple::Darwin || getOS() == Triple::MacOSX; in isMacOSX()
308 return getOS() == Triple::IOS; in isiOS()
318 return getOS() == Triple::Cygwin || getOS() == Triple::MinGW32; in isOSCygMing()
323 return getOS() == Triple::Win32 || isOSCygMing(); in isOSWindows()
[all …]
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_debug.cpp197 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/chromium_org/third_party/mesa/src/src/gallium/auxiliary/gallivm/
Dlp_bld_debug.cpp197 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/MC/
DMCObjectFileInfo.cpp19 void MCObjectFileInfo::InitMachOMCObjectFileInfo(Triple T) { in InitMachOMCObjectFileInfo()
82 T.getArch() != Triple::x86_64 && T.getArch() != Triple::ppc64 && in InitMachOMCObjectFileInfo()
83 T.getArch() != Triple::ppc64le) in InitMachOMCObjectFileInfo()
155 if (T.getArch() == Triple::x86_64 || T.getArch() == Triple::x86) in InitMachOMCObjectFileInfo()
230 void MCObjectFileInfo::InitELFMCObjectFileInfo(Triple T) { in InitELFMCObjectFileInfo()
231 if (T.getArch() == Triple::mips || in InitELFMCObjectFileInfo()
232 T.getArch() == Triple::mipsel) in InitELFMCObjectFileInfo()
234 else if (T.getArch() == Triple::mips64 || in InitELFMCObjectFileInfo()
235 T.getArch() == Triple::mips64el) in InitELFMCObjectFileInfo()
240 if (T.getArch() == Triple::x86) { in InitELFMCObjectFileInfo()
[all …]
/external/llvm/lib/ExecutionEngine/
DTargetSelect.cpp29 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()
93 TheTriple.getArch() == Triple::arm && in selectTarget()
94 TheTriple.getOS() != Triple::IOS && in selectTarget()
/external/llvm/lib/Target/PowerPC/MCTargetDesc/
DPPCMCTargetDesc.cpp44 Triple TheTriple(TT); in createPPCMCRegisterInfo()
45 bool isPPC64 = (TheTriple.getArch() == Triple::ppc64 || in createPPCMCRegisterInfo()
46 TheTriple.getArch() == Triple::ppc64le); in createPPCMCRegisterInfo()
63 Triple TheTriple(TT); in createPPCMCAsmInfo()
64 bool isPPC64 = (TheTriple.getArch() == Triple::ppc64 || in createPPCMCAsmInfo()
65 TheTriple.getArch() == Triple::ppc64le); in createPPCMCAsmInfo()
88 Triple T(TT); in createPPCMCCodeGenInfo()
95 Triple T(TT); in createPPCMCCodeGenInfo()
97 (T.getArch() == Triple::ppc64 || T.getArch() == Triple::ppc64le)) in createPPCMCCodeGenInfo()
111 if (Triple(TT).isOSDarwin()) in createMCStreamer()
[all …]
/external/llvm/lib/Target/X86/
DX86Subtarget.h190 Triple TargetTriple;
240 return In64BitMode && (TargetTriple.getEnvironment() == Triple::GNUX32); in isTarget64BitILP32()
245 return In64BitMode && (TargetTriple.getEnvironment() != Triple::GNUX32); in isTarget64BitLP64()
301 const Triple &getTargetTriple() const { return TargetTriple; } in getTargetTriple()
305 return TargetTriple.getOS() == Triple::FreeBSD; in isTargetFreeBSD()
308 return TargetTriple.getOS() == Triple::Solaris; in isTargetSolaris()
311 return (TargetTriple.getEnvironment() == Triple::ELF || in isTargetELF()
314 bool isTargetLinux() const { return TargetTriple.getOS() == Triple::Linux; } in isTargetLinux()
316 return TargetTriple.getOS() == Triple::NaCl; in isTargetNaCl()
320 bool isTargetWindows() const { return TargetTriple.getOS() == Triple::Win32; } in isTargetWindows()
[all …]
/external/llvm/unittests/ExecutionEngine/MCJIT/
DMCJITTestBase.h40 TrivialModuleBuilder(const std::string &Triple) in TrivialModuleBuilder() argument
41 : Builder(Context), BuilderTriple(Triple) {} in TrivialModuleBuilder()
45 M->setTargetTriple(Triple::normalize(BuilderTriple));
157 SupportedArchs.push_back(Triple::aarch64); in MCJITTestBase()
158 SupportedArchs.push_back(Triple::arm); in MCJITTestBase()
159 SupportedArchs.push_back(Triple::mips); in MCJITTestBase()
160 SupportedArchs.push_back(Triple::mipsel); in MCJITTestBase()
161 SupportedArchs.push_back(Triple::x86); in MCJITTestBase()
162 SupportedArchs.push_back(Triple::x86_64); in MCJITTestBase()
167 HasSubArchs.push_back(Triple::arm); in MCJITTestBase()
[all …]
DMCJITTestAPICommon.h46 HostTriple = Triple::normalize(HostTriple); in MCJITTestAPICommon()
51 Triple Host(HostTriple); in ArchSupportsMCJIT()
73 Triple Host(HostTriple); in OSSupportsMCJIT()
82 SmallVector<Triple::ArchType, 4> SupportedArchs;
83 SmallVector<Triple::ArchType, 1> HasSubArchs;
85 SmallVector<Triple::OSType, 4> UnsupportedOSs;
/external/clang/lib/Sema/
DTargetAttributesSema.cpp214 const llvm::Triple &Triple(S.Context.getTargetInfo().getTriple()); in ProcessDeclAttribute() local
215 if (Triple.getOS() == llvm::Triple::Win32 || in ProcessDeclAttribute()
216 Triple.getOS() == llvm::Triple::MinGW32) { in ProcessDeclAttribute()
225 if (Triple.getArch() != llvm::Triple::x86_64 && in ProcessDeclAttribute()
293 const llvm::Triple &Triple(Context.getTargetInfo().getTriple()); in getTargetAttributesSema() local
294 switch (Triple.getArch()) { in getTargetAttributesSema()
295 case llvm::Triple::msp430: in getTargetAttributesSema()
297 case llvm::Triple::x86: in getTargetAttributesSema()
298 case llvm::Triple::x86_64: in getTargetAttributesSema()
300 case llvm::Triple::mips: in getTargetAttributesSema()
[all …]
/external/llvm/lib/Target/Mips/MCTargetDesc/
DMipsMCAsmInfo.cpp22 Triple TheTriple(TT); in MipsMCAsmInfo()
23 if ((TheTriple.getArch() == Triple::mips) || in MipsMCAsmInfo()
24 (TheTriple.getArch() == Triple::mips64)) in MipsMCAsmInfo()
27 if ((TheTriple.getArch() == Triple::mips64el) || in MipsMCAsmInfo()
28 (TheTriple.getArch() == Triple::mips64)) { in MipsMCAsmInfo()
/external/clang/include/clang/Driver/
DToolChain.h56 const llvm::Triple Triple; variable
76 ToolChain(const Driver &D, const llvm::Triple &T,
106 const llvm::Triple &getTriple() const { return Triple; } in getTriple()
108 llvm::Triple::ArchType getArch() const { return Triple.getArch(); } in getArch()
109 StringRef getArchName() const { return Triple.getArchName(); } in getArchName()
110 StringRef getPlatform() const { return Triple.getVendorName(); } in getPlatform()
111 StringRef getOS() const { return Triple.getOSName(); } in getOS()
118 return Triple.getTriple(); in getTripleString()
/external/llvm/lib/Object/
DMachOUniversal.cpp82 Triple::getArchTypeName(MachOObjectFile::getArch(Header.CPUType)); in getAsObjectFile()
116 static bool getCTMForArch(Triple::ArchType Arch, mach::CPUTypeMachine &CTM) { in getCTMForArch()
118 case Triple::x86: CTM = mach::CTM_i386; return true; in getCTMForArch()
119 case Triple::x86_64: CTM = mach::CTM_x86_64; return true; in getCTMForArch()
120 case Triple::arm: CTM = mach::CTM_ARM; return true; in getCTMForArch()
121 case Triple::sparc: CTM = mach::CTM_SPARC; return true; in getCTMForArch()
122 case Triple::ppc: CTM = mach::CTM_PowerPC; return true; in getCTMForArch()
123 case Triple::ppc64: CTM = mach::CTM_PowerPC64; return true; in getCTMForArch()
129 MachOUniversalBinary::getObjectForArch(Triple::ArchType Arch, in getObjectForArch()

1234567