Home
last modified time | relevance | path

Searched refs:getFastMathFlags (Results 1 – 25 of 61) 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/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-10.0/llvm/lib/IR/
DInstruction.cpp234 FastMathFlags Instruction::getFastMathFlags() const { in getFastMathFlags() function in Instruction
236 return cast<FPMathOperator>(this)->getFastMathFlags(); in getFastMathFlags()
240 copyFastMathFlags(I->getFastMathFlags()); in copyFastMathFlags()
260 copyFastMathFlags(FP->getFastMathFlags()); in copyIRFlags()
281 FastMathFlags FM = getFastMathFlags(); in andIRFlags()
282 FM &= FP->getFastMathFlags(); in andIRFlags()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64TargetTransformInfo.h190 return !II->getFastMathFlags().allowReassoc(); in shouldExpandReduction()
195 return !II->getFastMathFlags().noNaNs(); in shouldExpandReduction()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMTargetTransformInfo.h178 if (!II->getFastMathFlags().allowReassoc()) in shouldExpandReduction()
188 !II->getFastMathFlags().noNaNs(); in shouldExpandReduction()
/external/mesa3d/src/amd/llvm/
Dac_llvm_helper.cpp125 llvm::FastMathFlags flags = b->getFastMathFlags(); in ac_enable_signed_zeros()
139 llvm::FastMathFlags flags = b->getFastMathFlags(); in ac_disable_signed_zeros()
/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-10.0/llvm/lib/CodeGen/
DExpandReductions.cpp109 isa<FPMathOperator>(II) ? II->getFastMathFlags() : FastMathFlags{}; in expandReductions()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp154 Builder.setFastMathFlags(I.getFastMathFlags()); in foldMulSelectToNegate()
164 Builder.setFastMathFlags(I.getFastMathFlags()); in foldMulSelectToNegate()
395 I.getFastMathFlags(), in visitFMul()
1204 I.getFastMathFlags(), in visitFDiv()
1266 B.setFastMathFlags(I.getFastMathFlags()); in visitFDiv()
1484 I.getFastMathFlags(), in visitFRem()
DInstCombineSelect.cpp1719 FastMathFlags Flags = AddOp->getFastMathFlags(); in foldAddSubSelect()
1720 Flags &= SubOp->getFastMathFlags(); in foldAddSubSelect()
1738 FastMathFlags Flags = AddOp->getFastMathFlags(); in foldAddSubSelect()
1739 Flags &= SubOp->getFastMathFlags(); in foldAddSubSelect()
2454 Builder.setFastMathFlags(FCI->getFastMathFlags()); in visitSelectInst()
2577 cast<FPMathOperator>(SI.getCondition())->getFastMathFlags(); in visitSelectInst()
/external/llvm/lib/Analysis/
DLoopUnrollAnalyzer.cpp83 SimplifyFPBinOp(I.getOpcode(), LHS, RHS, FI->getFastMathFlags(), DL); in visitBinaryOperator()
DCostModel.cpp509 FMF = FPMO->getFastMathFlags(); in getInstructionCost()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DLoopUnrollAnalyzer.cpp81 SimplifyBinOp(I.getOpcode(), LHS, RHS, FI->getFastMathFlags(), DL); in visitBinaryOperator()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DIVDescriptors.h203 FastMathFlags getFastMathFlags() { return FMF; } in getFastMathFlags() function
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DReassociate.cpp240 Res->setFastMathFlags(cast<FPMathOperator>(FlagsOp)->getFastMathFlags()); in CreateAdd()
252 Res->setFastMathFlags(cast<FPMathOperator>(FlagsOp)->getFastMathFlags()); in CreateMul()
263 Res->setFastMathFlags(cast<FPMathOperator>(FlagsOp)->getFastMathFlags()); in CreateNeg()
764 NewOp->setFastMathFlags(I->getFastMathFlags()); in RewriteExprTree()
786 FastMathFlags Flags = I->getFastMathFlags(); in RewriteExprTree()
1823 Builder.setFastMathFlags(FPI->getFastMathFlags()); in OptimizeMul()
/external/llvm/include/llvm/IR/
DInstruction.h310 FastMathFlags getFastMathFlags() const;
DOperator.h298 FastMathFlags getFastMathFlags() const { in getFastMathFlags() function
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DInstruction.h335 FastMathFlags getFastMathFlags() const;
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DIRBuilder.h216 FastMathFlags getFastMathFlags() const { return FMF; } in getFastMathFlags() function
1447 FMFSource->getFastMathFlags());
1472 FMFSource->getFastMathFlags());
1497 FMFSource->getFastMathFlags());
1522 FMFSource->getFastMathFlags());
1547 FMFSource->getFastMathFlags());
1571 UseFMF = FMFSource->getFastMathFlags();
1613 FMFSource->getFastMathFlags()),
2209 UseFMF = FMFSource->getFastMathFlags();
DInstruction.h430 FastMathFlags getFastMathFlags() const;
/external/tensorflow/tensorflow/compiler/xla/service/llvm_ir/
Dllvm_util.cc97 if (b->getFastMathFlags().noNaNs() || enable_fast_min_max) { in EmitFloatMax()
111 if (b->getFastMathFlags().noNaNs() || enable_fast_min_max) { in EmitFloatMin()
/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()

123