| 1068 | } |
| 1069 | |
| 1070 | static FastMathFlags getDecodedFastMathFlags(unsigned Val) { |
| 1071 | FastMathFlags FMF; |
| 1072 | if (0 != (Val & bitc::UnsafeAlgebra)) |
| 1073 | FMF.setFast(); |
| 1074 | if (0 != (Val & bitc::AllowReassoc)) |
| 1075 | FMF.setAllowReassoc(); |
| 1076 | if (0 != (Val & bitc::NoNaNs)) |
| 1077 | FMF.setNoNaNs(); |
| 1078 | if (0 != (Val & bitc::NoInfs)) |
| 1079 | FMF.setNoInfs(); |
| 1080 | if (0 != (Val & bitc::NoSignedZeros)) |
| 1081 | FMF.setNoSignedZeros(); |
| 1082 | if (0 != (Val & bitc::AllowReciprocal)) |
| 1083 | FMF.setAllowReciprocal(); |
| 1084 | if (0 != (Val & bitc::AllowContract)) |
| 1085 | FMF.setAllowContract(true); |
| 1086 | if (0 != (Val & bitc::ApproxFunc)) |
| 1087 | FMF.setApproxFunc(); |
| 1088 | return FMF; |
| 1089 | } |
| 1090 | |
| 1091 | static void upgradeDLLImportExportLinkage(GlobalValue *GV, unsigned Val) { |
| 1092 | switch (Val) { |
no test coverage detected