33 Out <<
'.' << *Subminor;
46 if (next < '0' || next >
'9')
50 while (!input.
empty()) {
52 if (next < '0' || next >
'9')
55 value = value * 10 + (
unsigned)(next -
'0');
62 unsigned major = 0, minor = 0, micro = 0,
build = 0;
This class represents lattice values for constants.
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE bool empty() const
empty - Check if the string is empty.
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE StringRef substr(size_t Start, size_t N=npos) const
Return a reference to the substring from [Start, Start + N).
Error build(ArrayRef< Module *> Mods, SmallVector< char, 0 > &Symtab, StringTableBuilder &StrtabBuilder, BumpPtrAllocator &Alloc)
Fills in Symtab and StrtabBuilder with a valid symbol and string table for Mods.
unsigned getMajor() const
Retrieve the major version number.
Optional< unsigned > getMinor() const
Retrieve the minor version number, if provided.
bool tryParse(StringRef string)
Try to parse the given string as a version number.
static bool parseInt(StringRef &input, unsigned &value)
Optional< unsigned > getBuild() const
Retrieve the build version number, if provided.
Represents a version number in the form major[.minor[.subminor[.build]]].
std::string getAsString() const
Retrieve a string representation of the version number.
raw_ostream & operator<<(raw_ostream &OS, const APInt &I)
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
A raw_ostream that writes to an std::string.
Defines the llvm::VersionTuple class, which represents a version in the form major[.minor[.subminor]].
This class implements an extremely fast bulk output stream that can only output to a stream...
StringRef - Represent a constant reference to a string, i.e.
Optional< unsigned > getSubminor() const
Retrieve the subminor version number, if provided.