Go to the documentation of this file.
13 #ifndef LLVM_TEXTAPI_PACKEDVERSION_H
14 #define LLVM_TEXTAPI_PACKEDVERSION_H
32 : Version((Major << 16) | ((Minor & 0xff) << 8) | (Subminor & 0xff)) {}
34 bool empty()
const {
return Version == 0; }
37 unsigned getMajor()
const {
return Version >> 16; }
40 unsigned getMinor()
const {
return (Version >> 8) & 0xff; }
67 #endif // LLVM_TEXTAPI_PACKEDVERSION_H
This is an optimization pass for GlobalISel generic memory operations.
unsigned getMajor() const
Retrieve the major version number.
PackedVersion(unsigned Major, unsigned Minor, unsigned Subminor)
constexpr PackedVersion(uint32_t RawVersion)
bool operator==(const PackedVersion &O) const
unsigned getMinor() const
Retrieve the minor version number, if provided.
std::pair< bool, bool > parse64(StringRef Str)
unsigned getSubminor() const
Retrieve the subminor version number, if provided.
bool operator!=(const PackedVersion &O) const
This class implements an extremely fast bulk output stream that can only output to a stream.
raw_ostream & operator<<(raw_ostream &OS, Architecture Arch)
bool operator<(const PackedVersion &O) const
bool parse32(StringRef Str)
StringRef - Represent a constant reference to a string, i.e.
uint32_t rawValue() const
void print(raw_ostream &OS) const
constexpr PackedVersion()=default