Home
last modified time | relevance | path

Searched refs:scale (Results 1 – 25 of 230) sorted by relevance

12345678910

/llvm-project-15.0.7/clang/lib/Headers/
H A Davx512pfintrin.h22 (void const *)(addr), (int)(scale), \
25 #define _mm512_prefetch_i32gather_pd(index, addr, scale, hint) \ argument
33 (int)(scale), (int)(hint))
35 #define _mm512_prefetch_i32gather_ps(index, addr, scale, hint) \ argument
38 (int)(scale), (int)(hint))
45 #define _mm512_prefetch_i64gather_pd(index, addr, scale, hint) \ argument
60 (void *)(addr), (int)(scale), \
65 (void *)(addr), (int)(scale), \
75 (int)(scale), (int)(hint))
79 (void *)(addr), (int)(scale), \
[all …]
/llvm-project-15.0.7/libc/AOR_v20.02/math/
H A Dexp2.c34 double_t scale, y; in specialcase() local
40 scale = asdouble (sbits); in specialcase()
41 y = 2 * (scale + scale * tmp); in specialcase()
46 scale = asdouble (sbits); in specialcase()
47 y = scale + scale * tmp; in specialcase()
55 lo = scale - y + scale * tmp; in specialcase()
82 double_t kd, r, r2, scale, tail, tmp; in exp2() local
133 scale = asdouble (sbits); in exp2()
136 return eval_as_double (scale + scale * tmp); in exp2()
H A Dexp.c36 double_t scale, y; in specialcase() local
42 scale = asdouble (sbits); in specialcase()
43 y = 0x1p1009 * (scale + scale * tmp); in specialcase()
48 scale = asdouble (sbits); in specialcase()
49 y = scale + scale * tmp; in specialcase()
57 lo = scale - y + scale * tmp; in specialcase()
86 double_t kd, z, r, r2, scale, tail, tmp; in exp_inline() local
151 scale = asdouble (sbits); in exp_inline()
154 return eval_as_double (scale + scale * tmp); in exp_inline()
H A Dv_exp2f.c31 specialcase (v_f32_t poly, v_f32_t n, v_u32_t e, v_f32_t absn, v_u32_t cmp1, v_f32_t scale) in specialcase() argument
41 v_u32_t r0 = v_as_u32_f32 (v_fma_f32 (poly, scale, scale)); in specialcase()
49 v_f32_t n, r, r2, scale, p, q, poly, absn; in V_NAME() local
65 scale = v_as_f32_u32 (e + v_u32 (0x3f800000)); in V_NAME()
75 return specialcase (poly, n, e, absn, cmp, scale); in V_NAME()
76 return v_fma_f32 (poly, scale, scale); in V_NAME()
H A Dv_expf.c34 specialcase (v_f32_t poly, v_f32_t n, v_u32_t e, v_f32_t absn, v_u32_t cmp1, v_f32_t scale) in specialcase() argument
44 v_u32_t r0 = v_as_u32_f32 (v_fma_f32 (poly, scale, scale)); in specialcase()
52 v_f32_t n, r, r2, scale, p, q, poly, absn, z; in V_NAME() local
70 scale = v_as_f32_u32 (e + v_u32 (0x3f800000)); in V_NAME()
80 return specialcase (poly, n, e, absn, cmp, scale); in V_NAME()
81 return v_fma_f32 (poly, scale, scale); in V_NAME()
H A Dpow.c131 double_t scale, y; in specialcase() local
137 scale = asdouble (sbits); in specialcase()
138 y = 0x1p1009 * (scale + scale * tmp); in specialcase()
144 scale = asdouble (sbits); in specialcase()
145 y = scale + scale * tmp; in specialcase()
155 lo = scale - y + scale * tmp; in specialcase()
179 double_t kd, z, r, r2, scale, tail, tmp; in exp_inline() local
243 scale = asdouble (sbits); in exp_inline()
246 return eval_as_double (scale + scale * tmp); in exp_inline()
/llvm-project-15.0.7/mlir/lib/Dialect/Quant/Utils/
H A DFakeQuantSupport.cpp67 double rmax, double &scale, in getNudgedScaleAndZeroPoint() argument
72 scale = (rmax - rmin) / (qmaxDouble - qminDouble); in getNudgedScaleAndZeroPoint()
81 const double zeroPointFromMin = qminDouble - rmin / scale; in getNudgedScaleAndZeroPoint()
83 std::abs(qminDouble) + std::abs(rmin / scale); in getNudgedScaleAndZeroPoint()
84 const double zeroPointFromMax = qmaxDouble - rmax / scale; in getNudgedScaleAndZeroPoint()
86 std::abs(qmaxDouble) + std::abs(rmax / scale); in getNudgedScaleAndZeroPoint()
130 double scale; in fakeQuantAttrsToType() local
132 getNudgedScaleAndZeroPoint(qmin, qmax, rmin, rmax, scale, nudgedZeroPoint); in fakeQuantAttrsToType()
173 double scale; in fakeQuantAttrsToType() local
175 getNudgedScaleAndZeroPoint(qmin, qmax, rmin, rmax, scale, nudgedZeroPoint); in fakeQuantAttrsToType()
[all …]
/llvm-project-15.0.7/flang/runtime/
H A Dedit-output.cpp264 int scale{edit.modes.scale}; // 'kP' value in EditEorDOutput() local
280 scale = IsZero() ? 1 : 3; in EditEorDOutput()
283 scale = 1; in EditEorDOutput()
285 } else if (scale < 0) { in EditEorDOutput()
294 } else if (scale > 0) { in EditEorDOutput()
302 scale = std::min(scale, significantDigits + 1); in EditEorDOutput()
321 --scale; in EditEorDOutput()
325 scale += modulus; in EditEorDOutput()
328 if (scale > 3) { in EditEorDOutput()
330 scale -= adjust; in EditEorDOutput()
[all …]
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Quant/
H A DUniformSupport.h74 UniformQuantizedValueConverter(double scale, double zeroPoint, in UniformQuantizedValueConverter() argument
77 : scale(scale), zeroPoint(zeroPoint), clampMin(clampMin), in UniformQuantizedValueConverter()
78 clampMax(clampMax), scaleDouble(scale), zeroPointDouble(zeroPoint), in UniformQuantizedValueConverter()
83 UniformQuantizedValueConverter(double scale, double zeroPoint, in UniformQuantizedValueConverter() argument
87 : scale(scale), zeroPoint(zeroPoint), clampMin(clampMin), in UniformQuantizedValueConverter()
88 clampMax(clampMax), scaleDouble(scale), zeroPointDouble(zeroPoint), in UniformQuantizedValueConverter()
106 expressedValue.convert(scale.getSemantics(), roundMode, &lossy); in quantizeFloatToInt()
109 APFloat scaled = (expressedValue / scale); in quantizeFloatToInt()
157 const APFloat scale; variable
/llvm-project-15.0.7/polly/test/ScopInfo/
H A Dcomplex_domain_binary_condition.ll11 ….20.27.43.44.46.50.52.58.60.81.89.90.99.107.108.109.111.116.118.149* readonly %n1, i32 %scale) #0 {
19 %cmp12 = icmp slt i32 %., %scale
20 %scale.. = select i1 %cmp12, i32 %scale, i32 %.
21 %cmp26 = icmp sgt i32 0, %scale..
22 %scale...add7 = select i1 %cmp26, i32 %scale.., i32 0
23 %sub = sub nsw i32 0, %scale...add7
32 %4 = sub i32 %3, %scale...add7
/llvm-project-15.0.7/mlir/lib/Dialect/Quant/IR/
H A DQuantTypes.cpp253 Type expressedType, double scale, in get() argument
258 scale, zeroPoint, storageTypeMin, storageTypeMax); in get()
263 Type storageType, Type expressedType, double scale, int64_t zeroPoint, in getChecked() argument
266 storageType, expressedType, scale, zeroPoint, in getChecked()
272 Type storageType, Type expressedType, double scale, int64_t zeroPoint, in verify() argument
291 if (scale <= 0.0 || std::isinf(scale) || std::isnan(scale)) in verify()
292 return emitError() << "illegal scale: " << scale; in verify()
297 double UniformQuantizedType::getScale() const { return getImpl()->scale; } in getScale()
350 for (double scale : scales) { in verify() local
351 if (scale <= 0.0 || std::isinf(scale) || std::isnan(scale)) in verify()
[all …]
H A DTypeDetail.h97 KeyTy(unsigned flags, Type storageType, Type expressedType, double scale, in KeyTy()
100 scale(scale), zeroPoint(zeroPoint), storageTypeMin(storageTypeMin), in KeyTy()
111 double scale; member
121 lhs.expressedType == rhs.expressedType && lhs.scale == rhs.scale && in genericIsEqual()
132 int64_t scaleBits = llvm::bit_cast<int64_t>(scale); in getHashValue()
141 scale(key.scale), zeroPoint(key.zeroPoint) {} in UniformQuantizedTypeStorage()
156 double scale; member
/llvm-project-15.0.7/llvm/unittests/Support/
H A DBranchProbabilityTest.cpp172 TEST(BranchProbabilityTest, scale) { in TEST() argument
174 EXPECT_EQ(UINT64_MAX, BP(1, 1).scale(UINT64_MAX)); in TEST()
175 EXPECT_EQ(UINT64_MAX, BP(7, 7).scale(UINT64_MAX)); in TEST()
176 EXPECT_EQ(UINT32_MAX, BP(1, 1).scale(UINT32_MAX)); in TEST()
178 EXPECT_EQ(0u, BP(1, 1).scale(0)); in TEST()
179 EXPECT_EQ(0u, BP(7, 7).scale(0)); in TEST()
182 EXPECT_EQ(0u, BP(0, 1).scale(UINT64_MAX)); in TEST()
183 EXPECT_EQ(0u, BP(0, 1).scale(UINT64_MAX)); in TEST()
184 EXPECT_EQ(0u, BP(0, 1).scale(0)); in TEST()
190 EXPECT_EQ(Two63 - 1, BP(1, 2).scale(UINT64_MAX)); in TEST()
[all …]
/llvm-project-15.0.7/llvm/test/CodeGen/AMDGPU/GlobalISel/
H A Dregbankselect-amdgcn.div.scale.mir19 …r(s32), [[INT1:%[0-9]+]]:vcc(s1) = G_INTRINSIC intrinsic(@llvm.amdgcn.div.scale), [[COPY2]](s32), …
22 %2:_(s32), %3:_(s1) = G_INTRINSIC intrinsic(@llvm.amdgcn.div.scale), %0, %1, 0
38 …r(s32), [[INT1:%[0-9]+]]:vcc(s1) = G_INTRINSIC intrinsic(@llvm.amdgcn.div.scale), [[COPY2]](s32), …
41 %2:_(s32), %3:_(s1) = G_INTRINSIC intrinsic(@llvm.amdgcn.div.scale), %0, %1, 0
57 …r(s32), [[INT1:%[0-9]+]]:vcc(s1) = G_INTRINSIC intrinsic(@llvm.amdgcn.div.scale), [[COPY]](s32), […
60 %2:_(s32), %3:_(s1) = G_INTRINSIC intrinsic(@llvm.amdgcn.div.scale), %0, %1, 0
75 …r(s32), [[INT1:%[0-9]+]]:vcc(s1) = G_INTRINSIC intrinsic(@llvm.amdgcn.div.scale), [[COPY]](s32), […
78 %2:_(s32), %3:_(s1) = G_INTRINSIC intrinsic(@llvm.amdgcn.div.scale), %0, %1, 0
/llvm-project-15.0.7/polly/www/video-js/
H A Dvideo-js.css227 transform: scale(0.5); -webkit-transform:scale(0.5); -moz-transform:scale(0.5);
235 …, -40px) scale(0.1); -webkit-transform: rotate(000deg) translate(0, -40px) scale(0.1); -moz-transf…
236 …, -40px) scale(0.2); -webkit-transform: rotate(045deg) translate(0, -40px) scale(0.2); -moz-transf…
237 …, -40px) scale(0.4); -webkit-transform: rotate(090deg) translate(0, -40px) scale(0.4); -moz-transf…
238 …, -40px) scale(0.6); -webkit-transform: rotate(135deg) translate(0, -40px) scale(0.6); -moz-transf…
239 …, -40px) scale(0.8); -webkit-transform: rotate(180deg) translate(0, -40px) scale(0.8); -moz-transf…
240 …, -40px) scale(1.0); -webkit-transform: rotate(225deg) translate(0, -40px) scale(1.0); -moz-transf…
241 …, -40px) scale(1.1); -webkit-transform: rotate(270deg) translate(0, -40px) scale(1.1); -moz-transf…
242 …, -40px) scale(1.3); -webkit-transform: rotate(315deg) translate(0, -40px) scale(1.3); -moz-transf…
/llvm-project-15.0.7/flang/lib/Evaluate/
H A Dcomplex.cpp53 Part scale; // <= 1.0 in Divide() local
57 scale = that.im_.Divide(that.re_, rounding).AccumulateFlags(flags); in Divide()
59 scale = that.re_.Divide(that.im_, rounding).AccumulateFlags(flags); in Divide()
63 Part dS{scale.Multiply(that.im_, rounding).AccumulateFlags(flags)}; in Divide()
66 Part cS{scale.Multiply(that.re_, rounding).AccumulateFlags(flags)}; in Divide()
69 Part aS{scale.Multiply(re_, rounding).AccumulateFlags(flags)}; in Divide()
70 Part bS{scale.Multiply(im_, rounding).AccumulateFlags(flags)}; in Divide()
/llvm-project-15.0.7/compiler-rt/test/asan/TestCases/
H A Ddebug_mapping.cpp20 size_t scale, offset; in main() local
21 __asan_get_shadow_mapping(&scale, &offset); in main()
23 fprintf(stderr, "scale: %d\n", (int)scale); in main()
H A Dscariness_score_test.cpp169 size_t scale; in main() local
171 __asan_get_shadow_mapping(&scale, &offset); in main()
172 size_t grain = 1 << scale; in main()
194 if (scale <= 3) { in main()
/llvm-project-15.0.7/llvm/test/CodeGen/AMDGPU/
H A Dllvm.amdgcn.div.scale.ll4 declare { float, i1 } @llvm.amdgcn.div.scale.f32(float, float, i1) #1
5 declare { double, i1 } @llvm.amdgcn.div.scale.f64(double, double, i1) #1
22 …%result = call { float, i1 } @llvm.amdgcn.div.scale.f32(float %a, float %b, i1 false) nounwind rea…
42 …%result = call { float, i1 } @llvm.amdgcn.div.scale.f32(float %a, float %b, i1 true) nounwind read…
100 …%result = call { float, i1 } @llvm.amdgcn.div.scale.f32(float %a, float %b, i1 false) nounwind rea…
118 …%result = call { float, i1 } @llvm.amdgcn.div.scale.f32(float %a, float %b, i1 true) nounwind read…
154 …%result = call { float, i1 } @llvm.amdgcn.div.scale.f32(float %a, float %b, i1 true) nounwind read…
416 %result = call { float, i1 } @llvm.amdgcn.div.scale.f32(float 8.0, float undef, i1 false)
426 %result = call { float, i1 } @llvm.amdgcn.div.scale.f32(float undef, float 8.0, i1 false)
436 %result = call { float, i1 } @llvm.amdgcn.div.scale.f32(float undef, float undef, i1 false)
[all …]
/llvm-project-15.0.7/lld/MachO/Arch/
H A DARM64Common.h85 int scale = 0; in encodePageOff12() local
87 scale = base >> 30; in encodePageOff12()
88 if (scale == 0 && (base & 0x0480'0000) == 0x0480'0000) // 128-bit variant in encodePageOff12()
89 scale = 4; in encodePageOff12()
95 base | bitField(va, scale, 12 - scale, 10)); in encodePageOff12()
/llvm-project-15.0.7/llvm/test/Instrumentation/HeapProfiler/
H A Dscale-granularity.ll1 ; Test that the scale (-memprof-mapping-scale) and granularity (-memprof-mapping-granularity) comma…
4 ; RUN: opt < %s -memprof -memprof-module -memprof-mapping-scale 1 -S | FileCheck --check-prefix=CHE…
5 ; RUN: opt < %s -memprof -memprof-module -memprof-mapping-granularity 16 -memprof-mapping-scale 0 -…
/llvm-project-15.0.7/llvm/lib/Support/
H A DBranchProbability.cpp69 static uint64_t scale(uint64_t Num, uint32_t N, uint32_t D) { in scale() function
107 uint64_t BranchProbability::scale(uint64_t Num) const { in scale() function in BranchProbability
108 return ::scale<D>(Num, N, D); in scale()
112 return ::scale<0>(Num, D, N); in scaleByInverse()
/llvm-project-15.0.7/llvm/test/Instrumentation/AddressSanitizer/
H A Dscale-offset.ll1 ; Test that the scale (-asan-mapping-scale) and offset (-asan-mapping-offset) command-line options …
4 ; RUN: opt < %s -passes='asan-pipeline' -asan-mapping-scale 1 -S | FileCheck --check-prefix=CHECK-S…
5 ; RUN: opt < %s -passes='asan-pipeline' -asan-mapping-offset 0xc0ffee -asan-mapping-scale 0 -S | Fi…
/llvm-project-15.0.7/llvm/test/Transforms/InstCombine/
H A Dpr27236.ll4 define float @test1(i32 %scale) {
10 %1 = icmp sgt i32 1, %scale
11 %2 = select i1 %1, i32 1, i32 %scale
/llvm-project-15.0.7/mlir/lib/Dialect/Tosa/Utils/
H A DQuantUtils.cpp22 static void computeMultiplierAndShiftTosaScale16(double scale, in computeMultiplierAndShiftTosaScale16() argument
26 const double mantissa = std::frexp(scale, &shift); in computeMultiplierAndShiftTosaScale16()
58 static void computeMultiplierAndShiftTosaScale32(double scale, in computeMultiplierAndShiftTosaScale32() argument
62 const double mantissa = std::frexp(scale, &shift); in computeMultiplierAndShiftTosaScale32()
91 void mlir::tosa::computeMultiplierAndShift(double scale, int32_t &multiplier, in computeMultiplierAndShift() argument
96 computeMultiplierAndShiftTosaScale16(scale, multiplier, shift); in computeMultiplierAndShift()
99 computeMultiplierAndShiftTosaScale32(scale, multiplier, shift); in computeMultiplierAndShift()

12345678910