Home
last modified time | relevance | path

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

123

/external/llvm/unittests/IR/
DIRBuilderTest.cpp139 EXPECT_FALSE(Builder.getFastMathFlags().any()); in TEST_F()
148 EXPECT_FALSE(Builder.getFastMathFlags().any()); in TEST_F()
154 EXPECT_TRUE(Builder.getFastMathFlags().any()); in TEST_F()
161 EXPECT_TRUE(Builder.getFastMathFlags().any()); in TEST_F()
167 EXPECT_TRUE(Builder.getFastMathFlags().any()); in TEST_F()
168 EXPECT_TRUE(Builder.getFastMathFlags().UnsafeAlgebra); in TEST_F()
185 EXPECT_TRUE(Builder.getFastMathFlags().any()); in TEST_F()
186 EXPECT_TRUE(Builder.getFastMathFlags().AllowReciprocal); in TEST_F()
203 EXPECT_TRUE(Builder.getFastMathFlags().any()); in TEST_F()
204 EXPECT_TRUE(Builder.getFastMathFlags().AllowReciprocal); in TEST_F()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/
DIRBuilderTest.cpp160 EXPECT_FALSE(Builder.getFastMathFlags().any()); in TEST_F()
170 EXPECT_FALSE(Builder.getFastMathFlags().any()); in TEST_F()
196 EXPECT_TRUE(Builder.getFastMathFlags().any()); in TEST_F()
197 EXPECT_TRUE(Builder.getFastMathFlags().all()); in TEST_F()
205 EXPECT_TRUE(Builder.getFastMathFlags().any()); in TEST_F()
212 EXPECT_TRUE(Builder.getFastMathFlags().all()); in TEST_F()
231 EXPECT_TRUE(Builder.getFastMathFlags().any()); in TEST_F()
232 EXPECT_TRUE(Builder.getFastMathFlags().AllowReciprocal); in TEST_F()
249 EXPECT_TRUE(Builder.getFastMathFlags().any()); in TEST_F()
250 EXPECT_TRUE(Builder.getFastMathFlags().AllowReciprocal); in TEST_F()
[all …]
/external/llvm/lib/IR/
DInstruction.cpp207 FastMathFlags Instruction::getFastMathFlags() const { in getFastMathFlags() function in Instruction
209 return cast<FPMathOperator>(this)->getFastMathFlags(); in getFastMathFlags()
214 copyFastMathFlags(I->getFastMathFlags()); in copyFastMathFlags()
234 copyFastMathFlags(FP->getFastMathFlags()); in copyIRFlags()
251 FastMathFlags FM = getFastMathFlags(); in andIRFlags()
252 FM &= FP->getFastMathFlags(); in andIRFlags()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp548 SimplifyFMulInst(Op0, Op1, I.getFastMathFlags(), DL, TLI, DT, AC)) in visitFMul()
653 Builder->setFastMathFlags(Log2->getFastMathFlags()); in visitFMul()
669 Builder->setFastMathFlags(I.getFastMathFlags()); in visitFMul()
710 Builder->setFastMathFlags(I.getFastMathFlags()); in visitFMul()
1249 if (Value *V = SimplifyFDivInst(Op0, Op1, I.getFastMathFlags(), in visitFDiv()
1290 Res->setFastMathFlags(I.getFastMathFlags()); in visitFDiv()
1325 R->setFastMathFlags(I.getFastMathFlags()); in visitFDiv()
1342 FastMathFlags Flags = I.getFastMathFlags(); in visitFDiv()
1343 Flags &= cast<Instruction>(Op0)->getFastMathFlags(); in visitFDiv()
1354 FastMathFlags Flags = I.getFastMathFlags(); in visitFDiv()
[all …]
DInstCombineSelect.cpp882 FastMathFlags Flags = AddOp->getFastMathFlags(); in foldAddSubSelect()
883 Flags &= SubOp->getFastMathFlags(); in foldAddSubSelect()
901 FastMathFlags Flags = AddOp->getFastMathFlags(); in foldAddSubSelect()
902 Flags &= SubOp->getFastMathFlags(); in foldAddSubSelect()
1027 Builder->setFastMathFlags(FCI->getFastMathFlags()); in visitSelectInst()
1070 Builder->setFastMathFlags(FCI->getFastMathFlags()); in visitSelectInst()
1119 auto FMF = cast<FPMathOperator>(SI.getCondition())->getFastMathFlags(); in visitSelectInst()
DInstCombineAddSub.cpp474 if (I0) Flags &= I->getFastMathFlags(); in performFactorization()
475 if (I1) Flags &= I->getFastMathFlags(); in performFactorization()
780 NewInstr->setFastMathFlags(Instr->getFastMathFlags()); in createInstPostProc()
1303 SimplifyFAddInst(LHS, RHS, I.getFastMathFlags(), DL, TLI, DT, AC)) in visitFAdd()
1678 SimplifyFSubInst(Op0, Op1, I.getFastMathFlags(), DL, TLI, DT, AC)) in visitFSub()
1682 if (I.getFastMathFlags().noSignedZeros() && match(Op0, m_Zero())) { in visitFSub()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DInstruction.cpp233 FastMathFlags Instruction::getFastMathFlags() const { in getFastMathFlags() function in Instruction
235 return cast<FPMathOperator>(this)->getFastMathFlags(); in getFastMathFlags()
239 copyFastMathFlags(I->getFastMathFlags()); in copyFastMathFlags()
259 copyFastMathFlags(FP->getFastMathFlags()); in copyIRFlags()
280 FastMathFlags FM = getFastMathFlags(); in andIRFlags()
281 FM &= FP->getFastMathFlags(); in andIRFlags()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DExpandReductions.cpp98 if (!II->getFastMathFlags().isFast()) in expandReductions()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DReassociate.cpp239 Res->setFastMathFlags(cast<FPMathOperator>(FlagsOp)->getFastMathFlags()); in CreateAdd()
251 Res->setFastMathFlags(cast<FPMathOperator>(FlagsOp)->getFastMathFlags()); in CreateMul()
262 Res->setFastMathFlags(cast<FPMathOperator>(FlagsOp)->getFastMathFlags()); in CreateNeg()
757 NewOp->setFastMathFlags(I->getFastMathFlags()); in RewriteExprTree()
779 FastMathFlags Flags = I->getFastMathFlags(); in RewriteExprTree()
1807 Builder.setFastMathFlags(FPI->getFastMathFlags()); in OptimizeMul()
1993 NI->setFastMathFlags(cast<FPMathOperator>(User)->getFastMathFlags()); in canonicalizeNegConstExpr()
1997 NI->setFastMathFlags(cast<FPMathOperator>(User)->getFastMathFlags()); in canonicalizeNegConstExpr()
/external/llvm/lib/Transforms/Scalar/
DReassociate.cpp224 Res->setFastMathFlags(cast<FPMathOperator>(FlagsOp)->getFastMathFlags()); in CreateAdd()
236 Res->setFastMathFlags(cast<FPMathOperator>(FlagsOp)->getFastMathFlags()); in CreateMul()
247 Res->setFastMathFlags(cast<FPMathOperator>(FlagsOp)->getFastMathFlags()); in CreateNeg()
740 NewOp->setFastMathFlags(I->getFastMathFlags()); in RewriteExprTree()
762 FastMathFlags Flags = I->getFastMathFlags(); in RewriteExprTree()
1946 NI->setFastMathFlags(cast<FPMathOperator>(User)->getFastMathFlags()); in canonicalizeNegConstExpr()
1950 NI->setFastMathFlags(cast<FPMathOperator>(User)->getFastMathFlags()); in canonicalizeNegConstExpr()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp1201 FastMathFlags Flags = AddOp->getFastMathFlags(); in foldAddSubSelect()
1202 Flags &= SubOp->getFastMathFlags(); in foldAddSubSelect()
1220 FastMathFlags Flags = AddOp->getFastMathFlags(); in foldAddSubSelect()
1221 Flags &= SubOp->getFastMathFlags(); in foldAddSubSelect()
1653 Builder.setFastMathFlags(FCI->getFastMathFlags()); in visitSelectInst()
1696 Builder.setFastMathFlags(FCI->getFastMathFlags()); in visitSelectInst()
1786 auto FMF = cast<FPMathOperator>(SI.getCondition())->getFastMathFlags(); in visitSelectInst()
DInstCombineAddSub.cpp486 if (I0) Flags &= I->getFastMathFlags(); in performFactorization()
487 if (I1) Flags &= I->getFastMathFlags(); in performFactorization()
790 NewInstr->setFastMathFlags(Instr->getFastMathFlags()); in createInstPostProc()
1396 I.getFastMathFlags(), in visitFAdd()
1837 I.getFastMathFlags(), in visitFSub()
DInstCombineMulDivRem.cpp414 I.getFastMathFlags(), in visitFMul()
1174 I.getFastMathFlags(), in visitFDiv()
1228 B.setFastMathFlags(I.getFastMathFlags()); in visitFDiv()
1424 I.getFastMathFlags(), in visitFRem()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DLoopUnrollAnalyzer.cpp82 SimplifyFPBinOp(I.getOpcode(), LHS, RHS, FI->getFastMathFlags(), DL); in visitBinaryOperator()
/external/llvm/lib/Analysis/
DLoopUnrollAnalyzer.cpp83 SimplifyFPBinOp(I.getOpcode(), LHS, RHS, FI->getFastMathFlags(), DL); in visitBinaryOperator()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp994 B.setFastMathFlags(CI->getFastMathFlags()); in optimizeUnaryDoubleFP()
1014 B.setFastMathFlags(CI->getFastMathFlags()); in replaceUnaryCall()
1042 B.setFastMathFlags(CI->getFastMathFlags()); in optimizeBinaryDoubleFP()
1059 B.setFastMathFlags(CI->getFastMathFlags()); in optimizeCAbs()
1176 B.setFastMathFlags(Pow->getFastMathFlags()); in optimizePow()
1210 B.setFastMathFlags(Pow->getFastMathFlags()); in optimizePow()
1469 B.setFastMathFlags(I->getFastMathFlags()); in optimizeSqrt()
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DInstruction.h335 FastMathFlags getFastMathFlags() const;
/external/llvm/include/llvm/IR/
DInstruction.h310 FastMathFlags getFastMathFlags() const;
DOperator.h298 FastMathFlags getFastMathFlags() const { in getFastMathFlags() function
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DInstruction.h389 FastMathFlags getFastMathFlags() const;
DIRBuilder.h211 FastMathFlags getFastMathFlags() const { return FMF; } in getFastMathFlags() function
1174 FMFSource->getFastMathFlags());
1191 FMFSource->getFastMathFlags());
1208 FMFSource->getFastMathFlags());
1225 FMFSource->getFastMathFlags());
1242 FMFSource->getFastMathFlags());
DOperator.h358 FastMathFlags getFastMathFlags() const { in getFastMathFlags() function
/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp903 B.setFastMathFlags(CI->getFastMathFlags()); in optimizeUnaryDoubleFP()
937 B.setFastMathFlags(CI->getFastMathFlags()); in optimizeBinaryDoubleFP()
1027 B.setFastMathFlags(CI->getFastMathFlags()); in optimizePow()
1050 B.setFastMathFlags(CI->getFastMathFlags()); in optimizePow()
1297 B.setFastMathFlags(I->getFastMathFlags()); in optimizeSqrt()
/external/tensorflow/tensorflow/compiler/xla/service/llvm_ir/
Dllvm_util.cc92 if (b->getFastMathFlags().noNaNs()) { in EmitFloatMax()
105 if (b->getFastMathFlags().noNaNs()) { in EmitFloatMin()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DAMDGPUCodeGenPrepare.cpp429 FastMathFlags FMF = FPOp->getFastMathFlags(); in visitFDiv()
563 FQ->copyFastMathFlags(Builder.getFastMathFlags()); in expandDivRem24()

123