| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Instruction.cpp | 168 if (isa<FPMathOperator>(this)) { in dropPoisonGeneratingFlags() 201 cast<FPMathOperator>(this)->setFast(B); in setFast() 211 cast<FPMathOperator>(this)->setHasNoNaNs(B); in setHasNoNaNs() 216 cast<FPMathOperator>(this)->setHasNoInfs(B); in setHasNoInfs() 251 return cast<FPMathOperator>(this)->isFast(); in isFast() 261 return cast<FPMathOperator>(this)->hasNoNaNs(); in hasNoNaNs() 266 return cast<FPMathOperator>(this)->hasNoInfs(); in hasNoInfs() 313 if (auto *FP = dyn_cast<FPMathOperator>(V)) in copyIRFlags() 314 if (isa<FPMathOperator>(this)) in copyIRFlags() 334 if (auto *FP = dyn_cast<FPMathOperator>(V)) { in andIRFlags() [all …]
|
| H A D | Operator.cpp | 41 if (const auto *FP = dyn_cast<FPMathOperator>(this)) in hasPoisonGeneratingFlags()
|
| H A D | IRBuilder.cpp | 962 if (isa<FPMathOperator>(C)) in CreateConstrainedFPCast() 1031 if (isa<FPMathOperator>(Sel)) in CreateSelect()
|
| /llvm-project-15.0.7/llvm/lib/Target/PowerPC/ |
| H A D | PPCGenScalarMASSEntries.cpp | 66 if (!isa<FPMathOperator>(CI)) in isCandidateSafeToLower() 76 if (!isa<FPMathOperator>(CI)) in isFiniteCallSafe()
|
| /llvm-project-15.0.7/llvm/unittests/IR/ |
| H A D | InstructionsTest.cpp | 559 TEST(InstructionsTest, FPMathOperator) { in TEST() argument 566 EXPECT_TRUE(isa<FPMathOperator>(V1)); in TEST() 567 FPMathOperator *O1 = cast<FPMathOperator>(V1); in TEST() 1417 EXPECT_FALSE(isa<FPMathOperator>(I)); in TEST() 1420 EXPECT_TRUE(isa<FPMathOperator>(FP)); in TEST() 1431 EXPECT_FALSE(isa<FPMathOperator>(ICall)); in TEST() 1437 EXPECT_FALSE(isa<FPMathOperator>(VICall)); in TEST() 1443 EXPECT_FALSE(isa<FPMathOperator>(AICall)); in TEST() 1449 EXPECT_TRUE(isa<FPMathOperator>(FCall)); in TEST() 1455 EXPECT_TRUE(isa<FPMathOperator>(VFCall)); in TEST() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | FMF.h | 23 friend class FPMathOperator;
|
| H A D | Operator.h | 167 class FPMathOperator : public Operator {
|
| H A D | IRBuilder.h | 1543 if (isa<FPMathOperator>(BinOp)) 1618 if (isa<FPMathOperator>(UnOp)) 2224 if (isa<FPMathOperator>(Phi)) 2235 if (isa<FPMathOperator>(CI)) 2246 if (isa<FPMathOperator>(CI))
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | Reassociate.cpp | 150 assert(I && isa<FPMathOperator>(I) && "Should only check FP ops"); in hasFPAssociativeFlags() 159 if (!isa<FPMathOperator>(BO) || hasFPAssociativeFlags(BO)) in isReassociableOp() 169 if (!isa<FPMathOperator>(BO) || hasFPAssociativeFlags(BO)) in isReassociableOp() 248 Res->setFastMathFlags(cast<FPMathOperator>(FlagsOp)->getFastMathFlags()); in CreateAdd() 260 Res->setFastMathFlags(cast<FPMathOperator>(FlagsOp)->getFastMathFlags()); in CreateMul() 584 || (isa<FPMathOperator>(Op) && in LinearizeExprTree() 781 if (isa<FPMathOperator>(NewOp)) in RewriteExprTree() 803 if (isa<FPMathOperator>(I)) { in RewriteExprTree() 1936 if (auto FPI = dyn_cast<FPMathOperator>(I)) in OptimizeMul() 2230 if (isa<FPMathOperator>(I) && !hasFPAssociativeFlags(I)) in OptimizeInst()
|
| H A D | Float2Int.cpp | 264 (F.isZero() && F.isNegative() && isa<FPMathOperator>(I) && in calcRange()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | ReplaceWithVeclib.cpp | 80 if (isa<FPMathOperator>(Replacement)) { in replaceWithTLIFunction()
|
| H A D | ExpandReductions.cpp | 107 isa<FPMathOperator>(II) ? II->getFastMathFlags() : FastMathFlags{}; in expandReductions()
|
| H A D | ExpandVectorPredication.cpp | 102 if (!NewInst || !isa<FPMathOperator>(NewVal)) in transferDecorations() 105 auto *OldFMOp = dyn_cast<FPMathOperator>(&VPI); in transferDecorations()
|
| H A D | MachineInstr.cpp | 524 if (const FPMathOperator *FP = dyn_cast<FPMathOperator>(&I)) { in copyFlagsFromInstruction()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | LoopUnrollAnalyzer.cpp | 88 if (auto FI = dyn_cast<FPMathOperator>(&I)) in visitBinaryOperator()
|
| H A D | IVDescriptors.cpp | 386 if (isa<FPMathOperator>(ReduxDesc.getPatternInst()) && !IsAPhi) { in AddReductionVar() 800 (isa<FPMathOperator>(I) && I->hasNoNaNs() && in isRecurrenceInstr()
|
| H A D | InlineCost.cpp | 1981 if (auto FI = dyn_cast<FPMathOperator>(&I)) in visitBinaryOperator() 2017 COp ? COp : Op, cast<FPMathOperator>(I).getFastMathFlags(), DL); in visitFNeg()
|
| H A D | ValueTracking.cpp | 3599 (!SignBitOnly || cast<FPMathOperator>(I)->hasNoNaNs())) in cannotBeOrderedLessThanZeroImpl() 3610 (!SignBitOnly || cast<FPMathOperator>(I)->hasNoNaNs())) in cannotBeOrderedLessThanZeroImpl() 3714 (!SignBitOnly || cast<FPMathOperator>(I)->hasNoNaNs()) && in cannotBeOrderedLessThanZeroImpl() 3737 if (auto *FPMathOp = dyn_cast<FPMathOperator>(V)) in isKnownNeverInfinity() 3801 if (auto *FPMathOp = dyn_cast<FPMathOperator>(V)) in isKnownNeverNaN() 6371 if (isa<FPMathOperator>(CmpI)) in matchDecomposedSelectPattern()
|
| H A D | IRSimilarityIdentifier.cpp | 797 if (IA->isCommutative() && !isa<FPMathOperator>(IA) && in compareStructure()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUCodeGenPrepare.cpp | 640 if (const FPMathOperator *FPOp = dyn_cast<const FPMathOperator>(&BO)) in foldBinOpIntoSelect() 773 const FPMathOperator *FPOp = cast<const FPMathOperator>(&FDiv); in visitFDiv()
|
| H A D | AMDGPULibCalls.cpp | 447 if (auto Op = dyn_cast<FPMathOperator>(CI)) in isUnsafeMath() 609 if (const FPMathOperator *FPOp = dyn_cast<const FPMathOperator>(CI)) in fold()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstructionCombining.cpp | 312 FPMathOperator *FPMO = dyn_cast<FPMathOperator>(&I); in ClearSubclassDataAfterReassociation() 539 if (isa<FPMathOperator>(NewBO)) { in SimplifyAssociativeOrCommutative() 870 if (isa<FPMathOperator>(&I)) { in SimplifySelectsFeedingBinaryOp() 1147 if (FPInst && isa<FPMathOperator>(FPInst)) in foldOperationIntoPhiValue() 1868 if (isa<FPMathOperator>(R)) { in foldVectorBinop()
|
| H A D | InstCombineSelect.cpp | 100 if (isa<FPMathOperator>(BO)) in foldSelectBinOpIdentity() 459 if (isa<FPMathOperator>(&SI)) in foldSelectIntoOp() 472 if (isa<FPMathOperator>(&SI)) in foldSelectIntoOp() 2985 cast<FPMathOperator>(SI.getCondition())->getFastMathFlags(); in visitSelectInst() 3002 if (isa<FPMathOperator>(SI) && SI.hasNoNaNs() && SI.hasNoSignedZeros()) { in visitSelectInst()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAGBuilder.cpp | 3124 if (auto *FPOp = dyn_cast<FPMathOperator>(&I)) in visitUnary() 3141 if (auto *FPOp = dyn_cast<FPMathOperator>(&I)) in visitBinary() 3238 auto *FPMO = cast<FPMathOperator>(&I); in visitFCmp() 3278 if (auto *FPOp = dyn_cast<FPMathOperator>(&I)) in visitSelect() 4823 if (auto *FPMO = dyn_cast<FPMathOperator>(&I)) in visitTargetIntrinsic() 5799 if (auto *FPOp = dyn_cast<FPMathOperator>(&I)) in visitIntrinsicCall() 6368 Flags.copyFMF(*cast<FPMathOperator>(&I)); in visitIntrinsicCall() 7311 if (auto *FPOp = dyn_cast<FPMathOperator>(&FPI)) in visitConstrainedFPIntrinsic() 8167 Flags.copyFMF(cast<FPMathOperator>(I)); in visitUnaryFloatCall() 8187 Flags.copyFMF(cast<FPMathOperator>(I)); in visitBinaryFloatCall() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Bitcode/Reader/ |
| H A D | BitcodeReader.cpp | 4674 if (isa<FPMathOperator>(I)) { in parseFunctionBody() 4713 } else if (isa<FPMathOperator>(I)) { in parseFunctionBody() 4968 if (OpNum < Record.size() && isa<FPMathOperator>(I)) { in parseFunctionBody() 5600 if ((Record.size() - 1) % 2 == 1 && !isa<FPMathOperator>(PN)) { in parseFunctionBody() 5661 assert(isa<FPMathOperator>(I) && "Unexpected phi type"); in parseFunctionBody() 6241 if (!isa<FPMathOperator>(I)) in parseFunctionBody()
|