EXPECT_FALSE(FAdd->hasNoNaNs());
FastMathFlags FMF;
- Builder.SetFastMathFlags(FMF);
+ Builder.setFastMathFlags(FMF);
F = Builder.CreateFAdd(F, F);
EXPECT_FALSE(Builder.getFastMathFlags().any());
FMF.setUnsafeAlgebra();
- Builder.SetFastMathFlags(FMF);
+ Builder.setFastMathFlags(FMF);
F = Builder.CreateFAdd(F, F);
EXPECT_TRUE(Builder.getFastMathFlags().any());
FMF.clear();
FMF.setAllowReciprocal();
- Builder.SetFastMathFlags(FMF);
+ Builder.setFastMathFlags(FMF);
F = Builder.CreateFDiv(F, F);
EXPECT_TRUE(Builder.getFastMathFlags().any());
FMF.clear();
FMF.setAllowReciprocal();
- Builder.SetFastMathFlags(FMF);
+ Builder.setFastMathFlags(FMF);
FC = Builder.CreateFCmpOEQ(F, F);
EXPECT_TRUE(Builder.getFastMathFlags().any());
FMF.clear();
FMF.setNoNaNs();
- Builder.SetFastMathFlags(FMF);
+ Builder.setFastMathFlags(FMF);
FCall = Builder.CreateCall(Callee, None);
EXPECT_TRUE(Builder.getFastMathFlags().any());
MDNode *FPMathA = MDB.createFPMath(0.01f);
MDNode *FPMathB = MDB.createFPMath(0.1f);
- Builder.SetDefaultFPMathTag(FPMathA);
+ Builder.setDefaultFPMathTag(FPMathA);
{
IRBuilder<>::FastMathFlagGuard Guard(Builder);
FastMathFlags FMF;
FMF.setAllowReciprocal();
- Builder.SetFastMathFlags(FMF);
- Builder.SetDefaultFPMathTag(FPMathB);
+ Builder.setFastMathFlags(FMF);
+ Builder.setDefaultFPMathTag(FPMathB);
EXPECT_TRUE(Builder.getFastMathFlags().allowReciprocal());
EXPECT_EQ(FPMathB, Builder.getDefaultFPMathTag());
}