Home
last modified time | relevance | path

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

1234

/external/llvm-project/llvm/lib/Target/PowerPC/
DPPCLowerMASSVEntries.cpp114 if (!CFP->isExactlyValue(0.75) && !CFP->isExactlyValue(0.25)) in handlePowSpecialCases()
117 if (CFP->isExactlyValue(0.25) && !CI->hasNoSignedZeros()) in handlePowSpecialCases()
/external/llvm-project/llvm/lib/Target/AMDGPU/
DAMDGPULibCalls.cpp750 if (eltval->isExactlyValue(ftbl[i].input)) { in TDOFold()
782 if (CF->isExactlyValue(ftbl[i].input)) { in TDOFold()
913 if ((CF && CF->isExactlyValue(1.0)) || (CINT && ci_opr1 == 1)) { in fold_pow()
919 if ((CF && CF->isExactlyValue(2.0)) || (CINT && ci_opr1 == 2)) { in fold_pow()
927 if ((CF && CF->isExactlyValue(-1.0)) || (CINT && ci_opr1 == -1)) { in fold_pow()
940 if (CF && (CF->isExactlyValue(0.5) || CF->isExactlyValue(-0.5))) { in fold_pow()
942 bool issqrt = CF->isExactlyValue(0.5); in fold_pow()
1218 if (CF0 && CF0->isExactlyValue(1.0f)) { in fold_fma_mad()
1226 if (CF1 && CF1->isExactlyValue(1.0f)) { in fold_fma_mad()
DAMDGPUCodeGenPrepare.cpp670 if (CLHS->isExactlyValue(1.0)) { in optimizeWithRcp()
689 if (CLHS->isExactlyValue(-1.0)) { in optimizeWithRcp()
733 if (CNum->isExactlyValue(+1.0) || CNum->isExactlyValue(-1.0)) in optimizeWithFDivFast()
DAMDGPUInstructions.td548 [{return N->isExactlyValue(1.0);}]
553 [{return N->isExactlyValue(0.5);}]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPULibCalls.cpp755 if (eltval->isExactlyValue(ftbl[i].input)) { in TDOFold()
787 if (CF->isExactlyValue(ftbl[i].input)) { in TDOFold()
918 if ((CF && CF->isExactlyValue(1.0)) || (CINT && ci_opr1 == 1)) { in fold_pow()
924 if ((CF && CF->isExactlyValue(2.0)) || (CINT && ci_opr1 == 2)) { in fold_pow()
932 if ((CF && CF->isExactlyValue(-1.0)) || (CINT && ci_opr1 == -1)) { in fold_pow()
945 if (CF && (CF->isExactlyValue(0.5) || CF->isExactlyValue(-0.5))) { in fold_pow()
947 bool issqrt = CF->isExactlyValue(0.5); in fold_pow()
1223 if (CF0 && CF0->isExactlyValue(1.0f)) { in fold_fma_mad()
1231 if (CF1 && CF1->isExactlyValue(1.0f)) { in fold_fma_mad()
DAMDGPUCodeGenPrepare.cpp536 bool IsOne = CNum->isExactlyValue(+1.0) || CNum->isExactlyValue(-1.0); in shouldKeepFDivF32()
/external/llvm-project/llvm/lib/Target/SystemZ/
DSystemZTDC.cpp150 } else if (Const->isExactlyValue(Smallest)) { in convertFCmp()
156 } else if (Const->isExactlyValue(NegSmallest)) { in convertFCmp()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/
DSystemZTDC.cpp142 } else if (Const->isExactlyValue(Smallest)) { in convertFCmp()
148 } else if (Const->isExactlyValue(NegSmallest)) { in convertFCmp()
/external/llvm/lib/Target/SystemZ/
DSystemZTDC.cpp142 } else if (Const->isExactlyValue(Smallest)) { in convertFCmp()
148 } else if (Const->isExactlyValue(NegSmallest)) { in convertFCmp()
DSystemZOperands.td435 def fpimm0 : PatLeaf<(fpimm), [{ return N->isExactlyValue(+0.0); }]>;
438 def fpimmneg0 : PatLeaf<(fpimm), [{ return N->isExactlyValue(-0.0); }]>;
/external/llvm-project/llvm/unittests/IR/
DMDBuilderTest.cpp42 EXPECT_TRUE(Val->isExactlyValue(1.0)); in TEST_F()
/external/llvm/unittests/IR/
DMDBuilderTest.cpp43 EXPECT_TRUE(Val->isExactlyValue(1.0)); in TEST_F()
/external/llvm/include/llvm/IR/
DConstants.h303 bool isExactlyValue(const APFloat &V) const;
305 bool isExactlyValue(double V) const { in isExactlyValue() function
309 return isExactlyValue(FV); in isExactlyValue()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DConstants.h322 bool isExactlyValue(const APFloat &V) const;
324 bool isExactlyValue(double V) const { in isExactlyValue() function
328 return isExactlyValue(FV); in isExactlyValue()
/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp998 if (Op1C->isExactlyValue(1.0)) in optimizePow()
1001 if (Op1C->isExactlyValue(2.0) && in optimizePow()
1007 if (Op1C->isExactlyValue(10.0) && in optimizePow()
1041 if (Op2C->isExactlyValue(0.5) && in optimizePow()
1069 if (Op2C->isExactlyValue(1.0)) // pow(x, 1.0) -> x in optimizePow()
1071 if (Op2C->isExactlyValue(2.0)) // pow(x, 2.0) -> x*x in optimizePow()
1073 if (Op2C->isExactlyValue(-1.0)) // pow(x, -1.0) -> 1.0/x in optimizePow()
/external/llvm-project/llvm/include/llvm/IR/
DConstants.h331 bool isExactlyValue(const APFloat &V) const;
333 bool isExactlyValue(double V) const { in isExactlyValue() function
337 return isExactlyValue(FV); in isExactlyValue()
/external/tensorflow/tensorflow/compiler/mlir/lite/utils/
Dlstm_utils_test.cc180 .isExactlyValue(0.0f)); in TEST_F()
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/
Doptimize.cc297 return fp_attr.getSplatValue<APFloat>().isExactlyValue(value); in FloatValueEquals()
300 return f.isExactlyValue(value); in FloatValueEquals()
/external/llvm/unittests/AsmParser/
DAsmParserTest.cpp81 EXPECT_TRUE(cast<ConstantFP>(V)->isExactlyValue(3.5)); in TEST()
/external/llvm-project/llvm/unittests/AsmParser/
DAsmParserTest.cpp80 EXPECT_TRUE(cast<ConstantFP>(V)->isExactlyValue(3.5)); in TEST()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUInstructions.td436 [{return N->isExactlyValue(1.0);}]
441 [{return N->isExactlyValue(0.5);}]
/external/llvm/lib/Target/X86/
DX86InstrFPStack.td61 return N->isExactlyValue(+0.0);
65 return N->isExactlyValue(-0.0);
69 return N->isExactlyValue(+1.0);
73 return N->isExactlyValue(-1.0);
/external/llvm/include/llvm/CodeGen/
DSelectionDAGNodes.h1343 bool isExactlyValue(double V) const {
1348 return isExactlyValue(Tmp);
1350 bool isExactlyValue(const APFloat& V) const;
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dlegalize_hlo_patterns.td231 "$0.cast<SplatElementsAttr>().getSplatValue<APFloat>().isExactlyValue(" # val # ")">>;
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86InstrFPStack.td109 return Imm.isExactlyValue(+0.0);
113 return Imm.isExactlyValue(-0.0);
117 return Imm.isExactlyValue(+1.0);
121 return Imm.isExactlyValue(-1.0);

1234