Home
last modified time | relevance | path

Searched refs:getFastMathFlags (Results 1 – 15 of 15) sorted by relevance

/external/llvm/unittests/IR/
DIRBuilderTest.cpp140 EXPECT_FALSE(Builder.getFastMathFlags().any()); in TEST_F()
149 EXPECT_FALSE(Builder.getFastMathFlags().any()); in TEST_F()
155 EXPECT_TRUE(Builder.getFastMathFlags().any()); in TEST_F()
162 EXPECT_TRUE(Builder.getFastMathFlags().any()); in TEST_F()
168 EXPECT_TRUE(Builder.getFastMathFlags().any()); in TEST_F()
169 EXPECT_TRUE(Builder.getFastMathFlags().UnsafeAlgebra); in TEST_F()
186 EXPECT_TRUE(Builder.getFastMathFlags().any()); in TEST_F()
187 EXPECT_TRUE(Builder.getFastMathFlags().AllowReciprocal); in TEST_F()
198 EXPECT_FALSE(FDiv->getFastMathFlags().any()); in TEST_F()
259 EXPECT_FALSE(Builder.getFastMathFlags().allowReciprocal()); in TEST_F()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp534 SimplifyFMulInst(Op0, Op1, I.getFastMathFlags(), DL, TLI, DT, AC)) in visitFMul()
628 Builder->SetFastMathFlags(Log2->getFastMathFlags()); in visitFMul()
644 Builder->SetFastMathFlags(I.getFastMathFlags()); in visitFMul()
685 Builder->SetFastMathFlags(I.getFastMathFlags()); in visitFMul()
1209 if (Value *V = SimplifyFDivInst(Op0, Op1, I.getFastMathFlags(), in visitFDiv()
1250 Res->setFastMathFlags(I.getFastMathFlags()); in visitFDiv()
1285 R->setFastMathFlags(I.getFastMathFlags()); in visitFDiv()
1302 FastMathFlags Flags = I.getFastMathFlags(); in visitFDiv()
1303 Flags &= cast<Instruction>(Op0)->getFastMathFlags(); in visitFDiv()
1314 FastMathFlags Flags = I.getFastMathFlags(); in visitFDiv()
[all …]
DInstCombineAddSub.cpp490 if (I0) Flags &= I->getFastMathFlags(); in performFactorization()
491 if (I1) Flags &= I->getFastMathFlags(); in performFactorization()
798 NewInstr->setFastMathFlags(Instr->getFastMathFlags()); in createInstPostProc()
1335 SimplifyFAddInst(LHS, RHS, I.getFastMathFlags(), DL, TLI, DT, AC)) in visitFAdd()
1699 SimplifyFSubInst(Op0, Op1, I.getFastMathFlags(), DL, TLI, DT, AC)) in visitFSub()
1703 if (I.getFastMathFlags().noSignedZeros() && match(Op0, m_Zero())) { in visitFSub()
DInstCombineSelect.cpp1113 FastMathFlags Flags = AddOp->getFastMathFlags(); in visitSelectInst()
1114 Flags &= SubOp->getFastMathFlags(); in visitSelectInst()
1133 FastMathFlags Flags = AddOp->getFastMathFlags(); in visitSelectInst()
1134 Flags &= SubOp->getFastMathFlags(); in visitSelectInst()
DInstructionCombining.cpp154 FastMathFlags FMF = I.getFastMathFlags(); in ClearSubclassDataAfterReassociation()
302 FastMathFlags Flags = I.getFastMathFlags(); in SimplifyAssociativeOrCommutative()
303 Flags &= Op0->getFastMathFlags(); in SimplifyAssociativeOrCommutative()
304 Flags &= Op1->getFastMathFlags(); in SimplifyAssociativeOrCommutative()
/external/llvm/lib/IR/
DInstruction.cpp173 FastMathFlags Instruction::getFastMathFlags() const { in getFastMathFlags() function in Instruction
175 return cast<FPMathOperator>(this)->getFastMathFlags(); in getFastMathFlags()
180 copyFastMathFlags(I->getFastMathFlags()); in copyFastMathFlags()
DInstructions.cpp1941 copyFastMathFlags(FP->getFastMathFlags()); in copyIRFlags()
1954 FastMathFlags FM = getFastMathFlags(); in andIRFlags()
1955 FM &= FP->getFastMathFlags(); in andIRFlags()
/external/llvm/lib/Transforms/Scalar/
DReassociate.cpp357 Res->setFastMathFlags(cast<FPMathOperator>(FlagsOp)->getFastMathFlags()); in CreateAdd()
369 Res->setFastMathFlags(cast<FPMathOperator>(FlagsOp)->getFastMathFlags()); in CreateMul()
380 Res->setFastMathFlags(cast<FPMathOperator>(FlagsOp)->getFastMathFlags()); in CreateNeg()
874 NewOp->setFastMathFlags(I->getFastMathFlags()); in RewriteExprTree()
896 FastMathFlags Flags = I->getFastMathFlags(); in RewriteExprTree()
2044 NI->setFastMathFlags(cast<FPMathOperator>(User)->getFastMathFlags()); in canonicalizeNegConstExpr()
2048 NI->setFastMathFlags(cast<FPMathOperator>(User)->getFastMathFlags()); in canonicalizeNegConstExpr()
DLoopUnrollPass.cpp364 SimplifyFPBinOp(I.getOpcode(), LHS, RHS, FI->getFastMathFlags(), DL); in visitBinaryOperator()
/external/llvm/include/llvm/IR/
DInstruction.h284 FastMathFlags getFastMathFlags() const;
DOperator.h299 FastMathFlags getFastMathFlags() const { in getFastMathFlags() function
DIRBuilder.h179 FastMathFlags getFastMathFlags() const { return FMF; } in getFastMathFlags() function
/external/llvm/lib/Analysis/
DInstructionSimplify.cpp3642 I->getFastMathFlags(), DL, TLI, DT, AC, I); in SimplifyInstruction()
3652 I->getFastMathFlags(), DL, TLI, DT, AC, I); in SimplifyInstruction()
3662 I->getFastMathFlags(), DL, TLI, DT, AC, I); in SimplifyInstruction()
3678 I->getFastMathFlags(), DL, TLI, DT, AC, I); in SimplifyInstruction()
3690 I->getFastMathFlags(), DL, TLI, DT, AC, I); in SimplifyInstruction()
/external/llvm/lib/Analysis/IPA/
DInlineCost.cpp606 SimplifyFPBinOp(I.getOpcode(), LHS, RHS, FI->getFastMathFlags(), DL); in visitBinaryOperator()
/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp1243 B.SetFastMathFlags(I->getFastMathFlags()); in optimizeSqrt()