/external/llvm/unittests/IR/ |
D | IRBuilderTest.cpp | 140 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/ |
D | InstCombineMulDivRem.cpp | 534 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 …]
|
D | InstCombineAddSub.cpp | 490 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()
|
D | InstCombineSelect.cpp | 1113 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()
|
D | InstructionCombining.cpp | 154 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/ |
D | Instruction.cpp | 173 FastMathFlags Instruction::getFastMathFlags() const { in getFastMathFlags() function in Instruction 175 return cast<FPMathOperator>(this)->getFastMathFlags(); in getFastMathFlags() 180 copyFastMathFlags(I->getFastMathFlags()); in copyFastMathFlags()
|
D | Instructions.cpp | 1941 copyFastMathFlags(FP->getFastMathFlags()); in copyIRFlags() 1954 FastMathFlags FM = getFastMathFlags(); in andIRFlags() 1955 FM &= FP->getFastMathFlags(); in andIRFlags()
|
/external/llvm/lib/Transforms/Scalar/ |
D | Reassociate.cpp | 357 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()
|
D | LoopUnrollPass.cpp | 364 SimplifyFPBinOp(I.getOpcode(), LHS, RHS, FI->getFastMathFlags(), DL); in visitBinaryOperator()
|
/external/llvm/include/llvm/IR/ |
D | Instruction.h | 284 FastMathFlags getFastMathFlags() const;
|
D | Operator.h | 299 FastMathFlags getFastMathFlags() const { in getFastMathFlags() function
|
D | IRBuilder.h | 179 FastMathFlags getFastMathFlags() const { return FMF; } in getFastMathFlags() function
|
/external/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 3642 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/ |
D | InlineCost.cpp | 606 SimplifyFPBinOp(I.getOpcode(), LHS, RHS, FI->getFastMathFlags(), DL); in visitBinaryOperator()
|
/external/llvm/lib/Transforms/Utils/ |
D | SimplifyLibCalls.cpp | 1243 B.SetFastMathFlags(I->getFastMathFlags()); in optimizeSqrt()
|