32 if (std::optional<unsigned> Minor = V.getMinor())
34 if (std::optional<unsigned> Subminor = V.getSubminor())
35 Out <<
'.' << *Subminor;
36 if (std::optional<unsigned> Build = V.getBuild())
48 if (next <
'0' || next >
'9')
52 while (!input.
empty()) {
54 if (next <
'0' || next >
'9')
64 unsigned major = 0, minor = 0, micro = 0, build = 0;
Given that RA is a live value
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
static bool parseInt(StringRef &input, unsigned &value)
Defines the llvm::VersionTuple class, which represents a version in the form major[....
StringRef - Represent a constant reference to a string, i.e.
constexpr StringRef substr(size_t Start, size_t N=npos) const
Return a reference to the substring from [Start, Start + N).
constexpr bool empty() const
empty - Check if the string is empty.
bool consume_front(StringRef Prefix)
Returns true if this StringRef has the given prefix and removes that prefix.
Represents a version number in the form major[.minor[.subminor[.build]]].
bool tryParse(StringRef string)
Try to parse the given string as a version number.
std::string getAsString() const
Retrieve a string representation of the version number.
This class implements an extremely fast bulk output stream that can only output to a stream.
A raw_ostream that writes to an std::string.
This is an optimization pass for GlobalISel generic memory operations.
raw_ostream & operator<<(raw_ostream &OS, const APFixedPoint &FX)