20 for (
auto Arch : Archs) {
30 for (
unsigned i = 0; i <
sizeof(
ArchSetType) * 8; ++i)
31 if (ArchSet & (1U << i))
36 ArchitectureSet::operator std::string()
const {
42 for (
auto arch : *
this) {
51 ArchitectureSet::operator std::vector<Architecture>()
const {
52 std::vector<Architecture> archs;
53 for (
auto arch : *
this) {
56 archs.emplace_back(arch);
This class represents lattice values for constants.
constexpr ArchitectureSet()=default
raw_ostream & operator<<(raw_ostream &OS, Architecture Arch)
void print(raw_ostream &OS) const
auto size(R &&Range, typename std::enable_if< std::is_same< typename std::iterator_traits< decltype(Range.begin())>::iterator_category, std::random_access_iterator_tag >::value, void >::type *=nullptr) -> decltype(std::distance(Range.begin(), Range.end()))
Get the size of a range.
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.