15#ifndef LLVM_REMARKS_HOTNESSTHRESHOLDPARSER_H
16#define LLVM_REMARKS_HOTNESSTHRESHOLDPARSER_H
38 "Not an integer: %s", Arg.
data());
41 return Val < 0 ? 0 : Val;
50 std::optional<uint64_t> &V) {
53 return O.error(
"Invalid argument '" + Arg +
54 "', only integer or 'auto' is supported.");
Tagged union holding either a T or a Error.
StringRef - Represent a constant reference to a string, i.e.
bool getAsInteger(unsigned Radix, T &Result) const
Parse the current string as an integer of the specified radix.
constexpr const char * data() const
data - Get a pointer to the start of the string (which may not be null terminated).
This is an optimization pass for GlobalISel generic memory operations.
std::error_code inconvertibleErrorCode()
The value returned by this function can be returned from convertToErrorCode for Error values where no...
Error createStringError(std::error_code EC, char const *Fmt, const Ts &... Vals)
Create formatted StringError object.
Implement std::hash so that hash_code can be used in STL containers.