Lines Matching refs:Arch
26 enum class Arch : size_t {
35 std::string to_string(const Arch& arch);
36 Arch arch_from_string(const std::string& name);
47 ArchMap(std::initializer_list<std::pair<Arch, T>> initializer) {
53 T& operator[](Arch arch) {
54 return data_[size_t(arch)];
57 const T& operator[](Arch arch) const {
58 return data_[size_t(arch)];
71 return ArchMapIterator<T>(*this, Arch::arm);
75 return ArchMapIterator<T>(*this, Arch(size_t(Arch::x86_64) + 1));
79 std::array<T, size_t(Arch::x86_64) + 1> data_ = {};
85 Arch arch_ = Arch::arm;
90 ArchMapIterator(const ArchMap<T>& map, Arch arch) : map_(map), arch_(arch) {
102 arch_ = Arch(size_t(arch_) + 1);
112 std::pair<const Arch&, const T&> operator*() const {
116 std::pair<const Arch&, const T&> operator->() const {
121 static const std::set<Arch> supported_archs = {
122 Arch::arm,
123 Arch::arm64,
124 Arch::mips,
125 Arch::mips64,
126 Arch::x86,
127 Arch::x86_64,
131 { Arch::arm, "arm-linux-androideabi" },
132 { Arch::arm64, "aarch64-linux-android" },
133 { Arch::mips, "mipsel-linux-android" },
134 { Arch::mips64, "mips64el-linux-android" },
135 { Arch::x86, "i686-linux-android" },
136 { Arch::x86_64, "x86_64-linux-android" },
142 { Arch::arm, 9 },
143 { Arch::arm64, 21 },
144 { Arch::mips, 9 },
145 { Arch::mips64, 21 },
146 { Arch::x86, 9 },
147 { Arch::x86_64, 21 },