Home
last modified time | relevance | path

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

/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()
DInstructionCombining.cpp160 FastMathFlags FMF = I.getFastMathFlags(); in ClearSubclassDataAfterReassociation()
307 FastMathFlags Flags = I.getFastMathFlags(); in SimplifyAssociativeOrCommutative()
308 Flags &= Op0->getFastMathFlags(); in SimplifyAssociativeOrCommutative()
309 Flags &= Op1->getFastMathFlags(); in SimplifyAssociativeOrCommutative()
DInstCombineCompares.cpp4550 I.getFastMathFlags(), DL, TLI, DT, AC, &I)) in visitFCmpInst()
/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()
DGVN.cpp1724 CmpI->getFastMathFlags().noNaNs())) { in processAssumeIntrinsic()
/external/llvm/lib/Analysis/
DLoopUnrollAnalyzer.cpp83 SimplifyFPBinOp(I.getOpcode(), LHS, RHS, FI->getFastMathFlags(), DL); in visitBinaryOperator()
DCostModel.cpp509 FMF = FPMO->getFastMathFlags(); in getInstructionCost()
DInstructionSimplify.cpp4097 I->getFastMathFlags(), DL, TLI, DT, AC, I); in SimplifyInstruction()
4107 I->getFastMathFlags(), DL, TLI, DT, AC, I); in SimplifyInstruction()
4117 I->getFastMathFlags(), DL, TLI, DT, AC, I); in SimplifyInstruction()
4133 I->getFastMathFlags(), DL, TLI, DT, AC, I); in SimplifyInstruction()
4145 I->getFastMathFlags(), DL, TLI, DT, AC, I); in SimplifyInstruction()
4183 I->getFastMathFlags(), DL, TLI, DT, AC, I); in SimplifyInstruction()
DInlineCost.cpp769 SimplifyFPBinOp(I.getOpcode(), LHS, RHS, FI->getFastMathFlags(), DL); in visitBinaryOperator()
DValueTracking.cpp3914 FMF = CmpI->getFastMathFlags(); in matchSelectPattern()
/external/llvm/include/llvm/IR/
DInstruction.h310 FastMathFlags getFastMathFlags() const;
DOperator.h298 FastMathFlags getFastMathFlags() const { in getFastMathFlags() function
DIRBuilder.h193 FastMathFlags getFastMathFlags() const { return FMF; } in getFastMathFlags() function
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DInstruction.h335 FastMathFlags getFastMathFlags() const;
/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.cc105 if (ir_builder->getFastMathFlags().noNaNs()) { in EmitFloatMax()
116 if (ir_builder->getFastMathFlags().noNaNs()) { in EmitFloatMin()
/external/llvm/lib/Transforms/Vectorize/
DBBVectorize.cpp1129 FMFCI = FPMOCI->getFastMathFlags(); in areInstsCompatible()
1141 FMFCJ = FPMOCJ->getFastMathFlags(); in areInstsCompatible()
DSLPVectorizer.cpp1712 FMF = FPMO->getFastMathFlags(); in getEntryCost()
DLoopVectorize.cpp3337 FMF = FPMO->getFastMathFlags(); in getVectorIntrinsicCost()
/external/tensorflow/tensorflow/compiler/xla/service/
Delemental_ir_emitter.cc150 if (!ir_builder->getFastMathFlags().noNaNs()) { in EmitReducePrecisionFloat()
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.cpp2486 if (FPOp->getFastMathFlags().unsafeAlgebra()) in isVectorReductionOp()
2532 if (!isa<PHINode>(FPOp) && !FPOp->getFastMathFlags().unsafeAlgebra()) in isVectorReductionOp()
2609 FMF = FPOp->getFastMathFlags(); in visitBinary()