Home
last modified time | relevance | path

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

12

/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DInstruction.cpp149 assert(isa<FPMathOperator>(this) && "setting fast-math flag on invalid op"); in setFast()
150 cast<FPMathOperator>(this)->setFast(B); in setFast()
154 assert(isa<FPMathOperator>(this) && "setting fast-math flag on invalid op"); in setHasAllowReassoc()
155 cast<FPMathOperator>(this)->setHasAllowReassoc(B); in setHasAllowReassoc()
159 assert(isa<FPMathOperator>(this) && "setting fast-math flag on invalid op"); in setHasNoNaNs()
160 cast<FPMathOperator>(this)->setHasNoNaNs(B); in setHasNoNaNs()
164 assert(isa<FPMathOperator>(this) && "setting fast-math flag on invalid op"); in setHasNoInfs()
165 cast<FPMathOperator>(this)->setHasNoInfs(B); in setHasNoInfs()
169 assert(isa<FPMathOperator>(this) && "setting fast-math flag on invalid op"); in setHasNoSignedZeros()
170 cast<FPMathOperator>(this)->setHasNoSignedZeros(B); in setHasNoSignedZeros()
[all …]
/external/llvm/lib/IR/
DInstruction.cpp127 assert(isa<FPMathOperator>(this) && "setting fast-math flag on invalid op"); in setHasUnsafeAlgebra()
128 cast<FPMathOperator>(this)->setHasUnsafeAlgebra(B); in setHasUnsafeAlgebra()
134 assert(isa<FPMathOperator>(this) && "setting fast-math flag on invalid op"); in setHasNoNaNs()
135 cast<FPMathOperator>(this)->setHasNoNaNs(B); in setHasNoNaNs()
141 assert(isa<FPMathOperator>(this) && "setting fast-math flag on invalid op"); in setHasNoInfs()
142 cast<FPMathOperator>(this)->setHasNoInfs(B); in setHasNoInfs()
149 assert(isa<FPMathOperator>(this) && "setting fast-math flag on invalid op"); in setHasNoSignedZeros()
150 cast<FPMathOperator>(this)->setHasNoSignedZeros(B); in setHasNoSignedZeros()
157 assert(isa<FPMathOperator>(this) && "setting fast-math flag on invalid op"); in setHasAllowReciprocal()
158 cast<FPMathOperator>(this)->setHasAllowReciprocal(B); in setHasAllowReciprocal()
[all …]
/external/llvm/lib/Transforms/Scalar/
DReassociate.cpp131 (!isa<FPMathOperator>(V) || in isReassociableOp()
142 (!isa<FPMathOperator>(V) || in isReassociableOp()
224 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()
552 || (isa<FPMathOperator>(Op) && in LinearizeExprTree()
761 if (isa<FPMathOperator>(I)) { in RewriteExprTree()
1946 NI->setFastMathFlags(cast<FPMathOperator>(User)->getFastMathFlags()); in canonicalizeNegConstExpr()
1950 NI->setFastMathFlags(cast<FPMathOperator>(User)->getFastMathFlags()); in canonicalizeNegConstExpr()
DFloat2Int.cpp315 (F.isZero() && F.isNegative() && isa<FPMathOperator>(I) && in walkForwards()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DReassociate.cpp150 if (!isa<FPMathOperator>(I) || I->isFast()) in isReassociableOp()
160 if (!isa<FPMathOperator>(I) || I->isFast()) in isReassociableOp()
239 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()
568 || (isa<FPMathOperator>(Op) && in LinearizeExprTree()
778 if (isa<FPMathOperator>(I)) { in RewriteExprTree()
1806 if (auto FPI = dyn_cast<FPMathOperator>(I)) in OptimizeMul()
1993 NI->setFastMathFlags(cast<FPMathOperator>(User)->getFastMathFlags()); in canonicalizeNegConstExpr()
1997 NI->setFastMathFlags(cast<FPMathOperator>(User)->getFastMathFlags()); in canonicalizeNegConstExpr()
DFloat2Int.cpp300 (F.isZero() && F.isNegative() && isa<FPMathOperator>(I) && in walkForwards()
/external/llvm/include/llvm/IR/
DOperator.h166 friend class FPMathOperator;
216 class FPMathOperator : public Operator {
DIRBuilder.h1004 if (isa<FPMathOperator>(BinOp))
1556 if (isa<FPMathOperator>(CI))
1565 if (isa<FPMathOperator>(CI))
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Utils/
DLoopUtils.h320 return InductionBinOp && !cast<FPMathOperator>(InductionBinOp)->isFast(); in hasUnsafeAlgebra()
326 if (!InductionBinOp || cast<FPMathOperator>(InductionBinOp)->isFast()) in getUnsafeAlgebraInst()
/external/llvm/unittests/IR/
DInstructionsTest.cpp397 TEST(InstructionsTest, FPMathOperator) { in TEST() argument
404 EXPECT_TRUE(isa<FPMathOperator>(V1)); in TEST()
405 FPMathOperator *O1 = cast<FPMathOperator>(V1); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DOperator.h162 friend class FPMathOperator;
240 class FPMathOperator : public Operator {
DIRBuilder.h1251 if (isa<FPMathOperator>(BinOp))
1882 if (isa<FPMathOperator>(CI))
1891 if (isa<FPMathOperator>(CI))
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DLoopUnrollAnalyzer.cpp80 if (auto FI = dyn_cast<FPMathOperator>(&I)) in visitBinaryOperator()
DValueTracking.cpp2706 if (auto *FPO = dyn_cast<FPMathOperator>(Op)) in CannotBeNegativeZero()
2786 (!SignBitOnly || cast<FPMathOperator>(I)->hasNoNaNs())) in cannotBeOrderedLessThanZeroImpl()
2870 (!SignBitOnly || cast<FPMathOperator>(I)->hasNoNaNs()) && in cannotBeOrderedLessThanZeroImpl()
2892 if (auto *FPMathOp = dyn_cast<FPMathOperator>(V)) in isKnownNeverNaN()
4821 if (isa<FPMathOperator>(CmpI)) in matchSelectPattern()
DTargetTransformInfo.cpp1134 if (auto *FPMO = dyn_cast<FPMathOperator>(II)) in getInstructionThroughput()
/external/llvm/lib/Analysis/
DLoopUnrollAnalyzer.cpp81 if (auto FI = dyn_cast<FPMathOperator>(&I)) in visitBinaryOperator()
DCostModel.cpp508 if (auto *FPMO = dyn_cast<FPMathOperator>(II)) in getInstructionCost()
DInlineCost.cpp767 if (auto FI = dyn_cast<FPMathOperator>(&I)) in visitBinaryOperator()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/
DInstructionsTest.cpp409 TEST(InstructionsTest, FPMathOperator) { in TEST() argument
416 EXPECT_TRUE(isa<FPMathOperator>(V1)); in TEST()
417 FPMathOperator *O1 = cast<FPMathOperator>(V1); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp221 FPMathOperator *FPMO = dyn_cast<FPMathOperator>(&I); in ClearSubclassDataAfterReassociation()
416 if (isa<FPMathOperator>(NewBO)) { in SimplifyAssociativeOrCommutative()
728 if (isa<FPMathOperator>(&I)) in SimplifySelectsFeedingBinaryOp()
804 if (FPInst && isa<FPMathOperator>(FPInst)) in foldOperationIntoSelectOperand()
876 if (FPInst && isa<FPMathOperator>(FPInst)) in foldOperationIntoPhiValue()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DAMDGPUCodeGenPrepare.cpp424 const FPMathOperator *FPOp = cast<const FPMathOperator>(&FDiv); in visitFDiv()
DAMDGPULibCalls.cpp489 if (auto Op = dyn_cast<FPMathOperator>(CI)) in isUnsafeMath()
659 if (const FPMathOperator *FPOp = dyn_cast<const FPMathOperator>(CI)) in fold()
/external/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp154 FPMathOperator *FPMO = dyn_cast<FPMathOperator>(&I); in ClearSubclassDataAfterReassociation()
306 if (isa<FPMathOperator>(New)) { in SimplifyAssociativeOrCommutative()
719 if (FPInst && isa<FPMathOperator>(FPInst)) in FoldOperationIntoSelectOperand()
DInstCombineSelect.cpp1119 auto FMF = cast<FPMathOperator>(SI.getCondition())->getFastMathFlags(); in visitSelectInst()
DInstCombineVectorOps.cpp743 if (isa<FPMathOperator>(BO)) in buildNew()

12