Home
last modified time | relevance | path

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

12

/freebsd-14.2/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()
392 return (KO_FPImm->isExactlyValue(0.0) && K1_FPImm->isExactlyValue(1.0)) || in isClampZeroToOne()
393 (KO_FPImm->isExactlyValue(1.0) && K1_FPImm->isExactlyValue(0.0)); in isClampZeroToOne()
H A DAMDGPULibCalls.cpp835 if (eltval->isExactlyValue(tr[i].input)) { in TDOFold()
867 if (CF->isExactlyValue(tr[i].input)) { in TDOFold()
920 if ((CF && CF->isExactlyValue(1.0)) || (CINT && ci_opr1 == 1)) { in fold_pow()
926 if ((CF && CF->isExactlyValue(2.0)) || (CINT && ci_opr1 == 2)) { in fold_pow()
934 if ((CF && CF->isExactlyValue(-1.0)) || (CINT && ci_opr1 == -1)) { in fold_pow()
946 if (CF && (CF->isExactlyValue(0.5) || CF->isExactlyValue(-0.5))) { in fold_pow()
948 bool issqrt = CF->isExactlyValue(0.5); in fold_pow()
H A DAMDGPUCodeGenPrepare.cpp918 if (CLHS->isExactlyValue(1.0) || (IsNegative = CLHS->isExactlyValue(-1.0))) { in optimizeWithRsq()
953 if (CLHS->isExactlyValue(1.0) || in optimizeWithRcp()
954 (IsNegative = CLHS->isExactlyValue(-1.0))) { in optimizeWithRcp()
1017 if (CNum->isExactlyValue(+1.0) || CNum->isExactlyValue(-1.0)) in optimizeWithFDivFast()
H A DAMDGPUInstructions.td748 [{return N->isExactlyValue(1.0);}]
753 [{return N->isExactlyValue(0.5);}]
H A DR600ISelLowering.cpp789 return CFP->isExactlyValue(1.0); in isHWTrueValue()
1584 } else if (C->isExactlyValue(1.0)) { in CompactSwizzlableVector()
H A DSIISelLowering.cpp10273 if (CLHS->isExactlyValue(1.0)) { in lowerFastUnsafeFDIV()
10290 if (CLHS->isExactlyValue(-1.0)) { in lowerFastUnsafeFDIV()
12845 if (K1->isExactlyValue(1.0) && K0->isExactlyValue(0.0)) in performFPMed3ImmCombine()
12959 return (CA->isExactlyValue(0.0) && CB->isExactlyValue(1.0)) || in isClampZeroToOne()
12960 (CA->isExactlyValue(1.0) && CB->isExactlyValue(0.0)); in isClampZeroToOne()
14097 if (CLHS->isExactlyValue(1.0) || in performFDivCombine()
14098 (IsNegative = CLHS->isExactlyValue(-1.0))) { in performFDivCombine()
/freebsd-14.2/contrib/llvm-project/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()
H A DPPCRegisterInfo.td787 def fpimm0 : PatLeaf<(fpimm), [{ return N->isExactlyValue(+0.0); }]>;
788 def fpimm0neg : PatLeaf<(fpimm), [{return N->isExactlyValue(-0.0);}]>;
/freebsd-14.2/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-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstants.h317 bool isExactlyValue(const APFloat &V) const;
319 bool isExactlyValue(double V) const { in isExactlyValue() function
323 return isExactlyValue(FV); in isExactlyValue()
H A DPatternMatch.h812 return CFP->isExactlyValue(Val); in match()
816 return CFP->isExactlyValue(Val); in match()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/Interp/
H A DFloating.h94 bool isMinusOne() const { return F.isExactlyValue(-1.0); } in isMinusOne()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstrFragments.td828 return Imm.isExactlyValue(+0.0);
832 return Imm.isExactlyValue(-0.0);
836 return Imm.isExactlyValue(+1.0);
840 return Imm.isExactlyValue(-1.0);
H A DX86InstrFragmentsSIMD.td1049 return N->isExactlyValue(+0.0);
1053 return N->isExactlyValue(+0.0);
1057 return N->isExactlyValue(+0.0);
1061 return N->isExactlyValue(+0.0);
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DSelectionDAGNodes.h1700 bool isExactlyValue(double V) const {
1701 return Value->getValueAPF().isExactlyValue(V);
1703 bool isExactlyValue(const APFloat& V) const;
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp2157 (!ExpoF->isExactlyValue(0.5) && !ExpoF->isExactlyValue(-0.5))) in replacePowWithSqrt()
2258 !ExpoF->isExactlyValue(0.5) && !ExpoF->isExactlyValue(-0.5)) { in optimizePow()
/freebsd-14.2/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.cpp769 if (Node->getValueType(0) == MVT::f64 && CN->isExactlyValue(+0.0)) { in trySelect()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPFloat.h1278 bool isExactlyValue(double V) const { in isExactlyValue() function
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/CSKY/
H A DCSKYInstrInfoF1.td47 def fpimm0 : PatLeaf<(fpimm), [{ return N->isExactlyValue(+0.0); }]>;
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp16167 if (C->isExactlyValue(+1.0)) in visitFMULForFMADistributiveCombine()
16170 if (C->isExactlyValue(-1.0)) in visitFMULForFMADistributiveCombine()
16190 if (C0->isExactlyValue(+1.0)) in visitFMULForFMADistributiveCombine()
16194 if (C0->isExactlyValue(-1.0)) in visitFMULForFMADistributiveCombine()
16200 if (C1->isExactlyValue(+1.0)) in visitFMULForFMADistributiveCombine()
16203 if (C1->isExactlyValue(-1.0)) in visitFMULForFMADistributiveCombine()
16763 if (TrueOpnd->isExactlyValue(-1.0) && FalseOpnd->isExactlyValue(1.0) && in visitFMUL()
16767 if (TrueOpnd->isExactlyValue(1.0) && FalseOpnd->isExactlyValue(-1.0)) in visitFMUL()
16870 if (N1CFP->isExactlyValue(1.0)) in visitFMA()
16873 if (N1CFP->isExactlyValue(-1.0) && in visitFMA()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchInstrInfo.td468 def fpimm0 : PatLeaf<(fpimm), [{return N->isExactlyValue(+0.0);}]>;
469 def fpimm0neg : PatLeaf<(fpimm), [{return N->isExactlyValue(-0.0);}]>;
470 def fpimm1 : PatLeaf<(fpimm), [{return N->isExactlyValue(+1.0);}]>;
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DConstants.cpp85 return CFP->isExactlyValue(+0.0); in isNullValue()
1043 bool ConstantFP::isExactlyValue(const APFloat &V) const { in isExactlyValue() function in ConstantFP
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVInstrInfoF.td477 def fpimm0 : PatLeaf<(fpimm), [{ return N->isExactlyValue(+0.0); }]>;

12