diff options
Diffstat (limited to 'unittests/IR/IRBuilderTest.cpp')
-rw-r--r-- | unittests/IR/IRBuilderTest.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/unittests/IR/IRBuilderTest.cpp b/unittests/IR/IRBuilderTest.cpp index 82565cc..bd0eae0 100644 --- a/unittests/IR/IRBuilderTest.cpp +++ b/unittests/IR/IRBuilderTest.cpp @@ -142,13 +142,13 @@ TEST_F(IRBuilderTest, FastMathFlags) { 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()); @@ -179,7 +179,7 @@ TEST_F(IRBuilderTest, FastMathFlags) { FMF.clear(); FMF.setAllowReciprocal(); - Builder.SetFastMathFlags(FMF); + Builder.setFastMathFlags(FMF); F = Builder.CreateFDiv(F, F); EXPECT_TRUE(Builder.getFastMathFlags().any()); @@ -197,7 +197,7 @@ TEST_F(IRBuilderTest, FastMathFlags) { FMF.clear(); FMF.setAllowReciprocal(); - Builder.SetFastMathFlags(FMF); + Builder.setFastMathFlags(FMF); FC = Builder.CreateFCmpOEQ(F, F); EXPECT_TRUE(Builder.getFastMathFlags().any()); @@ -224,7 +224,7 @@ TEST_F(IRBuilderTest, FastMathFlags) { FMF.clear(); FMF.setNoNaNs(); - Builder.SetFastMathFlags(FMF); + Builder.setFastMathFlags(FMF); FCall = Builder.CreateCall(Callee, None); EXPECT_TRUE(Builder.getFastMathFlags().any()); @@ -309,14 +309,14 @@ TEST_F(IRBuilderTest, RAIIHelpersTest) { 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()); } |