Lines Matching refs:Arch
28 enum class Arch : size_t { enum
37 std::string to_string(const Arch& arch);
38 std::optional<Arch> arch_from_string(const std::string& name);
49 ArchMap(std::initializer_list<std::pair<Arch, T>> initializer) { in ArchMap() argument
55 T& operator[](Arch arch) {
59 const T& operator[](Arch arch) const {
73 return ArchMapIterator<T>(*this, Arch::arm); in begin()
77 return ArchMapIterator<T>(*this, Arch(size_t(Arch::x86_64) + 1)); in end()
81 std::array<T, size_t(Arch::x86_64) + 1> data_ = {};
87 Arch arch_ = Arch::arm;
92 ArchMapIterator(const ArchMap<T>& map, Arch arch) : map_(map), arch_(arch) { in ArchMapIterator()
104 arch_ = Arch(size_t(arch_) + 1);
114 std::pair<const Arch&, const T&> operator*() const {
118 std::pair<const Arch&, const T&> operator->() const {
123 static const std::set<Arch> supported_archs = {
124 Arch::arm,
125 Arch::arm64,
126 Arch::mips,
127 Arch::mips64,
128 Arch::x86,
129 Arch::x86_64,
133 { Arch::arm, "arm-linux-androideabi" },
134 { Arch::arm64, "aarch64-linux-android" },
135 { Arch::mips, "mipsel-linux-android" },
136 { Arch::mips64, "mips64el-linux-android" },
137 { Arch::x86, "i686-linux-android" },
138 { Arch::x86_64, "x86_64-linux-android" },
144 { Arch::arm, 9 },
145 { Arch::arm64, 21 },
146 { Arch::mips, 9 },
147 { Arch::mips64, 21 },
148 { Arch::x86, 9 },
149 { Arch::x86_64, 21 },