Parse a remarks hotness threshold option value.
Declared in <llvm/Remarks/HotnessThresholdParser.h>
Expected<std::optional<uint64_t>>
parseHotnessThresholdOption(StringRef Arg);
Valid option values are: 1. integer: manually specified threshold; or 2. string 'auto': automatically get threshold from profile summary.
Returns std::nullopt if 'auto' is specified, indicating the value will be filled later during PSI. Negative integers are treated as no threshold (zero).
The threshold, std::nullopt for 'auto', or an error if Arg is not a valid integer or 'auto'.
| Name | Description |
|---|---|
| Arg | Option value string to parse. |