Home
last modified time | relevance | path

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

12

/openbsd-src/gnu/llvm/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.cpp709 if (eltval->isExactlyValue(tr[i].input)) { in TDOFold()
741 if (CF->isExactlyValue(tr[i].input)) { in TDOFold()
851 if ((CF && CF->isExactlyValue(1.0)) || (CINT && ci_opr1 == 1)) { in fold_pow()
857 if ((CF && CF->isExactlyValue(2.0)) || (CINT && ci_opr1 == 2)) { in fold_pow()
865 if ((CF && CF->isExactlyValue(-1.0)) || (CINT && ci_opr1 == -1)) { in fold_pow()
878 if (CF && (CF->isExactlyValue(0.5) || CF->isExactlyValue(-0.5))) { in fold_pow()
880 bool issqrt = CF->isExactlyValue(0.5); in fold_pow()
1156 if (CF0 && CF0->isExactlyValue(1.0f)) { in fold_fma_mad()
1164 if (CF1 && CF1->isExactlyValue(1.0f)) { in fold_fma_mad()
H A DAMDGPUCodeGenPrepare.cpp672 if (CLHS->isExactlyValue(1.0)) { in optimizeWithRcp()
691 if (CLHS->isExactlyValue(-1.0)) { in optimizeWithRcp()
735 if (CNum->isExactlyValue(+1.0) || CNum->isExactlyValue(-1.0)) in optimizeWithFDivFast()
H A DAMDGPUInstructions.td703 [{return N->isExactlyValue(1.0);}]
708 [{return N->isExactlyValue(0.5);}]
H A DR600ISelLowering.cpp791 return CFP->isExactlyValue(1.0); in isHWTrueValue()
1588 } else if (C->isExactlyValue(1.0)) { in CompactSwizzlableVector()
H A DSIISelLowering.cpp8894 if (CLHS->isExactlyValue(1.0)) { in lowerFastUnsafeFDIV()
8914 if (CLHS->isExactlyValue(-1.0)) { in lowerFastUnsafeFDIV()
10572 if (K1->isExactlyValue(1.0) && K0->isExactlyValue(0.0)) in performFPMed3ImmCombine()
10673 return (CA->isExactlyValue(0.0) && CB->isExactlyValue(1.0)) || in isClampZeroToOne()
10674 (CA->isExactlyValue(1.0) && CB->isExactlyValue(0.0)); in isClampZeroToOne()
/openbsd-src/gnu/llvm/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.td730 def fpimm0 : PatLeaf<(fpimm), [{ return N->isExactlyValue(+0.0); }]>;
731 def fpimm0neg : PatLeaf<(fpimm), [{return N->isExactlyValue(-0.0);}]>;
/openbsd-src/gnu/llvm/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); }]>;
/openbsd-src/gnu/llvm/llvm/tools/llvm-reduce/deltas/
H A DReduceOperands.cpp61 ((C->isZero() && !C->isNegative()) || C->isExactlyValue(1.0)); in isZeroOrOneFP()
/openbsd-src/gnu/llvm/llvm/include/llvm/IR/
H A DConstants.h318 bool isExactlyValue(const APFloat &V) const;
320 bool isExactlyValue(double V) const { in isExactlyValue() function
324 return isExactlyValue(FV); in isExactlyValue()
H A DPatternMatch.h804 return CFP->isExactlyValue(Val); in match()
808 return CFP->isExactlyValue(Val); in match()
/openbsd-src/gnu/llvm/llvm/lib/Target/X86/
H A DX86InstrFPStack.td114 return Imm.isExactlyValue(+0.0);
118 return Imm.isExactlyValue(-0.0);
122 return Imm.isExactlyValue(+1.0);
126 return Imm.isExactlyValue(-1.0);
H A DX86InstrFragmentsSIMD.td1053 return N->isExactlyValue(+0.0);
1057 return N->isExactlyValue(+0.0);
1061 return N->isExactlyValue(+0.0);
1065 return N->isExactlyValue(+0.0);
/openbsd-src/gnu/llvm/llvm/lib/Target/RISCV/
H A DRISCVInstrInfoF.td491 def fpimm0 : PatLeaf<(fpimm), [{ return N->isExactlyValue(+0.0); }]>;
492 def fpimmneg0 : PatLeaf<(fpimm), [{ return N->isExactlyValue(-0.0); }]>;
/openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/
H A DSelectionDAGNodes.h1669 bool isExactlyValue(double V) const {
1670 return Value->getValueAPF().isExactlyValue(V);
1672 bool isExactlyValue(const APFloat& V) const;
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp2046 (!ExpoF->isExactlyValue(0.5) && !ExpoF->isExactlyValue(-0.5))) in replacePowWithSqrt()
2147 !ExpoF->isExactlyValue(0.5) && !ExpoF->isExactlyValue(-0.5)) { in optimizePow()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/llvm/include/llvm/ADT/
H A DAPFloat.h1212 bool isExactlyValue(double V) const { in isExactlyValue() function
/openbsd-src/gnu/llvm/llvm/lib/Target/CSKY/
H A DCSKYInstrInfoF1.td47 def fpimm0 : PatLeaf<(fpimm), [{ return N->isExactlyValue(+0.0); }]>;
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp15170 if (C->isExactlyValue(+1.0)) in visitFMULForFMADistributiveCombine()
15173 if (C->isExactlyValue(-1.0)) in visitFMULForFMADistributiveCombine()
15193 if (C0->isExactlyValue(+1.0)) in visitFMULForFMADistributiveCombine()
15197 if (C0->isExactlyValue(-1.0)) in visitFMULForFMADistributiveCombine()
15203 if (C1->isExactlyValue(+1.0)) in visitFMULForFMADistributiveCombine()
15206 if (C1->isExactlyValue(-1.0)) in visitFMULForFMADistributiveCombine()
15274 return C && C->isExactlyValue(-2.0); in visitFADD()
15576 if (N1CFP && N1CFP->isExactlyValue(+2.0)) in visitFMUL()
15580 if (N1CFP && N1CFP->isExactlyValue(-1.0)) { in visitFMUL()
15619 cast<ConstantFPSDNode>(Cond.getOperand(1))->isExactlyValue(0.0)) { in visitFMUL()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/LoongArch/
H A DLoongArchInstrInfo.td356 def fpimm0 : PatLeaf<(fpimm), [{return N->isExactlyValue(+0.0);}]>;
357 def fpimm0neg : PatLeaf<(fpimm), [{return N->isExactlyValue(-0.0);}]>;
358 def fpimm1 : PatLeaf<(fpimm), [{return N->isExactlyValue(+1.0);}]>;
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DConstants.cpp85 return CFP->isExactlyValue(+0.0); in isNullValue()
1057 bool ConstantFP::isExactlyValue(const APFloat &V) const { in isExactlyValue() function in ConstantFP

12