Returns a valid RoundingMode enumerator when given a string that is valid as input in constrained intrinsic rounding mode metadata.

Synopsis

Declared in <llvm/IR/FPEnv.h>

std::optional<RoundingMode>
convertStrToRoundingMode(StringRef RoundingArg);

Return Value

The parsed rounding mode, or std::nullopt if RoundingArg is not a valid constrained‐intrinsic rounding‐mode string.

Parameters

Name

Description

RoundingArg

Rounding‐mode metadata string to parse.

Created with MrDocs