| /freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
| H A D | PPCLowerMASSVEntries.cpp | 119 if (!CFP->isExactlyValue(0.75) && !CFP->isExactlyValue(0.25)) in handlePowSpecialCases() 122 if (CFP->isExactlyValue(0.25) && !CI->hasNoSignedZeros()) in handlePowSpecialCases()
|
| H A D | PPCRegisterInfo.td | 807 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 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() 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 D | AMDGPULibCalls.cpp | 846 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 D | AMDGPUCodeGenPrepare.cpp | 924 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 D | AMDGPUInstructions.td | 757 [{return N->isExactlyValue(1.0);}] 762 [{return N->isExactlyValue(0.5);}]
|
| H A D | R600ISelLowering.cpp | 791 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 D | SystemZTDC.cpp | 142 } else if (Const->isExactlyValue(Smallest)) { in convertFCmp() 148 } else if (Const->isExactlyValue(NegSmallest)) { in convertFCmp()
|
| H A D | SystemZOperands.td | 544 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 D | SparcInstrVIS.td | 282 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 D | Constant.h | 318 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 D | Constants.h | 341 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 D | X86InstrFragments.td | 893 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 D | X86InstrFPStack.td | |
| H A D | X86InstrFragmentsSIMD.td | 1203 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 D | Floating.h | 146 bool isMinusOne() const { return getValue().isExactlyValue(-1.0); } in isMinusOne()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyLibCalls.cpp | 2133 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 D | SelectionDAGNodes.h | 1831 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 D | MipsInstrFPU.td | 91 return N->isExactlyValue(+0.0); 95 return N->isExactlyValue(-0.0);
|
| H A D | MipsSEISelDAGToDAG.cpp | 727 if (Node->getValueType(0) == MVT::f64 && CN->isExactlyValue(+0.0)) { in trySelect()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/ |
| H A D | CSKYInstrInfoF1.td | 47 def fpimm0 : PatLeaf<(fpimm), [{ return N->isExactlyValue(+0.0); }]>;
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | DAGCombiner.cpp | 17467 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 D | APFloat.h | 1450 bool isExactlyValue(double V) const { in isExactlyValue() function
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Constants.cpp | 99 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 D | LoongArchInstrInfo.td | 527 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);}]>;
|