15#ifndef LLVM_REMARKS_HOTNESSTHRESHOLDPARSER_H
16#define LLVM_REMARKS_HOTNESSTHRESHOLDPARSER_H
36 if (
Arg.getAsInteger(10, Val))
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.");
amdgpu Simplify well known AMD library false FunctionCallee Value * Arg
Tagged union holding either a T or a Error.
StringRef - Represent a constant reference to a string, i.e.
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.