Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPURegBankCombiner.cpp246 if (!K0->Value.isExactlyValue(0.0) || !K1->Value.isExactlyValue(1.0)) in matchFPMinMaxToClamp()
297 return Op3->getOperand(1).getFPImm()->isExactlyValue(0.0); in matchFPMed3ToClamp()
352 return (KO_FPImm->isExactlyValue(0.0) && K1_FPImm->isExactlyValue(1.0)) || in isClampZeroToOne()
353 (KO_FPImm->isExactlyValue(1.0) && K1_FPImm->isExactlyValue(0.0)); in isClampZeroToOne()
H A DAMDGPULibCalls.cpp708 if (eltval->isExactlyValue(tr[i].input)) { in TDOFold()
740 if (CF->isExactlyValue(tr[i].input)) { in TDOFold()
850 if ((CF && CF->isExactlyValue(1.0)) || (CINT && ci_opr1 == 1)) { in fold_pow()
856 if ((CF && CF->isExactlyValue(2.0)) || (CINT && ci_opr1 == 2)) { in fold_pow()
864 if ((CF && CF->isExactlyValue(-1.0)) || (CINT && ci_opr1 == -1)) { in fold_pow()
877 if (CF && (CF->isExactlyValue(0.5) || CF->isExactlyValue(-0.5))) { in fold_pow()
879 bool issqrt = CF->isExactlyValue(0.5); in fold_pow()
1155 if (CF0 && CF0->isExactlyValue(1.0f)) { in fold_fma_mad()
1163 if (CF1 && CF1->isExactlyValue(1.0f)) { in fold_fma_mad()
H A DAMDGPUCodeGenPrepare.cpp670 if (CLHS->isExactlyValue(1.0)) { in optimizeWithRcp()
689 if (CLHS->isExactlyValue(-1.0)) { in optimizeWithRcp()
733 if (CNum->isExactlyValue(+1.0) || CNum->isExactlyValue(-1.0)) in optimizeWithFDivFast()
H A DAMDGPUInstructions.td653 [{return N->isExactlyValue(1.0);}]
658 [{return N->isExactlyValue(0.5);}]
H A DR600ISelLowering.cpp787 return CFP->isExactlyValue(1.0); in isHWTrueValue()
1564 } else if (C->isExactlyValue(1.0)) { in CompactSwizzlableVector()
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DPPCLowerMASSVEntries.cpp117 if (!CFP->isExactlyValue(0.75) && !CFP->isExactlyValue(0.25)) in handlePowSpecialCases()
120 if (CFP->isExactlyValue(0.25) && !CI->hasNoSignedZeros()) in handlePowSpecialCases()
/llvm-project-15.0.7/mlir/lib/Dialect/Math/Transforms/
H A DAlgebraicSimplification.cpp55 return scalarExponent.getValue().isExactlyValue(value); in matchAndRewrite()
60 .isExactlyValue(value); in matchAndRewrite()
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/
H A DSystemZTDC.cpp146 } else if (Const->isExactlyValue(Smallest)) { in convertFCmp()
152 } else if (Const->isExactlyValue(NegSmallest)) { in convertFCmp()
H A DSystemZOperands.td523 def fpimm0 : PatLeaf<(fpimm), [{ return N->isExactlyValue(+0.0); }]>;
526 def fpimmneg0 : PatLeaf<(fpimm), [{ return N->isExactlyValue(-0.0); }]>;
/llvm-project-15.0.7/llvm/tools/llvm-reduce/deltas/
H A DReduceOperands.cpp48 ((C->isZero() && !C->isNegative()) || C->isExactlyValue(1.0)); in isZeroOrOneFP()
/llvm-project-15.0.7/llvm/unittests/IR/
H A DMDBuilderTest.cpp42 EXPECT_TRUE(Val->isExactlyValue(1.0)); in TEST_F()
/llvm-project-15.0.7/mlir/lib/Dialect/Tosa/IR/
H A DTosaCanonicalizations.cpp212 input1Attr.getSplatValue<APFloat>().isExactlyValue(1)) { in matchAndRewrite()
228 input2Attr.getSplatValue<APFloat>().isExactlyValue(1)) { in matchAndRewrite()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DConstants.h319 bool isExactlyValue(const APFloat &V) const;
321 bool isExactlyValue(double V) const { in isExactlyValue() function
325 return isExactlyValue(FV); in isExactlyValue()
/llvm-project-15.0.7/llvm/unittests/AsmParser/
H A DAsmParserTest.cpp80 EXPECT_TRUE(cast<ConstantFP>(V)->isExactlyValue(3.5)); in TEST()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86InstrFPStack.td107 return Imm.isExactlyValue(+0.0);
111 return Imm.isExactlyValue(-0.0);
115 return Imm.isExactlyValue(+1.0);
119 return Imm.isExactlyValue(-1.0);
H A DX86InstrFragmentsSIMD.td1033 return N->isExactlyValue(+0.0);
1037 return N->isExactlyValue(+0.0);
1041 return N->isExactlyValue(+0.0);
1045 return N->isExactlyValue(+0.0);
/llvm-project-15.0.7/llvm/lib/Target/LoongArch/
H A DLoongArchInstrInfo.td175 def fpimm0 : PatLeaf<(fpimm), [{return N->isExactlyValue(+0.0);}]>;
176 def fpimm0neg : PatLeaf<(fpimm), [{return N->isExactlyValue(-0.0);}]>;
177 def fpimm1 : PatLeaf<(fpimm), [{return N->isExactlyValue(+1.0);}]>;
/llvm-project-15.0.7/llvm/lib/Target/RISCV/
H A DRISCVInstrInfoF.td470 def fpimm0 : PatLeaf<(fpimm), [{ return N->isExactlyValue(+0.0); }]>;
471 def fpimmneg0 : PatLeaf<(fpimm), [{ return N->isExactlyValue(-0.0); }]>;
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DSelectionDAGNodes.h1652 bool isExactlyValue(double V) const {
1653 return Value->getValueAPF().isExactlyValue(V);
1655 bool isExactlyValue(const APFloat& V) const;
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp1930 (!ExpoF->isExactlyValue(0.5) && !ExpoF->isExactlyValue(-0.5))) in replacePowWithSqrt()
2030 !ExpoF->isExactlyValue(0.5) && !ExpoF->isExactlyValue(-0.5)) { in optimizePow()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp2211 return C->isExactlyValue(1.0); in foldSelectWithIdentityConstant()
14541 if (C->isExactlyValue(+1.0)) in visitFMULForFMADistributiveCombine()
14544 if (C->isExactlyValue(-1.0)) in visitFMULForFMADistributiveCombine()
14564 if (C0->isExactlyValue(+1.0)) in visitFMULForFMADistributiveCombine()
14568 if (C0->isExactlyValue(-1.0)) in visitFMULForFMADistributiveCombine()
14574 if (C1->isExactlyValue(+1.0)) in visitFMULForFMADistributiveCombine()
14577 if (C1->isExactlyValue(-1.0)) in visitFMULForFMADistributiveCombine()
15000 if (TrueOpnd->isExactlyValue(-1.0) && FalseOpnd->isExactlyValue(1.0) && in visitFMUL()
15004 if (TrueOpnd->isExactlyValue(1.0) && FalseOpnd->isExactlyValue(-1.0)) in visitFMUL()
15096 if (N1CFP->isExactlyValue(1.0)) in visitFMA()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/Mips/
H A DMipsInstrFPU.td91 return N->isExactlyValue(+0.0);
95 return N->isExactlyValue(-0.0);
H A DMipsSEISelDAGToDAG.cpp771 if (Node->getValueType(0) == MVT::f64 && CN->isExactlyValue(+0.0)) { in trySelect()
/llvm-project-15.0.7/llvm/lib/Target/CSKY/
H A DCSKYInstrInfoF1.td47 def fpimm0 : PatLeaf<(fpimm), [{ return N->isExactlyValue(+0.0); }]>;
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DAPFloat.h1198 bool isExactlyValue(double V) const { in isExactlyValue() function

12