MCPcopy Create free account
hub / github.com/GANGE666/xVMP / getDecodedFastMathFlags

Function getDecodedFastMathFlags

src/lib/Bitcode/Reader/BitcodeReader.cpp:1070–1089  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1068}
1069
1070static 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
1091static void upgradeDLLImportExportLinkage(GlobalValue *GV, unsigned Val) {
1092 switch (Val) {

Callers 1

parseFunctionBodyMethod · 0.85

Calls 8

setAllowReassocMethod · 0.80
setApproxFuncMethod · 0.80
setFastMethod · 0.45
setNoNaNsMethod · 0.45
setNoInfsMethod · 0.45
setNoSignedZerosMethod · 0.45
setAllowReciprocalMethod · 0.45
setAllowContractMethod · 0.45

Tested by

no test coverage detected