| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPURegBankCombiner.cpp | 286 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 D | AMDGPULibCalls.cpp | 835 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 D | AMDGPUCodeGenPrepare.cpp | 918 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 D | AMDGPUInstructions.td | 748 [{return N->isExactlyValue(1.0);}] 753 [{return N->isExactlyValue(0.5);}]
|
| H A D | R600ISelLowering.cpp | 789 return CFP->isExactlyValue(1.0); in isHWTrueValue() 1584 } else if (C->isExactlyValue(1.0)) { in CompactSwizzlableVector()
|
| H A D | SIISelLowering.cpp | 10273 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 D | PPCLowerMASSVEntries.cpp | 117 if (!CFP->isExactlyValue(0.75) && !CFP->isExactlyValue(0.25)) in handlePowSpecialCases() 120 if (CFP->isExactlyValue(0.25) && !CI->hasNoSignedZeros()) in handlePowSpecialCases()
|
| H A D | PPCRegisterInfo.td | 787 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 D | SystemZTDC.cpp | 146 } else if (Const->isExactlyValue(Smallest)) { in convertFCmp() 152 } else if (Const->isExactlyValue(NegSmallest)) { in convertFCmp()
|
| H A D | SystemZOperands.td | 537 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 D | Constants.h | 317 bool isExactlyValue(const APFloat &V) const; 319 bool isExactlyValue(double V) const { in isExactlyValue() function 323 return isExactlyValue(FV); in isExactlyValue()
|
| H A D | PatternMatch.h | 812 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 D | Floating.h | 94 bool isMinusOne() const { return F.isExactlyValue(-1.0); } in isMinusOne()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86InstrFragments.td | 828 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 D | X86InstrFragmentsSIMD.td | 1049 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 D | SelectionDAGNodes.h | 1700 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 D | SimplifyLibCalls.cpp | 2157 (!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 D | MipsInstrFPU.td | 91 return N->isExactlyValue(+0.0); 95 return N->isExactlyValue(-0.0);
|
| H A D | MipsSEISelDAGToDAG.cpp | 769 if (Node->getValueType(0) == MVT::f64 && CN->isExactlyValue(+0.0)) { in trySelect()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | APFloat.h | 1278 bool isExactlyValue(double V) const { in isExactlyValue() function
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/CSKY/ |
| H A D | CSKYInstrInfoF1.td | 47 def fpimm0 : PatLeaf<(fpimm), [{ return N->isExactlyValue(+0.0); }]>;
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | DAGCombiner.cpp | 16167 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 D | LoongArchInstrInfo.td | 468 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 D | Constants.cpp | 85 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 D | RISCVInstrInfoF.td | 477 def fpimm0 : PatLeaf<(fpimm), [{ return N->isExactlyValue(+0.0); }]>;
|