Home
last modified time | relevance | path

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

/minix3/external/bsd/llvm/dist/llvm/unittests/IR/
H A DIRBuilderTest.cpp138 EXPECT_FALSE(Builder.getFastMathFlags().any()); in TEST_F()
147 EXPECT_FALSE(Builder.getFastMathFlags().any()); in TEST_F()
153 EXPECT_TRUE(Builder.getFastMathFlags().any()); in TEST_F()
160 EXPECT_TRUE(Builder.getFastMathFlags().any()); in TEST_F()
166 EXPECT_TRUE(Builder.getFastMathFlags().any()); in TEST_F()
167 EXPECT_TRUE(Builder.getFastMathFlags().UnsafeAlgebra); in TEST_F()
184 EXPECT_TRUE(Builder.getFastMathFlags().any()); in TEST_F()
185 EXPECT_TRUE(Builder.getFastMathFlags().AllowReciprocal); in TEST_F()
196 EXPECT_FALSE(FDiv->getFastMathFlags().any()); in TEST_F()
257 EXPECT_FALSE(Builder.getFastMathFlags().allowReciprocal()); in TEST_F()
[all …]
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/InstCombine/
H A 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()
1249 Res->setFastMathFlags(I.getFastMathFlags()); in visitFDiv()
1284 R->setFastMathFlags(I.getFastMathFlags()); in visitFDiv()
1301 FastMathFlags Flags = I.getFastMathFlags(); in visitFDiv()
1302 Flags &= cast<Instruction>(Op0)->getFastMathFlags(); in visitFDiv()
1313 FastMathFlags Flags = I.getFastMathFlags(); in visitFDiv()
1314 Flags &= cast<Instruction>(Op1)->getFastMathFlags(); in visitFDiv()
[all …]
H A DInstCombineAddSub.cpp490 if (I0) Flags &= I->getFastMathFlags(); in performFactorization()
491 if (I1) Flags &= I->getFastMathFlags(); in performFactorization()
798 NewInstr->setFastMathFlags(Instr->getFastMathFlags()); in createInstPostProc()
1332 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()
H A DInstCombineSelect.cpp1054 FastMathFlags Flags = AddOp->getFastMathFlags(); in visitSelectInst()
1055 Flags &= SubOp->getFastMathFlags(); in visitSelectInst()
1074 FastMathFlags Flags = AddOp->getFastMathFlags(); in visitSelectInst()
1075 Flags &= SubOp->getFastMathFlags(); in visitSelectInst()
H A DInstructionCombining.cpp181 FastMathFlags FMF = I.getFastMathFlags(); in ClearSubclassDataAfterReassociation()
329 FastMathFlags Flags = I.getFastMathFlags(); in SimplifyAssociativeOrCommutative()
330 Flags &= Op0->getFastMathFlags(); in SimplifyAssociativeOrCommutative()
331 Flags &= Op1->getFastMathFlags(); in SimplifyAssociativeOrCommutative()
/minix3/external/bsd/llvm/dist/llvm/lib/IR/
H A 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()
H A DInstructions.cpp2044 copyFastMathFlags(FP->getFastMathFlags()); in copyIRFlags()
2057 FastMathFlags FM = getFastMathFlags(); in andIRFlags()
2058 FM &= FP->getFastMathFlags(); in andIRFlags()
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Scalar/
H A DReassociate.cpp359 Res->setFastMathFlags(cast<FPMathOperator>(FlagsOp)->getFastMathFlags()); in CreateAdd()
371 Res->setFastMathFlags(cast<FPMathOperator>(FlagsOp)->getFastMathFlags()); in CreateMul()
382 Res->setFastMathFlags(cast<FPMathOperator>(FlagsOp)->getFastMathFlags()); in CreateNeg()
876 NewOp->setFastMathFlags(I->getFastMathFlags()); in RewriteExprTree()
898 FastMathFlags Flags = I->getFastMathFlags(); in RewriteExprTree()
2043 NI->setFastMathFlags(cast<FPMathOperator>(User)->getFastMathFlags()); in canonicalizeNegConstExpr()
2047 NI->setFastMathFlags(cast<FPMathOperator>(User)->getFastMathFlags()); in canonicalizeNegConstExpr()
/minix3/external/bsd/llvm/dist/llvm/include/llvm/IR/
H A DInstruction.h262 FastMathFlags getFastMathFlags() const;
H A DOperator.h299 FastMathFlags getFastMathFlags() const { in getFastMathFlags() function
H A DIRBuilder.h180 FastMathFlags getFastMathFlags() const { return FMF; } in getFastMathFlags() function
/minix3/external/bsd/llvm/dist/llvm/lib/Analysis/
H A DInstructionSimplify.cpp3576 I->getFastMathFlags(), DL, TLI, DT, AC, I); in SimplifyInstruction()
3586 I->getFastMathFlags(), DL, TLI, DT, AC, I); in SimplifyInstruction()
3596 I->getFastMathFlags(), DL, TLI, DT, AC, I); in SimplifyInstruction()
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp1194 B.SetFastMathFlags(I->getFastMathFlags()); in optimizeSqrt()