30 #ifndef LLVM_MC_LANEBITMASK_H 31 #define LLVM_MC_LANEBITMASK_H 44 constexpr
static const char *
const FormatStr =
"%08X";
52 constexpr
bool none()
const {
return Mask == 0; }
53 constexpr
bool any()
const {
return Mask != 0; }
54 constexpr
bool all()
const {
return ~Mask == 0; }
102 #endif // LLVM_MC_LANEBITMASK_H unsigned getNumLanes() const
This class represents lattice values for constants.
format_object< Ts... > format(const char *Fmt, const Ts &... Vals)
These are helper functions used to produce formatted output.
unsigned getHighestLane() const
constexpr bool operator!=(LaneBitmask M) const
Printable PrintLaneMask(LaneBitmask LaneMask)
Create Printable object to print LaneBitmasks on a raw_ostream.
static constexpr LaneBitmask getAll()
static constexpr LaneBitmask getNone()
constexpr LaneBitmask operator~() const
constexpr LaneBitmask operator|(LaneBitmask M) const
static constexpr const char *const FormatStr
constexpr LaneBitmask()=default
static constexpr LaneBitmask getLane(unsigned Lane)
LaneBitmask & operator|=(LaneBitmask M)
constexpr bool none() const
constexpr LaneBitmask operator &(LaneBitmask M) const
constexpr bool all() const
constexpr Type getAsInteger() const
unsigned countPopulation(T Value)
Count the number of set bits in a value.
unsigned Log2_32(uint32_t Value)
Return the floor log base 2 of the specified value, -1 if the value is zero.
constexpr bool any() const
LaneBitmask & operator &=(LaneBitmask M)
constexpr bool operator<(LaneBitmask M) const
This class implements an extremely fast bulk output stream that can only output to a stream...
constexpr bool operator==(LaneBitmask M) const
constexpr LaneBitmask(Type V)
Simple wrapper around std::function<void(raw_ostream&)>.