Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPURegBankCombiner.cpp286 if (!K0->Value.isExactlyValue(0.0) || !K1->Value.isExactlyValue(1.0)) in matchFPMinMaxToClamp()
334 return Op3->getOperand(1).getFPImm()->isExactlyValue(0.0); in matchFPMed3ToClamp()
390 return (KO_FPImm->isExactlyValue(0.0) && K1_FPImm->isExactlyValue(1.0)) || in isClampZeroToOne()
391 (KO_FPImm->isExactlyValue(1.0) && K1_FPImm->isExactlyValue(0.0)); in isClampZeroToOne()
H A DAMDGPULibCalls.cpp849 if (eltval->isExactlyValue(tr[i].input)) { in TDOFold()
880 if (CF->isExactlyValue(tr[i].input)) { in TDOFold()
933 if ((CF && CF->isExactlyValue(1.0)) || (CINT && ci_opr1 == 1)) { in fold_pow()
939 if ((CF && CF->isExactlyValue(2.0)) || (CINT && ci_opr1 == 2)) { in fold_pow()
947 if ((CF && CF->isExactlyValue(-1.0)) || (CINT && ci_opr1 == -1)) { in fold_pow()
959 if (CF && (CF->isExactlyValue(0.5) || CF->isExactlyValue(-0.5))) { in fold_pow()
961 bool issqrt = CF->isExactlyValue(0.5); in fold_pow()
H A DAMDGPUCodeGenPrepare.cpp920 if (CLHS->isExactlyValue(1.0) || (IsNegative = CLHS->isExactlyValue(-1.0))) { in optimizeWithRsq()
955 if (CLHS->isExactlyValue(1.0) || in optimizeWithRcp()
956 (IsNegative = CLHS->isExactlyValue(-1.0))) { in optimizeWithRcp()
1019 if (CNum->isExactlyValue(+1.0) || CNum->isExactlyValue(-1.0)) in optimizeWithFDivFast()
H A DAMDGPUInstructions.td751 [{return N->isExactlyValue(1.0);}]
756 [{return N->isExactlyValue(0.5);}]
H A DR600ISelLowering.cpp787 return CFP->isExactlyValue(1.0); in isHWTrueValue()
1582 } else if (C->isExactlyValue(1.0)) { in CompactSwizzlableVector()
H A DSIISelLowering.cpp10462 if (CLHS->isExactlyValue(1.0)) { in lowerFastUnsafeFDIV()
10479 if (CLHS->isExactlyValue(-1.0)) { in lowerFastUnsafeFDIV()
13121 if (K1->isExactlyValue(1.0) && K0->isExactlyValue(0.0)) in performFPMed3ImmCombine()
13257 return (CA->isExactlyValue(0.0) && CB->isExactlyValue(1.0)) || in isClampZeroToOne()
13258 (CA->isExactlyValue(1.0) && CB->isExactlyValue(0.0)); in isClampZeroToOne()
14412 if (CLHS->isExactlyValue(1.0) || in performFDivCombine()
14413 (IsNegative = CLHS->isExactlyValue(-1.0))) { in performFDivCombine()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCLowerMASSVEntries.cpp119 if (!CFP->isExactlyValue(0.75) && !CFP->isExactlyValue(0.25)) in handlePowSpecialCases()
122 if (CFP->isExactlyValue(0.25) && !CI->hasNoSignedZeros()) in handlePowSpecialCases()
H A DPPCRegisterInfo.td806 def fpimm0 : PatLeaf<(fpimm), [{ return N->isExactlyValue(+0.0); }]>;
807 def fpimm0neg : PatLeaf<(fpimm), [{return N->isExactlyValue(-0.0);}]>;
/freebsd/contrib/llvm-project/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.td537 def fpimm0 : PatLeaf<(fpimm), [{ return N->isExactlyValue(+0.0); }]>;
540 def fpimmneg0 : PatLeaf<(fpimm), [{ return N->isExactlyValue(-0.0); }]>;
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstants.h333 bool isExactlyValue(const APFloat &V) const;
335 bool isExactlyValue(double V) const { in isExactlyValue() function
339 return isExactlyValue(FV); in isExactlyValue()
H A DPatternMatch.h907 return CFP->isExactlyValue(Val); in match()
911 return CFP->isExactlyValue(Val); in match()
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DFloating.h94 bool isMinusOne() const { return F.isExactlyValue(-1.0); } in isMinusOne()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstrFragments.td854 return Imm.isExactlyValue(+0.0);
858 return Imm.isExactlyValue(-0.0);
862 return Imm.isExactlyValue(+1.0);
866 return Imm.isExactlyValue(-1.0);
H A DX86InstrFPStack.td
H A DX86InstrFragmentsSIMD.td1038 return N->isExactlyValue(+0.0);
1042 return N->isExactlyValue(+0.0);
1046 return N->isExactlyValue(+0.0);
1050 return N->isExactlyValue(+0.0);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp2122 if ((UseIntrinsic || !Ty->isVectorTy()) && BaseF->isExactlyValue(2.0) && in replacePowWithExp()
2169 if (BaseF->isExactlyValue(10.0) && in replacePowWithExp()
2240 (!ExpoF->isExactlyValue(0.5) && !ExpoF->isExactlyValue(-0.5))) in replacePowWithSqrt()
2339 !ExpoF->isExactlyValue(0.5) && !ExpoF->isExactlyValue(-0.5)) { in optimizePow()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DSelectionDAGNodes.h1741 bool isExactlyValue(double V) const {
1742 return Value->getValueAPF().isExactlyValue(V);
1744 bool isExactlyValue(const APFloat& V) const;
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsInstrFPU.td91 return N->isExactlyValue(+0.0);
95 return N->isExactlyValue(-0.0);
H A DMipsSEISelDAGToDAG.cpp781 if (Node->getValueType(0) == MVT::f64 && CN->isExactlyValue(+0.0)) { in trySelect()
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/
H A DCSKYInstrInfoF1.td47 def fpimm0 : PatLeaf<(fpimm), [{ return N->isExactlyValue(+0.0); }]>;
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPFloat.h1337 bool isExactlyValue(double V) const { in isExactlyValue() function
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp16469 if (C->isExactlyValue(+1.0)) in visitFMULForFMADistributiveCombine()
16472 if (C->isExactlyValue(-1.0)) in visitFMULForFMADistributiveCombine()
16492 if (C0->isExactlyValue(+1.0)) in visitFMULForFMADistributiveCombine()
16496 if (C0->isExactlyValue(-1.0)) in visitFMULForFMADistributiveCombine()
16502 if (C1->isExactlyValue(+1.0)) in visitFMULForFMADistributiveCombine()
16505 if (C1->isExactlyValue(-1.0)) in visitFMULForFMADistributiveCombine()
16585 return C && C->isExactlyValue(-2.0); in visitFADD()
17004 if (N1CFP && N1CFP->isExactlyValue(+2.0)) in visitFMUL()
17008 if (N1CFP && N1CFP->isExactlyValue(-1.0)) { in visitFMUL()
17047 cast<ConstantFPSDNode>(Cond.getOperand(1))->isExactlyValue(0.0)) { in visitFMUL()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchInstrInfo.td489 def fpimm0 : PatLeaf<(fpimm), [{return N->isExactlyValue(+0.0);}]>;
490 def fpimm0neg : PatLeaf<(fpimm), [{return N->isExactlyValue(-0.0);}]>;
491 def fpimm1 : PatLeaf<(fpimm), [{return N->isExactlyValue(+1.0);}]>;
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstants.cpp99 return CFP->isExactlyValue(+0.0); in isNullValue()
1100 bool ConstantFP::isExactlyValue(const APFloat &V) const { in isExactlyValue() function in ConstantFP

12