Home
last modified time | relevance | path

Searched full:stride (Results 1 – 25 of 363) sorted by relevance

12345678910>>...15

/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVGatherScatterLowering.cpp44 // Cache of the BasePtr and Stride determined from this GEP. When a GEP is
73 bool matchStridedRecurrence(Value *Index, Loop *L, Value *&Stride,
89 // TODO: Should we consider the mask when looking for a stride?
117 Value *Stride = ConstantInt::get(StartVal->getType(), StrideVal); in matchStridedConstant() local
119 return std::make_pair(StartVal, Stride); in matchStridedConstant()
158 Value *Stride; in matchStridedStart() local
159 std::tie(Start, Stride) = matchStridedStart(BO->getOperand(OtherIndex), in matchStridedStart()
166 // Add the splat value to the start or multiply the start and stride by the in matchStridedStart()
180 Stride = Builder.CreateMul(Stride, Splat); in matchStridedStart()
184 Stride = Builder.CreateShl(Stride, Splat); in matchStridedStart()
[all …]
/freebsd/contrib/pnglite/
H A Dpnglite.c382 png_filter_sub(unsigned stride, uint8_t *in, uint8_t *out, unsigned len) in png_filter_sub() argument
388 if (i >= stride) in png_filter_sub()
389 a = out[i - stride]; in png_filter_sub()
396 png_filter_up(unsigned stride __unused, uint8_t *in, uint8_t *out, in png_filter_up()
409 png_filter_average(unsigned stride, uint8_t *in, uint8_t *out, in png_filter_average() argument
421 if (i >= stride) in png_filter_average()
422 a = out[i - stride]; in png_filter_average()
452 png_filter_paeth(unsigned stride, uint8_t *in, uint8_t *out, uint8_t *prev_line, in png_filter_paeth() argument
461 if (prev_line && i >= stride) { in png_filter_paeth()
462 a = out[i - stride]; in png_filter_paeth()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Headers/
H A Damxintrin.h72 /// Load tile rows from memory specifieid by "base" address and "stride" into
84 /// \param stride
85 /// The stride between the rows' data to be loaded in memory.
86 #define _tile_loadd(dst, base, stride) \ argument
88 (__SIZE_TYPE__)(stride))
90 /// Load tile rows from memory specifieid by "base" address and "stride" into
104 /// \param stride
105 /// The stride between the rows' data to be loaded in memory.
106 #define _tile_stream_loadd(dst, base, stride) \ argument
108 (__SIZE_TYPE__)(stride))
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dstride_dd.c29 static off_t stride = 1; variable
47 " [-s stride] [-k seekblocks] [-K seekbytes]\n" in usage()
51 "Simplified version of dd that supports the stride option.\n" in usage()
52 "A stride of n means that for each block written, n - 1 blocks\n" in usage()
53 "are skipped in both the input and output file. A stride of 1\n" in usage()
62 " stride: Read/write a block then skip (stride - 1) blocks" in usage()
145 stride = atoi(optarg); in parse_options()
183 if (bsize <= 0 || stride <= 0 || ifile == NULL || ofile == NULL || in parse_options()
215 if (stride > 1) { in read_entire_file()
216 if (lseek(ifd, (stride - 1) * bsize, SEEK_CUR) == -1) { in read_entire_file()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/Language/CPlusPlus/
H A DLibCxxSliceArray.cpp36 const size_t stride = ptr_sp->GetValueAsUnsigned(0); in LibcxxStdSliceArraySummaryProvider() local
38 stream.Printf("stride=%zu size=%zu", stride, size); in LibcxxStdSliceArraySummaryProvider()
48 /// slice(std::size_t start, std::size_t size, std::size_t stride);
52 /// - __stride_is @a stride
136 ValueObjectSP stride = m_backend.GetChildMemberWithName("__stride_"); in Update() local
138 if (!start || !size || !stride) in Update()
143 m_stride = stride->GetValueAsUnsigned(0); in Update()
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/
H A DVVPInstrPatternsVec.td23 // Unmasked (imm stride).
26 (i64 simm7:$stride), (MaskVT true_mask), i32:$avl),
28 (LO7 $stride), $addr, $val, $avl)>;
32 i64:$stride, (MaskVT true_mask), i32:$avl),
34 $stride, $addr, $val, $avl)>;
35 // Masked (imm stride).
38 (i64 simm7:$stride), MaskVT:$mask, i32:$avl),
40 (LO7 $stride), $addr, $val, $mask, $avl)>;
44 i64:$stride, MaskVT:$mask, i32:$avl),
46 $stride, $addr, $val, $mask, $avl)>;
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DVectorUtils.h381 /// Create a stride shuffle mask.
384 /// are incremented by \p Stride. The mask can be used to deinterleave an
388 /// <Start, Start + Stride, ..., Start + Stride * (VF - 1)>
390 /// For example, the mask for Start = 0, Stride = 2, and VF = 4 is:
393 llvm::SmallVector<int, 16> createStrideMask(unsigned Start, unsigned Stride,
444 /// The group of interleaved loads/stores sharing the same stride and
449 /// value of the access's stride.
476 InterleaveGroup(InstTy *Instr, int32_t Stride, Align Alignment) in InterleaveGroup() argument
478 Factor = std::abs(Stride); in InterleaveGroup()
481 Reverse = Stride < 0; in InterleaveGroup()
[all …]
H A DLoopCacheAnalysis.h91 /// - equal to '(TripCount * stride) / cache_line_size' if:
92 /// + the reference stride is less than the cache line size, and
111 /// the loop induction variable is the rightmost one, and the access stride is
112 /// smaller than the cache line size \p CLS. Provide a valid \p Stride value
114 bool isConsecutive(const Loop &L, const SCEV *&Stride, unsigned CLS) const;
184 /// reference stride if the reference stride is less than the cache line
187 /// - equal to the innermost loop trip count if the reference stride is greater
245 /// - equal to '(TripCount * stride) / cache_line_size' if (a) loop \p L's
247 /// with loop \p L, and (b) the reference stride i
[all...]
/freebsd/contrib/llvm-project/libcxx/include/__mdspan/
H A Dlayout_stride.h134 // compute the permutation for sorting the stride array
135 // we never actually sort the stride array
156 // [mdspan.layout.stride.cons], constructors
229 // stride() only compiles for rank > 0 in requires()
232 static_cast<index_type>(__other.stride(_Pos))...}; in requires()
237 // stride() only compiles for rank > 0
241 …return ((static_cast<index_type>(__other.stride(_Pos)) > static_cast<index_type>(0)) && ... && tru…
254 // [mdspan.layout.stride.obs], observers
330 // according to the standard layout_stride does not have a constraint on stride(r) for rank>0
332 _LIBCPP_HIDE_FROM_ABI constexpr index_type stride(rank_type __r) const noexcept { in stride() function
[all …]
/freebsd/contrib/ofed/libmlx5/
H A Dmlx5dv_init_obj.329 uint32_t stride;
36 uint32_t stride;
65 uint32_t stride;
77 uint32_t stride;
/freebsd/contrib/llvm-project/llvm/include/llvm/Object/
H A DDXContainer.h48 uint32_t Stride = sizeof(T); // size of each element in the list. member
51 ViewArray(StringRef D, size_t S) : Data(D), Stride(S) {} in ViewArray()
60 uint32_t Stride; // size of each element in the list. member
64 : Data(A.Data), Stride(A.Stride), Current(C) {} in iterator()
75 memcpy(static_cast<void *>(&Val), Current, std::min(Stride, MaxStride()));
83 Current += Stride;
95 Current -= Stride;
113 size_t size() const { return Data.size() / Stride; } in size()
162 uint32_t getResourceStride() const { return Resources.Stride; } in getResourceStride()
217 uint32_t getSigElementStride() const { return SigInputElements.Stride; } in getSigElementStride()
H A DMinidump.h111 MemoryInfoIterator(ArrayRef<uint8_t> Storage, size_t Stride) in MemoryInfoIterator() argument
112 : Storage(Storage), Stride(Stride) { in MemoryInfoIterator()
113 assert(Storage.size() % Stride == 0); in MemoryInfoIterator()
126 Storage = Storage.drop_front(Stride);
132 size_t Stride; variable
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DLoopCacheAnalysis.cpp291 const SCEV *Stride = nullptr; in computeRefCost() local
292 if (isConsecutive(L, Stride, CLS)) { in computeRefCost()
294 // (TripCount*Stride)/CLS. in computeRefCost()
295 assert(Stride != nullptr && in computeRefCost()
296 "Stride should not be null for consecutive access!"); in computeRefCost()
297 Type *WiderType = SE.getWiderType(Stride->getType(), TripCount->getType()); in computeRefCost()
299 Stride = SE.getNoopOrAnyExtend(Stride, WiderType); in computeRefCost()
301 const SCEV *Numerator = SE.getMulExpr(Stride, TripCount); in computeRefCost()
310 << "Access is consecutive: RefCost=(TripCount*Stride)/CLS=" in computeRefCost()
467 bool IndexedReference::isConsecutive(const Loop &L, const SCEV *&Stride, in isConsecutive() argument
[all …]
H A DLoopAccessAnalysis.cpp124 cl::desc("Enable symbolic stride memory access versioning"));
139 "laa-speculate-unit-stride", cl::Hidden,
160 // symbolic stride replaced by one. in replaceSymbolicStrideSCEV()
163 // For a non-symbolic stride, just return the original expression. in replaceSymbolicStrideSCEV()
840 int64_t Stride = getPtrStride(PSE, AccessTy, Ptr, L, Strides).value_or(0); in isNoWrap() local
841 if (Stride == 1 || PSE.hasNoOverflow(Ptr, SCEVWrapPredicate::IncrementNUSW)) in isNoWrap()
1456 /// Check whether the access through \p Ptr has a constant stride.
1469 LLVM_DEBUG(dbgs() << "LAA: Bad stride - Scalable object: " << *AccessTy in getPtrStride()
1479 LLVM_DEBUG(dbgs() << "LAA: Bad stride - Not an AddRecExpr pointer " << *Ptr in getPtrStride()
1484 // The access function must stride over the innermost loop. in getPtrStride()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InterleavedAccess.cpp60 /// Reference to the interleaving stride in terms of elements.
106 /// \p 'Ind' and the interleaving stride factor \p F. In order to generate
135 // Stride 4: in isSupported()
138 // Stride 3: in isSupported()
150 // We support shuffle represents stride 4 for byte type with size of in isSupported()
198 // In the case of stride 3 with a vector of 32 elements load the information in decompose()
289 unsigned VecElems, unsigned Stride, in reorderSubVector() argument
293 for (unsigned i = 0; i < Stride; i++) in reorderSubVector()
301 for (unsigned i = 0; i < (VecElems / 16) * Stride; i += 2) { in reorderSubVector()
302 genShuffleBland(VT, VPShuf, OptimizeShuf, (i / Stride) * 16, in reorderSubVector()
[all …]
H A DX86LowerAMXType.cpp252 // Use the maximun column as stride. in combineLoadBitcast()
253 Value *Stride = Builder.getInt64(64); in combineLoadBitcast() local
255 std::array<Value *, 4> Args = {Row, Col, I8Ptr, Stride}; in combineLoadBitcast()
263 // %stride);
278 // Use the maximum column as stride. It must be the same with load in combineBitcastStore()
279 // stride. in combineBitcastStore()
280 Value *Stride = Builder.getInt64(64); in combineBitcastStore() local
282 std::array<Value *, 5> Args = {Row, Col, I8Ptr, Stride, Tile}; in combineBitcastStore()
304 Value *I8Ptr, *Stride; in transformBitcast() local
310 Stride = Builder.getInt64(64); in transformBitcast()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DStraightLineStrengthReduce.cpp144 : CandidateKind(CT), Base(B), Index(Idx), Stride(S), Ins(I) {} in Candidate()
150 // Note that Index and Stride of a GEP candidate do not necessarily have the
151 // same integer type. In that case, during rewriting, Stride will be
155 Value *Stride = nullptr; member
166 // <Base: a, Index: 1, Stride: b + 2>
170 // <Base: b, Index: 2, Stride: a + 1>
182 // share the same base and stride.
230 // A helper function that factors ArrayIdx to a product of a stride and a
276 // They share the same base, stride, and candidate kind. in isBasisFor()
277 Basis.Base == C.Base && Basis.Stride == C.Stride && in isBasisFor()
[all …]
H A DLoopDataPrefetch.cpp50 MinPrefetchStride("min-prefetch-stride",
51 cl::desc("Min stride to add prefetches"), cl::Hidden);
74 /// Check if the stride of the accesses is large enough to
158 // No need to check if any stride goes. in isStrideLargeEnough()
163 // If MinStride is set, don't prefetch unless we can ensure that stride is in isStrideLargeEnough()
384 << "a minimum stride of " << TargetMinStride << ", " in runOnLoop()
388 // Check if the stride of the accesses is large enough to warrant a in runOnLoop()
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DDXContainer.cpp290 if (Error Err = readInteger(Data, Current, Resources.Stride)) in parse()
294 size_t BindingDataSize = Resources.Stride * ResourceCount; in parse()
303 Resources.Stride = sizeof(v2::ResourceBindInfo); in parse()
344 if (Error Err = readInteger(Data, Current, SigInputElements.Stride)) in parse()
347 // Assign the stride to all the arrays. in parse()
348 SigOutputElements.Stride = SigPatchOrPrimElements.Stride = in parse()
349 SigInputElements.Stride; in parse()
352 (ptrdiff_t)(ElementCount * SigInputElements.Stride)) in parse()
356 size_t InputSize = SigInputElements.Stride * InputCount; in parse()
360 size_t OutputSize = SigOutputElements.Stride * OutputCount; in parse()
[all …]
/freebsd/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_gsupport.cpp580 // "*p_ub += stride" compensates for the discrepancy.
583 // stride value. We adjust the dispatch parameters accordingly (by +-1), but
584 // we still adjust p_ub by the actual stride value.
605 long stride; \
624 (kmp_int *)p_ub, (kmp_int *)&stride); \
627 KMP_DEBUG_ASSERT(stride == str); \
645 long stride; \
664 (kmp_int *)p_ub, (kmp_int *)&stride); \
667 KMP_DEBUG_ASSERT(stride == str); \
690 long stride; \
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DMatrixBuilder.h65 /// \p Stride - Space between columns
67 Value *Stride, bool IsVolatile, unsigned Rows,
71 Value *Ops[] = {DataPtr, Stride, B.getInt1(IsVolatile), B.getInt32(Rows),
73 Type *OverloadedTypes[] = {RetType, Stride->getType()};
88 /// \p Stride - Space between columns
90 Value *Stride, bool IsVolatile,
94 Stride, B.getInt1(IsVolatile),
96 Type *OverloadedTypes[] = {Matrix->getType(), Stride->getType()};
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DDXILResource.cpp87 uint32_t UniqueID, uint32_t Stride, in StructuredBuffer() argument
91 RI.Struct.Stride = Stride; in StructuredBuffer()
151 uint32_t Stride, Align Alignment, in RWStructuredBuffer() argument
156 RI.Struct.Stride = Stride; in RWStructuredBuffer()
313 Tags.push_back(getIntMD(Struct.Stride)); in getAsMetadata()
352 Word1 = Struct.Stride; in getAnnotateProps()
/freebsd/sys/dev/vt/hw/simplefb/
H A Dsimplefb.c164 pcell_t height, width, stride; in vt_simplefb_init()
178 OF_getencprop(node, "stride", &stride, sizeof(stride)) == -1 || in vt_simplefb_init()
185 sc->fb_stride = stride; in vt_simplefb_init()
162 pcell_t height, width, stride; vt_simplefb_init() local
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DDXILResource.h45 uint32_t Stride; member
49 return std::tie(Stride, Alignment) == std::tie(RHS.Stride, RHS.Alignment);
129 uint32_t UniqueID, uint32_t Stride,
150 uint32_t UniqueID, uint32_t Stride,
/freebsd/crypto/openssh/openbsd-compat/
H A Dbcrypt_pbkdf.c122 size_t i, j, amt, stride; in bcrypt_pbkdf() local
134 stride = (keylen + sizeof(out) - 1) / sizeof(out); in bcrypt_pbkdf()
135 amt = (keylen + stride - 1) / stride; in bcrypt_pbkdf()
168 size_t dest = i * stride + (count - 1); in bcrypt_pbkdf()

12345678910>>...15