Home
last modified time | relevance | path

Searched refs:Sqrt (Results 1 – 25 of 31) sorted by relevance

12

/llvm-project-15.0.7/libc/test/src/math/
H A DSqrtTest.h70 EXPECT_MPFR_MATCH(mpfr::Operation::Sqrt, x, func(x), 0.5, in test_all_rounding_modes()
74 EXPECT_MPFR_MATCH(mpfr::Operation::Sqrt, x, func(x), 0.5, in test_all_rounding_modes()
78 EXPECT_MPFR_MATCH(mpfr::Operation::Sqrt, x, func(x), 0.5, in test_all_rounding_modes()
82 EXPECT_MPFR_MATCH(mpfr::Operation::Sqrt, x, func(x), 0.5, in test_all_rounding_modes()
/llvm-project-15.0.7/libc/test/src/math/exhaustive/
H A Dsqrtf_test.cpp23 ASSERT_MPFR_MATCH(mpfr::Operation::Sqrt, x, __llvm_libc::sqrtf(x), 0.5); in TEST()
/llvm-project-15.0.7/mlir/test/Conversion/SPIRVToLLVM/
H A Dgl-ops-to-llvm.mlir147 // spv.GL.Sqrt
153 %0 = spv.GL.Sqrt %arg0 : f32
155 %1 = spv.GL.Sqrt %arg1 : vector<3xf16>
/llvm-project-15.0.7/third-party/benchmark/src/
H A Dstatistics.cc61 auto Sqrt = [](const double dat) { in __anon3405df360402() variable
75 return Sqrt(v.size() / (v.size() - 1.0) * (avg_squares - Sqr(mean))); in StatisticsStdDev()
/llvm-project-15.0.7/mlir/test/Target/SPIRV/
H A Dgl-ops.mlir7 // CHECK: {{%.*}} = spv.GL.Sqrt {{%.*}} : f32
8 %2 = spv.GL.Sqrt %arg0 : f32
/llvm-project-15.0.7/mlir/test/Dialect/SPIRV/IR/
H A Dgl-ops.mlir114 // spv.GL.Sqrt
118 // CHECK: spv.GL.Sqrt {{%.*}} : f32
119 %2 = spv.GL.Sqrt %arg0 : f32
124 // CHECK: spv.GL.Sqrt {{%.*}} : vector<3xf16>
125 %2 = spv.GL.Sqrt %arg0 : vector<3xf16>
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp1947 if (!Sqrt) in replacePowWithSqrt()
1953 Sqrt = B.CreateCall(FAbsFn, Sqrt, "abs"); in replacePowWithSqrt()
1956 Sqrt = copyFlags(*Pow, Sqrt); in replacePowWithSqrt()
1964 Sqrt = B.CreateSelect(FCmp, PosInf, Sqrt); in replacePowWithSqrt()
1969 Sqrt = B.CreateFDiv(ConstantFP::get(Ty, 1.0), Sqrt, "reciprocal"); in replacePowWithSqrt()
1971 return Sqrt; in replacePowWithSqrt()
2023 return Sqrt; in optimizePow()
2033 Value *Sqrt = nullptr; in optimizePow() local
2054 if (!Sqrt) in optimizePow()
2070 if (PowI && Sqrt) in optimizePow()
[all …]
/llvm-project-15.0.7/mlir/test/Conversion/MathToSPIRV/
H A Dmath-to-gl-spirv.mlir25 // CHECK: spv.GL.Sqrt %{{.*}}: f32
58 // CHECK: spv.GL.Sqrt %{{.*}}: vector<3xf32>
/llvm-project-15.0.7/llvm/lib/Transforms/AggressiveInstCombine/
H A DAggressiveInstCombine.cpp462 Function *Sqrt = Intrinsic::getDeclaration(M, Intrinsic::sqrt, Ty); in foldSqrt() local
463 Value *NewSqrt = Builder.CreateCall(Sqrt, Call->getArgOperand(0), "sqrt"); in foldSqrt()
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DARMScheduleM4.td105 // Most FP instructions are single-cycle latency, except MAC's, Div's and Sqrt's.
/llvm-project-15.0.7/clang/include/clang/Basic/
H A Darm_fp16.td22 // Reciprocal/Sqrt
H A Darm_neon.td390 // E.3.10 Reciprocal/Sqrt
816 // Reciprocal/Sqrt
1739 // Reciprocal/Sqrt
H A DBuiltinsNVPTX.def350 // Sqrt
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64SchedThunderX.td43 def THXT8XUnitFPMDS : ProcResource<1> { let BufferSize = 0; } // FP Mul/Div/Sqrt
161 // FP Mul, Div, Sqrt
H A DAArch64SchedA53.td48 def A53UnitFPMDS : ProcResource<1> { let BufferSize = 0; } // FP Mult/Div/Sqrt
134 // FP Mul, Div, Sqrt
H A DAArch64SchedA55.td187 // FP Mul, Div, Sqrt. Div/Sqrt are not pipelined
H A DAArch64SchedTSV110.td92 // FP Div, Sqrt
/llvm-project-15.0.7/llvm/lib/Target/RISCV/
H A DRISCVSchedSiFive7.td36 def SiFive7FDiv : ProcResource<1> { let Super = SiFive7PipeB; } // FP Division/Sqrt
H A DRISCVSchedRocket.td43 def RocketUnitFPDivSqrt : ProcResource<1>; // FP Divide/Sqrt
/llvm-project-15.0.7/mlir/include/mlir/Dialect/SPIRV/IR/
H A DSPIRVGLOps.td826 def SPV_GLSqrtOp : SPV_GLUnaryArithmeticOp<"Sqrt", 31, SPV_Float> {
842 sqrt-op ::= ssa-id `=` `spv.GL.Sqrt` ssa-use `:`
848 %2 = spv.GL.Sqrt %0 : f32
849 %3 = spv.GL.Sqrt %1 : vector<3xf16>
/llvm-project-15.0.7/libc/utils/MPFRWrapper/
H A DMPFRUtils.h43 Sqrt, enumerator
H A DMPFRUtils.cpp510 case Operation::Sqrt: in unary_operation()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp563 Value *Sqrt = Builder.CreateUnaryIntrinsic(Intrinsic::sqrt, XY, &I); in visitFMul() local
564 return replaceInstUsesWith(I, Sqrt); in visitFMul()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp15292 SDValue Sqrt, Y; in visitFDIV() local
15294 Sqrt = N1.getOperand(0); in visitFDIV()
15297 Sqrt = N1.getOperand(1); in visitFDIV()
15300 if (Sqrt.getNode()) { in visitFDIV()
15308 else if (Y == Sqrt.getOperand(0)) in visitFDIV()
15547 SDValue Sqrt = DAG.getNode(ISD::FSQRT, DL, VT, N->getOperand(0)); in visitFPOW() local
15548 SDValue SqrtSqrt = DAG.getNode(ISD::FSQRT, DL, VT, Sqrt); in visitFPOW()
15552 return DAG.getNode(ISD::FMUL, DL, VT, Sqrt, SqrtSqrt); in visitFPOW()
23701 SDValue Sqrt = RHS; in SimplifySelectOps() local
23720 Sqrt.getOperand(0) == CmpLHS && (CC == ISD::SETOLT || in SimplifySelectOps()
[all …]
/llvm-project-15.0.7/mlir/docs/
H A DSPIRVToLLVMDialectConversion.md742 `spv.GL.Sqrt` | `llvm.intr.sqrt`

12