Home
last modified time | relevance | path

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

12

/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.td807 def fpimm0 : PatLeaf<(fpimm), [{ return N->isExactlyValue(+0.0); }]>;
808 def fpimm0neg : PatLeaf<(fpimm), [{return N->isExactlyValue(-0.0);}]>;
/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()
418 return (KO_FPImm->isExactlyValue(0.0) && K1_FPImm->isExactlyValue(1.0)) || in isClampZeroToOne()
419 (KO_FPImm->isExactlyValue(1.0) && K1_FPImm->isExactlyValue(0.0)); in isClampZeroToOne()
H A DAMDGPULibCalls.cpp846 if (eltval->isExactlyValue(tr[i].input)) { in TDOFold()
877 if (CF->isExactlyValue(tr[i].input)) { in TDOFold()
930 if ((CF && CF->isExactlyValue(1.0)) || (CINT && ci_opr1 == 1)) { in fold_pow()
936 if ((CF && CF->isExactlyValue(2.0)) || (CINT && ci_opr1 == 2)) { in fold_pow()
944 if ((CF && CF->isExactlyValue(-1.0)) || (CINT && ci_opr1 == -1)) { in fold_pow()
956 if (CF && (CF->isExactlyValue(0.5) || CF->isExactlyValue(-0.5))) { in fold_pow()
958 bool issqrt = CF->isExactlyValue(0.5); in fold_pow()
H A DAMDGPUCodeGenPrepare.cpp924 if (CLHS->isExactlyValue(1.0) || (IsNegative = CLHS->isExactlyValue(-1.0))) { in optimizeWithRsq()
959 if (CLHS->isExactlyValue(1.0) || in optimizeWithRcp()
960 (IsNegative = CLHS->isExactlyValue(-1.0))) { in optimizeWithRcp()
1023 if (CNum->isExactlyValue(+1.0) || CNum->isExactlyValue(-1.0)) in optimizeWithFDivFast()
H A DAMDGPUInstructions.td757 [{return N->isExactlyValue(1.0);}]
762 [{return N->isExactlyValue(0.5);}]
H A DR600ISelLowering.cpp791 return CFP->isExactlyValue(1.0); in isHWTrueValue()
1585 } else if (C->isExactlyValue(1.0)) { in CompactSwizzlableVector()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTDC.cpp142 } else if (Const->isExactlyValue(Smallest)) { in convertFCmp()
148 } else if (Const->isExactlyValue(NegSmallest)) { in convertFCmp()
H A DSystemZOperands.td544 def fpimm0 : PatLeaf<(fpimm), [{ return N->isExactlyValue(+0.0); }]>;
547 def fpimmneg0 : PatLeaf<(fpimm), [{ return N->isExactlyValue(-0.0); }]>;
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/
H A DSparcInstrVIS.td282 def fpimm0 : FPImmLeaf<fAny, [{return Imm.isExactlyValue(+0.0);}]>;
283 def fpnegimm0 : FPImmLeaf<fAny, [{return Imm.isExactlyValue(-0.0);}]>;
284 def fpimmhalf : FPImmLeaf<fAny, [{return Imm.isExactlyValue(+0.5);}]>;
285 def fpnegimmhalf : FPImmLeaf<fAny, [{return Imm.isExactlyValue(-0.5);}]>;
/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DConstant.h318 bool isExactlyValue(const APFloat &V) const { in isExactlyValue() function
319 return cast<llvm::ConstantFP>(Val)->isExactlyValue(V); in isExactlyValue()
322 bool isExactlyValue(double V) const { in isExactlyValue() function
323 return cast<llvm::ConstantFP>(Val)->isExactlyValue(V); in isExactlyValue()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstants.h341 LLVM_ABI bool isExactlyValue(const APFloat &V) const;
343 bool isExactlyValue(double V) const { in isExactlyValue() function
347 return isExactlyValue(FV); in isExactlyValue()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstrFragments.td893 return Imm.isExactlyValue(+0.0);
897 return Imm.isExactlyValue(-0.0);
901 return Imm.isExactlyValue(+1.0);
905 return Imm.isExactlyValue(-1.0);
H A DX86InstrFPStack.td
H A DX86InstrFragmentsSIMD.td1203 return N->isExactlyValue(+0.0);
1207 return N->isExactlyValue(+0.0);
1211 return N->isExactlyValue(+0.0);
1215 return N->isExactlyValue(+0.0);
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DFloating.h146 bool isMinusOne() const { return getValue().isExactlyValue(-1.0); } in isMinusOne()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp2133 if ((UseIntrinsic || !Ty->isVectorTy()) && BaseF->isExactlyValue(2.0) && in replacePowWithExp()
2180 if (BaseF->isExactlyValue(10.0) && in replacePowWithExp()
2251 (!ExpoF->isExactlyValue(0.5) && !ExpoF->isExactlyValue(-0.5))) in replacePowWithSqrt()
2350 !ExpoF->isExactlyValue(0.5) && !ExpoF->isExactlyValue(-0.5)) { in optimizePow()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DSelectionDAGNodes.h1831 bool isExactlyValue(double V) const {
1832 return Value->getValueAPF().isExactlyValue(V);
1834 LLVM_ABI 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.cpp727 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/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp17467 if (C->isExactlyValue(+1.0)) in visitFMULForFMADistributiveCombine()
17470 if (C->isExactlyValue(-1.0)) in visitFMULForFMADistributiveCombine()
17490 if (C0->isExactlyValue(+1.0)) in visitFMULForFMADistributiveCombine()
17494 if (C0->isExactlyValue(-1.0)) in visitFMULForFMADistributiveCombine()
17500 if (C1->isExactlyValue(+1.0)) in visitFMULForFMADistributiveCombine()
17503 if (C1->isExactlyValue(-1.0)) in visitFMULForFMADistributiveCombine()
17583 return C && C->isExactlyValue(-2.0); in visitFADD()
18002 if (N1CFP && N1CFP->isExactlyValue(+2.0)) in visitFMUL()
18006 if (N1CFP && N1CFP->isExactlyValue(-1.0)) { in visitFMUL()
18045 cast<ConstantFPSDNode>(Cond.getOperand(1))->isExactlyValue(0.0)) { in visitFMUL()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPFloat.h1450 bool isExactlyValue(double V) const { in isExactlyValue() function
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstants.cpp99 return CFP->isExactlyValue(+0.0); in isNullValue()
1121 bool ConstantFP::isExactlyValue(const APFloat &V) const { in isExactlyValue() function in ConstantFP
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchInstrInfo.td527 def fpimm0 : PatLeaf<(fpimm), [{return N->isExactlyValue(+0.0);}]>;
528 def fpimm0neg : PatLeaf<(fpimm), [{return N->isExactlyValue(-0.0);}]>;
529 def fpimm1 : PatLeaf<(fpimm), [{return N->isExactlyValue(+1.0);}]>;

12