21 for (
auto Arch : Archs) {
31 for (
unsigned i = 0; i <
sizeof(
ArchSetType) * 8; ++i)
32 if (ArchSet & (1U << i))
37ArchitectureSet::operator std::string()
const {
43 for (
auto arch : *
this) {
52ArchitectureSet::operator std::vector<Architecture>()
const {
53 std::vector<Architecture> archs;
54 for (
auto arch : *
this) {
57 archs.emplace_back(arch);
constexpr ArchitectureSet()=default
void set(Architecture Arch)
void print(raw_ostream &OS) const
This class implements an extremely fast bulk output stream that can only output to a stream.
StringRef getArchitectureName(Architecture Arch)
Convert an architecture slice to a string.
raw_ostream & operator<<(raw_ostream &OS, Architecture Arch)
This is an optimization pass for GlobalISel generic memory operations.
auto size(R &&Range, std::enable_if_t< std::is_base_of< std::random_access_iterator_tag, typename std::iterator_traits< decltype(Range.begin())>::iterator_category >::value, void > *=nullptr)
Get the size of a range.
auto count(R &&Range, const E &Element)
Wrapper function around std::count to count the number of times an element Element occurs in the give...