Lines Matching defs:Arch
70 llvm::Triple::ArchType Arch;
73 // If we aren't looking for a specific arch, infer the default architecture
74 // based on -arch and -m32/-m64 command line options.
76 // The gcc driver behavior with multiple -arch flags wasn't consistent for
77 // things which rely on a default architecture. We just use the last -arch
79 Arch = llvm::Triple::getArchTypeForDarwinArchName(A->getValue(Args));
83 if (Arch == llvm::Triple::UnknownArch)
84 Arch = getTriple().getArch();
86 // Otherwise default to the arch of the host.
87 Arch = getTriple().getArch();
95 if (Arch == llvm::Triple::x86_64)
96 Arch = llvm::Triple::x86;
97 if (Arch == llvm::Triple::ppc64)
98 Arch = llvm::Triple::ppc;
100 if (Arch == llvm::Triple::x86)
101 Arch = llvm::Triple::x86_64;
102 if (Arch == llvm::Triple::ppc)
103 Arch = llvm::Triple::ppc64;
107 Arch = llvm::Triple::getArchTypeForDarwinArchName(ArchName);
109 assert(Arch != llvm::Triple::UnknownArch && "Unexpected arch!");
110 ToolChain *&TC = ToolChains[Arch];
113 TCTriple.setArch(Arch);
115 // If we recognized the arch, match it to the toolchains we support.
116 if (Arch == llvm::Triple::x86 || Arch == llvm::Triple::x86_64 ||
117 Arch == llvm::Triple::arm || Arch == llvm::Triple::thumb) {
191 "Unexpected arch name on platform without driver driver support.");
194 std::string Arch = getArchName();
195 ArchName = Arch.c_str();
250 "Unexpected arch name on platform without driver driver support.");
252 std::string Arch = getArchName();
253 ArchName = Arch.c_str();
297 "Unexpected arch name on platform without driver driver support.");
342 "Unexpected arch name on platform without driver driver support.");
345 std::string Arch = getArchName();
346 ArchName = Arch.c_str();
401 "Unexpected arch name on platform without driver driver support.");
404 std::string Arch = getArchName();
405 ArchName = Arch.c_str();
423 if (Arch == ArchName) {
466 "Unexpected arch name on platform without driver driver support.");
468 std::string Arch = getArchName();
469 ArchName = Arch.c_str();
513 "Unexpected arch name on platform without driver driver support.");
559 "Unexpected arch name on platform without driver driver support.");
562 std::string Arch = getArchName();
563 ArchName = Arch.c_str();
626 "Unexpected arch name on platform without driver driver support.");
629 std::string Arch = getArchName();
630 ArchName = Arch.c_str();