Lines Matching defs:arch
205 const ArchSpec &arch, ModuleSpec &module_spec) {
212 return module_specs.FindMatchingModuleSpec(ModuleSpec(module_file_spec, arch),
251 ArchSpec arch(GetSystemArchitecture());
252 if (arch.IsValid()) {
253 if (!arch.GetTriple().str().empty()) {
255 arch.DumpTriple(strm.AsRawOstream());
758 // No valid architecture was specified or the exact arch wasn't found.
765 for (const ArchSpec &arch : GetSupportedArchitectures(process_host_arch)) {
766 resolved_module_spec.GetArchitecture() = arch;
776 arch_names << LS << arch.GetArchitectureName();
1082 for(auto arch : archs) {
1084 triple.setArch(arch);
1093 bool Platform::IsCompatibleArchitecture(const ArchSpec &arch,
1098 if (arch.IsValid()) {
1102 if (arch.IsMatch(platform_arch, match)) {
1226 MmapArgList Platform::GetMmapArgumentList(const ArchSpec &arch, addr_t addr,
1489 for (const ArchSpec &arch : GetSupportedArchitectures(process_host_arch)) {
1490 arch_module_spec.GetArchitecture() = arch;
1885 ArchSpec arch = Target::GetDefaultArchitecture();
1888 arch.IsValid() ? arch.GetTriple().getTriple().c_str() : "";
1943 ArchSpec arch = target.GetArchitecture();
1944 assert(arch.IsValid());
1948 switch (arch.GetMachine()) {
2050 if (arch.GetFlags() & ArchSpec::eRISCV_rvc) {
2103 PlatformSP PlatformList::GetOrCreate(const ArchSpec &arch,
2108 // First try exact arch matches across all platforms already created
2111 arch, process_host_arch, ArchSpec::ExactMatch, platform_arch_ptr))
2115 // Next try compatible arch matches across all platforms already created
2117 if (platform_sp->IsCompatibleArchitecture(arch, process_host_arch,
2124 // First try exact arch matches across all platform plug-ins
2129 PlatformSP platform_sp = create_callback(false, &arch);
2132 arch, process_host_arch, ArchSpec::ExactMatch, platform_arch_ptr)) {
2137 // Next try compatible arch matches across all platform plug-ins
2141 PlatformSP platform_sp = create_callback(false, &arch);
2143 arch, process_host_arch, ArchSpec::CompatibleMatch,
2154 PlatformSP PlatformList::GetOrCreate(const ArchSpec &arch,
2158 if (arch.IsValid())
2159 return GetOrCreate(arch, process_host_arch, platform_arch_ptr, error);
2176 for (const ArchSpec &arch : archs) {
2178 arch, process_host_arch, ArchSpec::CompatibleMatch, nullptr))
2185 for (const ArchSpec &arch : archs) {
2187 arch, process_host_arch, ArchSpec::CompatibleMatch, nullptr))
2193 for (const ArchSpec &arch : archs) {
2194 if (PlatformSP platform = GetOrCreate(arch, process_host_arch, nullptr))
2230 ArchSpec arch;
2231 PlatformSP platform_sp = create_callback(true, &arch);