Home
last modified time | relevance | path

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

12345678910>>...15

/external/llvm/lib/Support/
DTriple.cpp20 const char *Triple::getArchTypeName(ArchType Kind) { in getArchTypeName()
71 const char *Triple::getArchTypePrefix(ArchType Kind) { in getArchTypePrefix()
135 const char *Triple::getVendorTypeName(VendorType Kind) { in getVendorTypeName()
156 const char *Triple::getOSTypeName(OSType Kind) { in getOSTypeName()
192 const char *Triple::getEnvironmentTypeName(EnvironmentType Kind) { in getEnvironmentTypeName()
213 static Triple::ArchType parseBPFArch(StringRef ArchName) { in parseBPFArch()
216 return Triple::bpfel; in parseBPFArch()
218 return Triple::bpfeb; in parseBPFArch()
220 return Triple::bpfeb; in parseBPFArch()
222 return Triple::bpfel; in parseBPFArch()
[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.cpp76 virtual void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple,
79 OSTargetInfo(const llvm::Triple &Triple) : TgtInfo(Triple) {} in OSTargetInfo() argument
92 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
104 CloudABITargetInfo(const llvm::Triple &Triple) in CloudABITargetInfo() argument
105 : OSTargetInfo<Target>(Triple) { in CloudABITargetInfo()
111 const llvm::Triple &Triple, in getDarwinDefines() argument
140 if (Triple.isMacOSX()) { in getDarwinDefines()
141 Triple.getMacOSXVersion(Maj, Min, Rev); in getDarwinDefines()
144 Triple.getOSVersion(Maj, Min, Rev); in getDarwinDefines()
145 PlatformName = llvm::Triple::getOSTypeName(Triple.getOS()); in getDarwinDefines()
[all …]
/external/llvm/include/llvm/ADT/
DTriple.h44 class Triple {
219 Triple() : Data(), Arch(), Vendor(), OS(), Environment(), ObjectFormat() {} in Triple() function
221 explicit Triple(const Twine &Str);
222 Triple(const Twine &ArchStr, const Twine &VendorStr, const Twine &OSStr);
223 Triple(const Twine &ArchStr, const Twine &VendorStr, const Twine &OSStr,
226 bool operator==(const Triple &Other) const {
384 bool isOSVersionLT(const Triple &Other) const { in isOSVersionLT()
398 if (getOS() == Triple::MacOSX)
409 return getOS() == Triple::Darwin || getOS() == Triple::MacOSX; in isMacOSX()
418 return getOS() == Triple::IOS || isTvOS(); in isiOS()
[all …]
/external/clang/lib/Driver/
DToolChain.cpp40 const llvm::Triple &Triple, in CalculateRTTIMode() argument
51 if (!Triple.isPS4CPU()) in CalculateRTTIMode()
67 ToolChain::ToolChain(const Driver &D, const llvm::Triple &T, in ToolChain()
69 : D(D), Triple(T), Args(Args), CachedRTTIArg(GetRTTIArgument(Args)), in ToolChain()
70 CachedRTTIMode(CalculateRTTIMode(Args, Triple, CachedRTTIArg)) { in ToolChain()
192 switch (Triple.getArch()) { in getDefaultUniversalArchName()
193 case llvm::Triple::ppc: in getDefaultUniversalArchName()
195 case llvm::Triple::ppc64: in getDefaultUniversalArchName()
197 case llvm::Triple::ppc64le: in getDefaultUniversalArchName()
200 return Triple.getArchName(); in getDefaultUniversalArchName()
[all …]
DToolChains.cpp44 MachO::MachO(const Driver &D, const llvm::Triple &Triple, const ArgList &Args) in MachO() argument
45 : ToolChain(D, Triple, Args) { in MachO()
53 Darwin::Darwin(const Driver &D, const llvm::Triple &Triple, const ArgList &Args) in Darwin() argument
54 : MachO(D, Triple, Args), TargetInitialized(false) {} in Darwin()
147 case llvm::Triple::aarch64: in getMachOArchName()
150 case llvm::Triple::thumb: in getMachOArchName()
151 case llvm::Triple::arm: in getMachOArchName()
170 llvm::Triple Triple(ComputeLLVMTriple(Args, InputType)); in ComputeEffectiveClangTriple() local
172 return Triple.getTriple(); in ComputeEffectiveClangTriple()
177 llvm::Triple Triple(ComputeLLVMTriple(Args, InputType)); in ComputeEffectiveClangTriple() local
[all …]
DTools.cpp56 const llvm::Triple &Triple) { in getSparcAsmModeForCPU() argument
57 if (Triple.getArch() == llvm::Triple::sparcv9) { in getSparcAsmModeForCPU()
493 static bool isSignedCharDefault(const llvm::Triple &Triple) { in isSignedCharDefault() argument
494 switch (Triple.getArch()) { in isSignedCharDefault()
498 case llvm::Triple::aarch64: in isSignedCharDefault()
499 case llvm::Triple::aarch64_be: in isSignedCharDefault()
500 case llvm::Triple::arm: in isSignedCharDefault()
501 case llvm::Triple::armeb: in isSignedCharDefault()
502 case llvm::Triple::thumb: in isSignedCharDefault()
503 case llvm::Triple::thumbeb: in isSignedCharDefault()
[all …]
DToolChains.h80 llvm::Triple GCCTriple;
104 void init(const llvm::Triple &TargetTriple, const llvm::opt::ArgList &Args,
111 const llvm::Triple &getTriple() const { return GCCTriple; } in getTriple()
137 CollectLibDirsAndTriples(const llvm::Triple &TargetTriple,
138 const llvm::Triple &BiarchTriple,
144 void ScanLibDirForGCCTriple(const llvm::Triple &TargetArch,
150 void scanLibDirForGCCTripleSolaris(const llvm::Triple &TargetArch,
173 void init(const llvm::Triple &TargetTriple, const llvm::opt::ArgList &Args);
197 Generic_GCC(const Driver &D, const llvm::Triple &Triple,
249 MachO(const Driver &D, const llvm::Triple &Triple,
[all …]
DMSVCToolChain.cpp47 MSVCToolChain::MSVCToolChain(const Driver &D, const llvm::Triple& Triple, in MSVCToolChain() argument
49 : ToolChain(D, Triple, Args) { in MSVCToolChain()
74 return getArch() == llvm::Triple::x86_64; in IsUnwindTablesDefault()
78 return getArch() == llvm::Triple::x86_64; in isPICDefault()
86 return getArch() == llvm::Triple::x86_64; in isPICDefaultForced()
210 static StringRef getWindowsSDKArch(llvm::Triple::ArchType Arch) { in getWindowsSDKArch()
212 case llvm::Triple::x86: in getWindowsSDKArch()
214 case llvm::Triple::x86_64: in getWindowsSDKArch()
216 case llvm::Triple::arm: in getWindowsSDKArch()
312 case llvm::Triple::x86: in getWindowsSDKLibraryPath()
[all …]
/external/clang/lib/Frontend/
DInitHeaderSearch.cpp77 const llvm::Triple &triple);
86 void AddDefaultCIncludePaths(const llvm::Triple &triple,
91 void AddDefaultCPlusPlusIncludePaths(const llvm::Triple &triple,
97 const llvm::Triple &triple,
179 const llvm::Triple &triple) { in AddGnuCPlusPlusIncludePaths()
184 llvm::Triple::ArchType arch = triple.getArch(); in AddGnuCPlusPlusIncludePaths()
185 bool is64bit = arch == llvm::Triple::ppc64 || arch == llvm::Triple::x86_64; in AddGnuCPlusPlusIncludePaths()
206 void InitHeaderSearch::AddDefaultCIncludePaths(const llvm::Triple &triple, in AddDefaultCIncludePaths()
208 llvm::Triple::OSType os = triple.getOS(); in AddDefaultCIncludePaths()
212 case llvm::Triple::CloudABI: in AddDefaultCIncludePaths()
[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()
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()
155 X86MCAsmInfoGNUCOFF::X86MCAsmInfoGNUCOFF(const Triple &Triple) { in X86MCAsmInfoGNUCOFF() argument
[all …]
DX86MCAsmInfo.h23 class Triple; variable
29 explicit X86MCAsmInfoDarwin(const Triple &Triple);
33 explicit X86_64MCAsmInfoDarwin(const Triple &Triple);
43 explicit X86ELFMCAsmInfo(const Triple &Triple);
50 explicit X86MCAsmInfoMicrosoft(const Triple &Triple);
57 explicit X86MCAsmInfoGNUCOFF(const Triple &Triple);
DX86MCTargetDesc.cpp45 std::string X86_MC::ParseX86Triple(const Triple &TT) { in ParseX86Triple()
47 if (TT.getArch() == Triple::x86_64) in ParseX86Triple()
49 else if (TT.getEnvironment() != Triple::CODE16) in ParseX86Triple()
57 unsigned X86_MC::getDwarfRegFlavour(const Triple &TT, bool isEH) { in getDwarfRegFlavour()
58 if (TT.getArch() == Triple::x86_64) in getDwarfRegFlavour()
77 MCSubtargetInfo *X86_MC::createX86MCSubtargetInfo(const Triple &TT, in createX86MCSubtargetInfo()
100 static MCRegisterInfo *createX86MCRegisterInfo(const Triple &TT) { in createX86MCRegisterInfo()
101 unsigned RA = (TT.getArch() == Triple::x86_64) in createX86MCRegisterInfo()
113 const Triple &TheTriple) { in createX86MCAsmInfo()
114 bool is64Bit = TheTriple.getArch() == Triple::x86_64; in createX86MCAsmInfo()
[all …]
/external/llvm/lib/MC/
DMCObjectFileInfo.cpp23 static bool useCompactUnwind(const Triple &T) { in useCompactUnwind()
29 if (T.getArch() == Triple::aarch64) in useCompactUnwind()
42 (T.getArch() == Triple::x86_64 || T.getArch() == Triple::x86)) in useCompactUnwind()
48 void MCObjectFileInfo::initMachOMCObjectFileInfo(Triple T) { in initMachOMCObjectFileInfo()
58 if (T.isOSDarwin() && T.getArch() == Triple::aarch64) in initMachOMCObjectFileInfo()
134 Triple::ArchType ArchTy = T.getArch(); in initMachOMCObjectFileInfo()
136 if (ArchTy == Triple::ppc || ArchTy == Triple::ppc64) { in initMachOMCObjectFileInfo()
200 if (T.getArch() == Triple::x86_64 || T.getArch() == Triple::x86) in initMachOMCObjectFileInfo()
202 else if (T.getArch() == Triple::aarch64) in initMachOMCObjectFileInfo()
204 else if (T.getArch() == Triple::arm || T.getArch() == Triple::thumb) in initMachOMCObjectFileInfo()
[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/llvm/lib/Target/ARM/MCTargetDesc/
DARMMCAsmInfo.cpp22 ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin(const Triple &TheTriple) { in ARMMCAsmInfoDarwin()
23 if ((TheTriple.getArch() == Triple::armeb) || in ARMMCAsmInfoDarwin()
24 (TheTriple.getArch() == Triple::thumbeb)) in ARMMCAsmInfoDarwin()
45 ARMELFMCAsmInfo::ARMELFMCAsmInfo(const Triple &TheTriple) { 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()
DARMMCTargetDesc.h35 class Triple; variable
43 std::string ParseARMTriple(const Triple &TT, StringRef CPU);
47 MCSubtargetInfo *createARMMCSubtargetInfo(const Triple &TT, StringRef CPU,
68 const Triple &TT, StringRef CPU,
72 const Triple &TT, StringRef CPU);
75 const Triple &TT, StringRef CPU);
79 const Triple &TT, StringRef CPU);
83 const Triple &TT, StringRef CPU);
/external/llvm/include/llvm/Support/
DTargetRegistry.h72 MCRelocationInfo *createMCRelocationInfo(const Triple &TT, MCContext &Ctx);
74 MCSymbolizer *createMCSymbolizer(const Triple &TT, LLVMOpInfoCallback GetOpInfo,
91 typedef bool (*ArchMatchFnTy)(Triple::ArchType Arch);
94 const Triple &TT);
95 typedef MCCodeGenInfo *(*MCCodeGenInfoCtorFnTy)(const Triple &TT,
101 typedef MCRegisterInfo *(*MCRegInfoCtorFnTy)(const Triple &TT);
102 typedef MCSubtargetInfo *(*MCSubtargetInfoCtorFnTy)(const Triple &TT,
106 const Target &T, const Triple &TT, StringRef CPU, StringRef Features,
116 const Triple &TT, StringRef CPU);
123 typedef MCInstPrinter *(*MCInstPrinterCtorTy)(const Triple &T,
[all …]
/external/llvm/lib/Analysis/
DTargetLibraryInfo.cpp33 static bool hasSinCosPiStret(const Triple &T) { in hasSinCosPiStret()
39 if (T.getArch() == Triple::x86) in hasSinCosPiStret()
54 static void initialize(TargetLibraryInfoImpl &TLI, const Triple &T, in initialize()
64 if (T.getArch() == Triple::r600 || in initialize()
65 T.getArch() == Triple::amdgcn) { in initialize()
73 if (T.getArch() == Triple::r600 || in initialize()
74 T.getArch() == Triple::amdgcn || in initialize()
75 T.getArch() == Triple::wasm32 || in initialize()
76 T.getArch() == Triple::wasm64) { in initialize()
104 if (T.isMacOSX() && T.getArch() == Triple::x86 && in initialize()
[all …]
/external/llvm/lib/Target/PowerPC/
DPPCTargetMachine.cpp80 static std::string getDataLayoutString(const Triple &T) { in getDataLayoutString()
81 bool is64Bit = T.getArch() == Triple::ppc64 || T.getArch() == Triple::ppc64le; in getDataLayoutString()
85 if (T.getArch() == Triple::ppc64le) in getDataLayoutString()
94 if (!is64Bit || T.getOS() == Triple::Lv2) in getDataLayoutString()
114 const Triple &TT) { in computeFSAdditions()
118 if (TT.getArch() == Triple::ppc64 || TT.getArch() == Triple::ppc64le) { in computeFSAdditions()
142 static std::unique_ptr<TargetLoweringObjectFile> createTLOF(const Triple &TT) { in createTLOF()
151 static PPCTargetMachine::PPCABI computeTargetABI(const Triple &TT, in computeTargetABI()
163 case Triple::ppc64le: in computeTargetABI()
165 case Triple::ppc64: in computeTargetABI()
[all …]
/external/llvm/unittests/ExecutionEngine/MCJIT/
DMCJITTestAPICommon.h52 HostTriple = Triple::normalize(HostTriple); in MCJITTestAPICommon()
57 Triple Host(HostTriple); in ArchSupportsMCJIT()
79 Triple Host(HostTriple); in OSSupportsMCJIT()
93 SmallVector<Triple::ArchType, 4> SupportedArchs;
94 SmallVector<Triple::ArchType, 1> HasSubArchs;
96 SmallVector<Triple::OSType, 4> UnsupportedOSs;
97 SmallVector<Triple::EnvironmentType, 1> UnsupportedEnvironments;
/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()
67 Triple::ArchType Type = Triple::getArchTypeForLLVMName(MArch); in selectTarget()
68 if (Type != Triple::UnknownArch) in selectTarget()
90 if (TheTriple.getArch() == Triple::arm && in selectTarget()
/external/llvm/lib/Target/ARM/
DARMTargetMachine.cpp58 static std::unique_ptr<TargetLoweringObjectFile> createTLOF(const Triple &TT) { in createTLOF()
67 computeTargetABI(const Triple &TT, StringRef CPU, in computeTargetABI()
84 if (TT.getEnvironment() == llvm::Triple::EABI || in computeTargetABI()
85 (TT.getOS() == llvm::Triple::UnknownOS && TT.isOSBinFormatMachO()) || in computeTargetABI()
99 case llvm::Triple::Android: in computeTargetABI()
100 case llvm::Triple::GNUEABI: in computeTargetABI()
101 case llvm::Triple::GNUEABIHF: in computeTargetABI()
102 case llvm::Triple::EABIHF: in computeTargetABI()
103 case llvm::Triple::EABI: in computeTargetABI()
106 case llvm::Triple::GNU: in computeTargetABI()
[all …]
DARMSubtarget.h244 Triple TargetTriple;
261 ARMSubtarget(const Triple &TT, const std::string &CPU, const std::string &FS,
374 const Triple &getTargetTriple() const { return TargetTriple; } in getTargetTriple()
396 return (TargetTriple.getEnvironment() == Triple::EABI || in isTargetAEABI()
397 TargetTriple.getEnvironment() == Triple::EABIHF) && in isTargetAEABI()
401 return (TargetTriple.getEnvironment() == Triple::GNUEABI || in isTargetGNUAEABI()
402 TargetTriple.getEnvironment() == Triple::GNUEABIHF) && in isTargetGNUAEABI()
409 return (TargetTriple.getEnvironment() == Triple::EABI || in isTargetEHABICompatible()
410 TargetTriple.getEnvironment() == Triple::GNUEABI || in isTargetEHABICompatible()
411 TargetTriple.getEnvironment() == Triple::EABIHF || in isTargetEHABICompatible()
[all …]
/external/llvm/include/llvm/Object/
DRelocVisitor.h73 case Triple::x86_64: in visitELF()
89 case Triple::aarch64: in visitELF()
99 case Triple::mips64el: in visitELF()
100 case Triple::mips64: in visitELF()
110 case Triple::ppc64le: in visitELF()
111 case Triple::ppc64: in visitELF()
121 case Triple::systemz: in visitELF()
131 case Triple::sparcv9: in visitELF()
149 case Triple::x86: in visitELF()
161 case Triple::ppc: in visitELF()
[all …]

12345678910>>...15