1919#include " llvm/IR/Intrinsics.h"
2020#include < optional>
2121
22- namespace llvm {
22+ using namespace llvm ;
2323
24- std::optional<RoundingMode> convertStrToRoundingMode (StringRef RoundingArg) {
24+ std::optional<RoundingMode>
25+ llvm::convertStrToRoundingMode (StringRef RoundingArg) {
2526 // For dynamic rounding mode, we use round to nearest but we will set the
2627 // 'exact' SDNodeFlag so that the value will not be rounded.
2728 return StringSwitch<std::optional<RoundingMode>>(RoundingArg)
@@ -34,7 +35,8 @@ std::optional<RoundingMode> convertStrToRoundingMode(StringRef RoundingArg) {
3435 .Default (std::nullopt );
3536}
3637
37- std::optional<StringRef> convertRoundingModeToStr (RoundingMode UseRounding) {
38+ std::optional<StringRef>
39+ llvm::convertRoundingModeToStr (RoundingMode UseRounding) {
3840 std::optional<StringRef> RoundingStr;
3941 switch (UseRounding) {
4042 case RoundingMode::Dynamic:
@@ -62,7 +64,7 @@ std::optional<StringRef> convertRoundingModeToStr(RoundingMode UseRounding) {
6264}
6365
6466std::optional<fp::ExceptionBehavior>
65- convertStrToExceptionBehavior (StringRef ExceptionArg) {
67+ llvm:: convertStrToExceptionBehavior (StringRef ExceptionArg) {
6668 return StringSwitch<std::optional<fp::ExceptionBehavior>>(ExceptionArg)
6769 .Case (" fpexcept.ignore" , fp::ebIgnore)
6870 .Case (" fpexcept.maytrap" , fp::ebMayTrap)
@@ -71,7 +73,7 @@ convertStrToExceptionBehavior(StringRef ExceptionArg) {
7173}
7274
7375std::optional<StringRef>
74- convertExceptionBehaviorToStr (fp::ExceptionBehavior UseExcept) {
76+ llvm:: convertExceptionBehaviorToStr (fp::ExceptionBehavior UseExcept) {
7577 std::optional<StringRef> ExceptStr;
7678 switch (UseExcept) {
7779 case fp::ebStrict:
@@ -87,7 +89,7 @@ convertExceptionBehaviorToStr(fp::ExceptionBehavior UseExcept) {
8789 return ExceptStr;
8890}
8991
90- Intrinsic::ID getConstrainedIntrinsicID (const Instruction &Instr) {
92+ Intrinsic::ID llvm:: getConstrainedIntrinsicID (const Instruction &Instr) {
9193 Intrinsic::ID IID = Intrinsic::not_intrinsic;
9294 switch (Instr.getOpcode ()) {
9395 case Instruction::FCmp:
@@ -127,5 +129,3 @@ Intrinsic::ID getConstrainedIntrinsicID(const Instruction &Instr) {
127129
128130 return IID;
129131}
130-
131- } // namespace llvm
0 commit comments