Home
last modified time | relevance | path

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

12345678910>>...76

/external/llvm-project/clang/lib/Basic/
DTargets.cpp106 TargetInfo *AllocateTarget(const llvm::Triple &Triple, in AllocateTarget() argument
108 llvm::Triple::OSType os = Triple.getOS(); in AllocateTarget()
110 switch (Triple.getArch()) { in AllocateTarget()
114 case llvm::Triple::arc: in AllocateTarget()
115 return new ARCTargetInfo(Triple, Opts); in AllocateTarget()
117 case llvm::Triple::xcore: in AllocateTarget()
118 return new XCoreTargetInfo(Triple, Opts); in AllocateTarget()
120 case llvm::Triple::hexagon: in AllocateTarget()
121 if (os == llvm::Triple::Linux && in AllocateTarget()
122 Triple.getEnvironment() == llvm::Triple::Musl) in AllocateTarget()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DTriple.cpp19 StringRef Triple::getArchTypeName(ArchType Kind) { in getArchTypeName()
79 StringRef Triple::getArchTypePrefix(ArchType Kind) { in getArchTypePrefix()
153 StringRef Triple::getVendorTypeName(VendorType Kind) { in getVendorTypeName()
178 StringRef Triple::getOSTypeName(OSType Kind) { in getOSTypeName()
222 StringRef Triple::getEnvironmentTypeName(EnvironmentType Kind) { in getEnvironmentTypeName()
249 static Triple::ArchType parseBPFArch(StringRef ArchName) { in parseBPFArch()
252 return Triple::bpfel; in parseBPFArch()
254 return Triple::bpfeb; in parseBPFArch()
256 return Triple::bpfeb; in parseBPFArch()
258 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/llvm-project/llvm/lib/Support/
DTriple.cpp23 StringRef Triple::getArchTypeName(ArchType Kind) { in getArchTypeName()
84 StringRef Triple::getArchTypePrefix(ArchType Kind) { in getArchTypePrefix()
159 StringRef Triple::getVendorTypeName(VendorType Kind) { in getVendorTypeName()
182 StringRef Triple::getOSTypeName(OSType Kind) { in getOSTypeName()
226 StringRef Triple::getEnvironmentTypeName(EnvironmentType Kind) { in getEnvironmentTypeName()
253 static Triple::ArchType parseBPFArch(StringRef ArchName) { in parseBPFArch()
256 return Triple::bpfel; in parseBPFArch()
258 return Triple::bpfeb; in parseBPFArch()
260 return Triple::bpfeb; in parseBPFArch()
262 return Triple::bpfel; in parseBPFArch()
[all …]
/external/llvm/lib/Support/
DTriple.cpp20 const char *Triple::getArchTypeName(ArchType Kind) { in getArchTypeName()
74 const char *Triple::getArchTypePrefix(ArchType Kind) { in getArchTypePrefix()
140 const char *Triple::getVendorTypeName(VendorType Kind) { in getVendorTypeName()
163 const char *Triple::getOSTypeName(OSType Kind) { in getOSTypeName()
200 const char *Triple::getEnvironmentTypeName(EnvironmentType Kind) { in getEnvironmentTypeName()
224 static Triple::ArchType parseBPFArch(StringRef ArchName) { in parseBPFArch()
227 return Triple::bpfel; in parseBPFArch()
229 return Triple::bpfeb; in parseBPFArch()
231 return Triple::bpfeb; in parseBPFArch()
233 return Triple::bpfel; in parseBPFArch()
[all …]
/external/llvm-project/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/llvm-project/clang/lib/Basic/Targets/
DOSTargets.h24 virtual void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple,
28 OSTargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts) in OSTargetInfo() argument
29 : TgtInfo(Triple, Opts) {} in OSTargetInfo()
42 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
54 CloudABITargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts) in CloudABITargetInfo() argument
55 : OSTargetInfo<Target>(Triple, Opts) {} in CloudABITargetInfo()
62 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
70 AnanasTargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts) in AnanasTargetInfo() argument
71 : OSTargetInfo<Target>(Triple, Opts) {} in AnanasTargetInfo()
75 const llvm::Triple &Triple, StringRef &PlatformName,
[all …]
DX86.h147 X86TargetInfo(const llvm::Triple &Triple, const TargetOptions &) in X86TargetInfo() argument
148 : TargetInfo(Triple) { in X86TargetInfo()
294 if (getTriple().getArch() == llvm::Triple::x86_64 && SSELevel >= AVX512F) in getABI()
296 if (getTriple().getArch() == llvm::Triple::x86_64 && SSELevel >= AVX) in getABI()
298 if (getTriple().getArch() == llvm::Triple::x86 && in getABI()
309 bool Only64Bit = getTriple().getArch() != llvm::Triple::x86; in isValidCPUName()
327 bool Only64Bit = getTriple().getArch() != llvm::Triple::x86; in setCPU()
382 X86_32TargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts) in X86_32TargetInfo() argument
383 : X86TargetInfo(Triple, Opts) { in X86_32TargetInfo()
388 resetDataLayout(Triple.isOSBinFormatMachO() ? in X86_32TargetInfo()
[all …]
/external/llvm-project/llvm/include/llvm/ADT/
DTriple.h45 class Triple {
264 Triple() in Triple() function
268 explicit Triple(const Twine &Str);
269 Triple(const Twine &ArchStr, const Twine &VendorStr, const Twine &OSStr);
270 Triple(const Twine &ArchStr, const Twine &VendorStr, const Twine &OSStr,
273 bool operator==(const Triple &Other) const {
280 bool operator!=(const Triple &Other) const {
435 bool isOSVersionLT(const Triple &Other) const { in isOSVersionLT()
450 return getOS() == Triple::Darwin || getOS() == Triple::MacOSX; in isMacOSX()
459 return getOS() == Triple::IOS || isTvOS(); in isiOS()
[all …]
/external/llvm-project/clang/lib/Driver/ToolChains/
DLinux.cpp41 const llvm::Triple &TargetTriple, in getMultiarchTriple()
43 llvm::Triple::EnvironmentType TargetEnvironment = in getMultiarchTriple()
46 bool IsMipsR6 = TargetTriple.getSubArch() == llvm::Triple::MipsSubArch_r6; in getMultiarchTriple()
47 bool IsMipsN32Abi = TargetTriple.getEnvironment() == llvm::Triple::GNUABIN32; in getMultiarchTriple()
59 case llvm::Triple::arm: in getMultiarchTriple()
60 case llvm::Triple::thumb: in getMultiarchTriple()
63 } else if (TargetEnvironment == llvm::Triple::GNUEABIHF) { in getMultiarchTriple()
71 case llvm::Triple::armeb: in getMultiarchTriple()
72 case llvm::Triple::thumbeb: in getMultiarchTriple()
73 if (TargetEnvironment == llvm::Triple::GNUEABIHF) { in getMultiarchTriple()
[all …]
DNetBSD.cpp38 case llvm::Triple::x86: in ConstructJob()
41 case llvm::Triple::arm: in ConstructJob()
42 case llvm::Triple::armeb: in ConstructJob()
43 case llvm::Triple::thumb: in ConstructJob()
44 case llvm::Triple::thumbeb: { in ConstructJob()
53 case llvm::Triple::mips: in ConstructJob()
54 case llvm::Triple::mipsel: in ConstructJob()
55 case llvm::Triple::mips64: in ConstructJob()
56 case llvm::Triple::mips64el: { in ConstructJob()
76 case llvm::Triple::sparc: in ConstructJob()
[all …]
DBareMetal.cpp30 BareMetal::BareMetal(const Driver &D, const llvm::Triple &Triple, in BareMetal() argument
32 : ToolChain(D, Triple, Args) { in BareMetal()
44 static bool isARMBareMetal(const llvm::Triple &Triple) { in isARMBareMetal() argument
45 if (Triple.getArch() != llvm::Triple::arm && in isARMBareMetal()
46 Triple.getArch() != llvm::Triple::thumb) in isARMBareMetal()
49 if (Triple.getVendor() != llvm::Triple::UnknownVendor) in isARMBareMetal()
52 if (Triple.getOS() != llvm::Triple::UnknownOS) in isARMBareMetal()
55 if (Triple.getEnvironment() != llvm::Triple::EABI && in isARMBareMetal()
56 Triple.getEnvironment() != llvm::Triple::EABIHF) in isARMBareMetal()
62 static bool isRISCVBareMetal(const llvm::Triple &Triple) { in isRISCVBareMetal() argument
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DTriple.h43 class Triple {
259 Triple() in Triple() function
263 explicit Triple(const Twine &Str);
264 Triple(const Twine &ArchStr, const Twine &VendorStr, const Twine &OSStr);
265 Triple(const Twine &ArchStr, const Twine &VendorStr, const Twine &OSStr,
268 bool operator==(const Triple &Other) const {
275 bool operator!=(const Triple &Other) const {
430 bool isOSVersionLT(const Triple &Other) const { in isOSVersionLT()
444 if (getOS() == Triple::MacOSX)
455 return getOS() == Triple::Darwin || getOS() == Triple::MacOSX; in isMacOSX()
[all …]
/external/llvm/include/llvm/ADT/
DTriple.h44 class Triple {
230 Triple() : Data(), Arch(), Vendor(), OS(), Environment(), ObjectFormat() {} in Triple() function
232 explicit Triple(const Twine &Str);
233 Triple(const Twine &ArchStr, const Twine &VendorStr, const Twine &OSStr);
234 Triple(const Twine &ArchStr, const Twine &VendorStr, const Twine &OSStr,
237 bool operator==(const Triple &Other) const {
395 bool isOSVersionLT(const Triple &Other) const { in isOSVersionLT()
409 if (getOS() == Triple::MacOSX)
420 return getOS() == Triple::Darwin || getOS() == Triple::MacOSX; in isMacOSX()
429 return getOS() == Triple::IOS || isTvOS(); in isiOS()
[all …]
/external/clang/lib/Basic/
DTargets.cpp69 static TargetInfo *AllocateTarget(const llvm::Triple &Triple,
80 virtual void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple,
83 OSTargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts) in OSTargetInfo() argument
84 : TgtInfo(Triple, Opts) {} in OSTargetInfo()
97 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
109 CloudABITargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts) in CloudABITargetInfo() argument
110 : OSTargetInfo<Target>(Triple, Opts) {} in CloudABITargetInfo()
114 const llvm::Triple &Triple, in getDarwinDefines() argument
143 if (Triple.isMacOSX()) { in getDarwinDefines()
144 Triple.getMacOSXVersion(Maj, Min, Rev); in getDarwinDefines()
[all …]
/external/llvm-project/lldb/source/Plugins/Process/elf-core/
DRegisterUtilities.h78 llvm::Triple::OSType OS;
82 llvm::Triple::ArchType Arch;
95 const llvm::Triple &Triple,
99 {llvm::Triple::FreeBSD, llvm::Triple::UnknownArch, llvm::ELF::NT_FPREGSET},
103 {llvm::Triple::Linux, llvm::Triple::x86, llvm::ELF::NT_PRXFPREG},
104 {llvm::Triple::Linux, llvm::Triple::UnknownArch, llvm::ELF::NT_FPREGSET},
105 {llvm::Triple::NetBSD, llvm::Triple::aarch64, NETBSD::AARCH64::NT_FPREGS},
106 {llvm::Triple::NetBSD, llvm::Triple::x86_64, NETBSD::AMD64::NT_FPREGS},
107 {llvm::Triple::OpenBSD, llvm::Triple::UnknownArch, OPENBSD::NT_FPREGS},
111 {llvm::Triple::Linux, llvm::Triple::aarch64, llvm::ELF::NT_ARM_SVE},
[all …]
/external/llvm-project/clang/lib/Driver/ToolChains/Arch/
DARM.h26 const llvm::Triple &Triple);
27 const std::string getARMArch(llvm::StringRef Arch, const llvm::Triple &Triple);
28 StringRef getARMCPUForMArch(llvm::StringRef Arch, const llvm::Triple &Triple);
30 const llvm::Triple &Triple);
32 const llvm::Triple &Triple);
36 const llvm::Triple &Triple);
50 FloatABI getDefaultFloatABI(const llvm::Triple &Triple);
52 FloatABI getARMFloatABI(const Driver &D, const llvm::Triple &Triple,
56 bool useAAPCSForMachO(const llvm::Triple &T);
60 void getARMTargetFeatures(const Driver &D, const llvm::Triple &Triple,
[all …]
DARM.cpp24 int arm::getARMSubArchVersionNumber(const llvm::Triple &Triple) { in getARMSubArchVersionNumber() argument
25 llvm::StringRef Arch = Triple.getArchName(); in getARMSubArchVersionNumber()
30 bool arm::isARMMProfile(const llvm::Triple &Triple) { in isARMMProfile() argument
31 llvm::StringRef Arch = Triple.getArchName(); in isARMMProfile()
106 const llvm::Triple &Triple, unsigned &ArgFPUID) { in checkARMArchName() argument
109 std::string MArch = arm::getARMArch(ArchName, Triple); in checkARMArchName()
121 const llvm::Triple &Triple, unsigned &ArgFPUID) { in checkARMCPUName() argument
124 std::string CPU = arm::getARMTargetCPU(CPUName, ArchName, Triple); in checkARMCPUName()
126 arm::getLLVMArchKindForARM(CPU, ArchName, Triple); in checkARMCPUName()
133 bool arm::useAAPCSForMachO(const llvm::Triple &T) { in useAAPCSForMachO()
[all …]
DMips.h35 const llvm::Triple &Triple, StringRef &CPUName,
37 void getMIPSTargetFeatures(const Driver &D, const llvm::Triple &Triple,
42 const llvm::Triple &Triple);
44 const llvm::Triple &Triple);
47 bool isNaN2008(const llvm::opt::ArgList &Args, const llvm::Triple &Triple);
48 bool isFP64ADefault(const llvm::Triple &Triple, StringRef CPUName);
49 bool isFPXXDefault(const llvm::Triple &Triple, StringRef CPUName,
51 bool shouldUseFPXX(const llvm::opt::ArgList &Args, const llvm::Triple &Triple,
/external/llvm-project/lldb/source/Utility/
DArchSpec.cpp33 llvm::Triple::ArchType machine;
42 {eByteOrderLittle, 4, 2, 4, llvm::Triple::arm, ArchSpec::eCore_arm_generic,
44 {eByteOrderLittle, 4, 2, 4, llvm::Triple::arm, ArchSpec::eCore_arm_armv4,
46 {eByteOrderLittle, 4, 2, 4, llvm::Triple::arm, ArchSpec::eCore_arm_armv4t,
48 {eByteOrderLittle, 4, 2, 4, llvm::Triple::arm, ArchSpec::eCore_arm_armv5,
50 {eByteOrderLittle, 4, 2, 4, llvm::Triple::arm, ArchSpec::eCore_arm_armv5e,
52 {eByteOrderLittle, 4, 2, 4, llvm::Triple::arm, ArchSpec::eCore_arm_armv5t,
54 {eByteOrderLittle, 4, 2, 4, llvm::Triple::arm, ArchSpec::eCore_arm_armv6,
56 {eByteOrderLittle, 4, 2, 4, llvm::Triple::arm, ArchSpec::eCore_arm_armv6m,
58 {eByteOrderLittle, 4, 2, 4, llvm::Triple::arm, ArchSpec::eCore_arm_armv7,
[all …]
/external/llvm-project/llvm/unittests/Object/
DELFObjectFileTest.cpp66 Triple::ArchType Arch) { in checkFormatAndArch()
91 checkFormatAndArch(D, Formats[I++], Triple::UnknownArch); in TEST()
96 checkFormatAndArch(D, Formats[I++], Triple::UnknownArch); in TEST()
104 checkFormatAndArch(D, Formats[I++], Triple::ve); in TEST()
112 checkFormatAndArch(D, Formats[I++], Triple::x86_64); in TEST()
120 checkFormatAndArch(D, Formats[I++], Triple::x86); in TEST()
126 std::array<Triple::ArchType, 4> Archs = {Triple::mipsel, Triple::mips, in TEST()
127 Triple::mips64el, Triple::mips64}; in TEST()
140 checkFormatAndArch(D, Formats[I++], Triple::UnknownArch); in TEST()
148 checkFormatAndArch(D, Formats[I++], Triple::x86); in TEST()
[all …]
/external/clang/lib/Driver/
DToolChain.cpp41 const llvm::Triple &Triple, in CalculateRTTIMode() argument
52 if (!Triple.isPS4CPU()) in CalculateRTTIMode()
68 ToolChain::ToolChain(const Driver &D, const llvm::Triple &T, in ToolChain()
70 : D(D), Triple(T), Args(Args), CachedRTTIArg(GetRTTIArgument(Args)), in ToolChain()
71 CachedRTTIMode(CalculateRTTIMode(Args, Triple, CachedRTTIArg)) { in ToolChain()
193 switch (Triple.getArch()) { in getDefaultUniversalArchName()
194 case llvm::Triple::ppc: in getDefaultUniversalArchName()
196 case llvm::Triple::ppc64: in getDefaultUniversalArchName()
198 case llvm::Triple::ppc64le: in getDefaultUniversalArchName()
201 return Triple.getArchName(); in getDefaultUniversalArchName()
[all …]
DToolChains.cpp45 MachO::MachO(const Driver &D, const llvm::Triple &Triple, const ArgList &Args) in MachO() argument
46 : ToolChain(D, Triple, Args) { in MachO()
54 Darwin::Darwin(const Driver &D, const llvm::Triple &Triple, const ArgList &Args) in Darwin() argument
55 : MachO(D, Triple, Args), TargetInitialized(false) {} in Darwin()
158 case llvm::Triple::aarch64: in getMachOArchName()
161 case llvm::Triple::thumb: in getMachOArchName()
162 case llvm::Triple::arm: in getMachOArchName()
181 llvm::Triple Triple(ComputeLLVMTriple(Args, InputType)); in ComputeEffectiveClangTriple() local
183 return Triple.getTriple(); in ComputeEffectiveClangTriple()
188 llvm::Triple Triple(ComputeLLVMTriple(Args, InputType)); in ComputeEffectiveClangTriple() local
[all …]
/external/llvm-project/llvm/lib/Target/X86/MCTargetDesc/
DX86MCAsmInfo.cpp39 X86MCAsmInfoDarwin::X86MCAsmInfoDarwin(const Triple &T) { in X86MCAsmInfoDarwin()
40 bool is64Bit = T.getArch() == Triple::x86_64; in X86MCAsmInfoDarwin()
76 X86_64MCAsmInfoDarwin::X86_64MCAsmInfoDarwin(const Triple &Triple) in X86_64MCAsmInfoDarwin() argument
77 : X86MCAsmInfoDarwin(Triple) { in X86_64MCAsmInfoDarwin()
82 X86ELFMCAsmInfo::X86ELFMCAsmInfo(const Triple &T) { in X86ELFMCAsmInfo()
83 bool is64Bit = T.getArch() == Triple::x86_64; in X86ELFMCAsmInfo()
84 bool isX32 = T.getEnvironment() == Triple::GNUX32; in X86ELFMCAsmInfo()
118 X86MCAsmInfoMicrosoft::X86MCAsmInfoMicrosoft(const Triple &Triple) { in X86MCAsmInfoMicrosoft() argument
119 if (Triple.getArch() == Triple::x86_64) { in X86MCAsmInfoMicrosoft()
142 X86MCAsmInfoMicrosoftMASM::X86MCAsmInfoMicrosoftMASM(const Triple &Triple) in X86MCAsmInfoMicrosoftMASM() argument
[all …]
/external/llvm-project/clang/lib/Frontend/
DInitHeaderSearch.cpp76 const llvm::Triple &triple);
85 void AddDefaultCIncludePaths(const llvm::Triple &triple,
91 const llvm::Triple &triple,
97 const llvm::Triple &triple,
186 const llvm::Triple &triple) { in AddGnuCPlusPlusIncludePaths()
191 llvm::Triple::ArchType arch = triple.getArch(); in AddGnuCPlusPlusIncludePaths()
192 bool is64bit = arch == llvm::Triple::ppc64 || arch == llvm::Triple::x86_64; in AddGnuCPlusPlusIncludePaths()
214 void InitHeaderSearch::AddDefaultCIncludePaths(const llvm::Triple &triple, in AddDefaultCIncludePaths()
216 llvm::Triple::OSType os = triple.getOS(); in AddDefaultCIncludePaths()
224 case llvm::Triple::CloudABI: in AddDefaultCIncludePaths()
[all …]

12345678910>>...76