Home
last modified time | relevance | path

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

123

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DAMDGPULibCalls.cpp744 if (eltval->isExactlyValue(ftbl[i].input)) { in TDOFold()
776 if (CF->isExactlyValue(ftbl[i].input)) { in TDOFold()
907 if ((CF && CF->isExactlyValue(1.0)) || (CINT && ci_opr1 == 1)) { in fold_pow()
913 if ((CF && CF->isExactlyValue(2.0)) || (CINT && ci_opr1 == 2)) { in fold_pow()
921 if ((CF && CF->isExactlyValue(-1.0)) || (CINT && ci_opr1 == -1)) { in fold_pow()
934 if (CF && (CF->isExactlyValue(0.5) || CF->isExactlyValue(-0.5))) { in fold_pow()
936 bool issqrt = CF->isExactlyValue(0.5); in fold_pow()
1215 if (CF0 && CF0->isExactlyValue(1.0f)) { in fold_fma_mad()
1223 if (CF1 && CF1->isExactlyValue(1.0f)) { in fold_fma_mad()
DAMDGPUCodeGenPrepare.cpp405 bool IsOne = CNum->isExactlyValue(+1.0) || CNum->isExactlyValue(-1.0); in shouldKeepFDivF32()
/external/swiftshader/third_party/llvm-7.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/swiftshader/third_party/LLVM/include/llvm/
DConstants.h277 bool isExactlyValue(const APFloat &V) const;
279 bool isExactlyValue(double V) const { in isExactlyValue() function
286 return isExactlyValue(FV); in isExactlyValue()
/external/llvm/unittests/IR/
DMDBuilderTest.cpp43 EXPECT_TRUE(Val->isExactlyValue(1.0)); in TEST_F()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/
DMDBuilderTest.cpp43 EXPECT_TRUE(Val->isExactlyValue(1.0)); in TEST_F()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DConstants.h319 bool isExactlyValue(const APFloat &V) const;
321 bool isExactlyValue(double V) const { in isExactlyValue() function
325 return isExactlyValue(FV); in isExactlyValue()
/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/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/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DSimplifyLibCalls.cpp858 if (Op1C->isExactlyValue(1.0)) // pow(1.0, x) -> 1.0 in CallOptimizer()
860 if (Op1C->isExactlyValue(2.0)) // pow(2.0, x) -> exp2(x) in CallOptimizer()
870 if (Op2C->isExactlyValue(0.5)) { in CallOptimizer()
887 if (Op2C->isExactlyValue(1.0)) // pow(x, 1.0) -> x in CallOptimizer()
889 if (Op2C->isExactlyValue(2.0)) // pow(x, 2.0) -> x*x in CallOptimizer()
891 if (Op2C->isExactlyValue(-1.0)) // pow(x, -1.0) -> 1.0/x in CallOptimizer()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp1134 (!ExpoF->isExactlyValue(0.5) && !ExpoF->isExactlyValue(-0.5))) in replacePowWithSqrt()
1193 if (BaseC->isExactlyValue(10.0) && in optimizePow()
1228 if (ExpoC->isExactlyValue(-1.0)) in optimizePow()
1236 if (ExpoC->isExactlyValue(1.0)) in optimizePow()
1240 if (ExpoC->isExactlyValue(2.0)) in optimizePow()
1244 if (ExpoC->isExactlyValue(0.5) && in optimizePow()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp264 if (Op1F->isExactlyValue(1.0)) in visitFMul()
271 if (F->isExactlyValue(1.0)) in visitFMul()
/external/swiftshader/third_party/LLVM/lib/Target/Mips/
DMipsISelDAGToDAG.cpp303 if (Node->getValueType(0) == MVT::f64 && CN->isExactlyValue(+0.0)) { in Select()
DMipsInstrFPU.td356 return N->isExactlyValue(+0.0);
360 return N->isExactlyValue(-0.0);
/external/swiftshader/third_party/LLVM/lib/Target/SystemZ/
DSystemZInstrFP.td21 return N->isExactlyValue(+0.0);
25 return N->isExactlyValue(-0.0);
/external/swiftshader/third_party/LLVM/lib/Target/X86/
DX86InstrFPStack.td59 return N->isExactlyValue(+0.0);
63 return N->isExactlyValue(-0.0);
67 return N->isExactlyValue(+1.0);
71 return N->isExactlyValue(-1.0);
/external/swiftshader/third_party/LLVM/include/llvm/CodeGen/
DSelectionDAGNodes.h1196 bool isExactlyValue(double V) const {
1204 return isExactlyValue(Tmp);
1206 bool isExactlyValue(const APFloat& V) const;
/external/llvm/unittests/AsmParser/
DAsmParserTest.cpp81 EXPECT_TRUE(cast<ConstantFP>(V)->isExactlyValue(3.5)); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/AsmParser/
DAsmParserTest.cpp81 EXPECT_TRUE(cast<ConstantFP>(V)->isExactlyValue(3.5)); in TEST()
/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/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/
DX86InstrFPStack.td61 return Imm.isExactlyValue(+0.0);
65 return Imm.isExactlyValue(-0.0);
69 return Imm.isExactlyValue(+1.0);
73 return Imm.isExactlyValue(-1.0);
/external/llvm/lib/Target/AMDGPU/
DAMDGPUInstructions.td436 [{return N->isExactlyValue(1.0);}]
441 [{return N->isExactlyValue(0.5);}]
/external/llvm/include/llvm/CodeGen/
DSelectionDAGNodes.h1343 bool isExactlyValue(double V) const {
1348 return isExactlyValue(Tmp);
1350 bool isExactlyValue(const APFloat& V) const;

123