stride 38 apps/HelloAndroid/jni/hello_generator.cpp curved.specialize(input.dim(0).stride() == 1); stride 39 apps/HelloAndroid/jni/hello_generator.cpp curved.specialize(input.dim(0).stride() == -1); stride 85 apps/HelloAndroid/jni/hello_wrapper.cpp srcBuf.dim[0].stride = 1; stride 88 apps/HelloAndroid/jni/hello_wrapper.cpp srcBuf.dim[1].stride = w; stride 94 apps/HelloAndroid/jni/hello_wrapper.cpp srcBuf.dim[0].stride = -1; stride 95 apps/HelloAndroid/jni/hello_wrapper.cpp srcBuf.dim[1].stride = -w; stride 102 apps/HelloAndroid/jni/hello_wrapper.cpp dstBuf.dim[0].stride = 1; stride 105 apps/HelloAndroid/jni/hello_wrapper.cpp dstBuf.dim[1].stride = w; stride 87 apps/HelloAndroid/src/com/example/hellohalide/CameraPreview.java int stride = ((s.width + 15) / 16) * 16; stride 88 apps/HelloAndroid/src/com/example/hellohalide/CameraPreview.java int y_size = stride * s.height; stride 89 apps/HelloAndroid/src/com/example/hellohalide/CameraPreview.java int c_stride = ((stride/2 + 15) / 16) * 16; stride 39 apps/HelloAndroidCamera2/jni/LockedSurface.cpp uint32_t lumaRowStrideBytes = buffer_.stride; stride 41 apps/HelloAndroidCamera2/jni/LockedSurface.cpp uint32_t chromaRowStrideBytes = ALIGN(buffer_.stride / 2, 16); stride 44 apps/HelloAndroidCamera2/jni/YuvBufferT.cpp chromaU_.dim(0).stride() == chromaV_.dim(0).stride() && stride 45 apps/HelloAndroidCamera2/jni/YuvBufferT.cpp chromaU_.dim(1).stride() == chromaV_.dim(1).stride()) { stride 47 apps/HelloAndroidCamera2/jni/YuvBufferT.cpp if (chromaU_.dim(0).stride() == 2 && stride 48 apps/HelloAndroidCamera2/jni/YuvBufferT.cpp chromaV_.dim(0).stride() == 2) { stride 54 apps/HelloAndroidCamera2/jni/YuvBufferT.cpp } else if (chromaU_.dim(0).stride() == 1 && stride 55 apps/HelloAndroidCamera2/jni/YuvBufferT.cpp chromaV_.dim(0).stride() == 1) { stride 59 apps/HelloAndroidCamera2/jni/YuvBufferT.cpp if (chromaU_.width() == chromaU_.dim(1).stride() && stride 60 apps/HelloAndroidCamera2/jni/YuvBufferT.cpp chromaV_.width() == chromaV_.dim(1).stride()) { stride 162 apps/HelloAndroidCamera2/jni/YuvBufferT.cpp {0, buf.dim(0).extent(), -buf.dim(0).stride()}, stride 163 apps/HelloAndroidCamera2/jni/YuvBufferT.cpp {0, buf.dim(1).extent(), -buf.dim(1).stride()}, stride 24 apps/HelloAndroidCamera2/jni/deinterleave_generator.cpp result.specialize(uvInterleaved.dim(0).stride() == 1); stride 25 apps/HelloAndroidCamera2/jni/deinterleave_generator.cpp result.specialize(uvInterleaved.dim(0).stride() == -1); stride 42 apps/HelloAndroidCamera2/jni/edge_detect_generator.cpp result.specialize(input.dim(0).stride() == 1); stride 43 apps/HelloAndroidCamera2/jni/edge_detect_generator.cpp result.specialize(input.dim(0).stride() == -1); stride 25 apps/HelloAndroidGL/jni/android_halide_gl_native.cpp dstBuf.stride[0] = 4; stride 26 apps/HelloAndroidGL/jni/android_halide_gl_native.cpp dstBuf.stride[1] = 4 * width; stride 27 apps/HelloAndroidGL/jni/android_halide_gl_native.cpp dstBuf.stride[2] = 1; stride 84 apps/HelloHexagon/pipeline.cpp input.dim(i).set_stride((input.dim(i).stride()/vector_size)*vector_size); stride 85 apps/HelloHexagon/pipeline.cpp blur.dim(i).set_stride((blur.dim(i).stride()/vector_size)*vector_size); stride 26 apps/c_backend/run.cpp origin -= in->dim[0].min * in->dim[0].stride; stride 27 apps/c_backend/run.cpp origin -= in->dim[1].min * in->dim[1].stride; stride 30 apps/c_backend/run.cpp result += origin[x * in->dim[0].stride + y * in->dim[1].stride]; stride 53 apps/camera_pipe/fcam/Demosaic_ARM.cpp int rawPixelsPerRow = input.stride(1); // Assumes bytesPerRow is even stride 165 apps/fft/main.cpp R_c2c[0].raw_buffer()->dim[2].stride = 0; stride 166 apps/fft/main.cpp R_c2c[1].raw_buffer()->dim[2].stride = 0; stride 192 apps/fft/main.cpp R_r2c[0].raw_buffer()->dim[2].stride = 0; stride 193 apps/fft/main.cpp R_r2c[1].raw_buffer()->dim[2].stride = 0; stride 218 apps/fft/main.cpp R_c2r[0].raw_buffer()->dim[2].stride = 0; stride 37 apps/hexagon_benchmarks/conv3x3_generator.cpp Expr input_stride = input.dim(1).stride(); stride 40 apps/hexagon_benchmarks/conv3x3_generator.cpp Expr output_stride = output.dim(1).stride(); stride 30 apps/hexagon_benchmarks/dilate3x3_generator.cpp Expr input_stride = input.dim(1).stride(); stride 33 apps/hexagon_benchmarks/dilate3x3_generator.cpp Expr output_stride = output.dim(1).stride(); stride 33 apps/hexagon_benchmarks/gaussian5x5_generator.cpp Expr input_stride = input.dim(1).stride(); stride 36 apps/hexagon_benchmarks/gaussian5x5_generator.cpp Expr output_stride = output.dim(1).stride(); stride 41 apps/hexagon_benchmarks/median3x3_generator.cpp Expr input_stride = input.dim(1).stride(); stride 44 apps/hexagon_benchmarks/median3x3_generator.cpp Expr output_stride = output.dim(1).stride(); stride 35 apps/hexagon_benchmarks/sobel_generator.cpp Expr input_stride = input.dim(1).stride(); stride 38 apps/hexagon_benchmarks/sobel_generator.cpp Expr output_stride = output.dim(1).stride(); stride 131 apps/hexagon_matmul/pipeline.cpp .set_stride((A.dim(1).stride()/vector_size_u8)*vector_size_u8); stride 136 apps/hexagon_matmul/pipeline.cpp .set_stride((B.dim(1).stride()/vector_size_u8)*vector_size_u8); stride 141 apps/hexagon_matmul/pipeline.cpp .set_stride((output.dim(1).stride()/vector_size_u32)*vector_size_u32); stride 24 apps/opengl_demo/main.cpp buf.stride[0] = channels; stride 25 apps/opengl_demo/main.cpp buf.stride[1] = channels * width; stride 26 apps/opengl_demo/main.cpp buf.stride[2] = 1; stride 57 apps/simd_op_check/driver.cpp buf.dim[0].stride = 1; stride 58 apps/simd_op_check/driver.cpp buf.dim[1].stride = w; stride 137 apps/templates/SimpleAppAPI.h p3 += buf->stride[3]; stride 139 apps/templates/SimpleAppAPI.h p2 += buf->stride[2]; stride 141 apps/templates/SimpleAppAPI.h p1 += buf->stride[1]; stride 143 apps/templates/SimpleAppAPI.h p0 += buf->stride[0]; stride 197 apps/templates/SimpleAppAPI.h p3 += buf->stride[3]; stride 199 apps/templates/SimpleAppAPI.h p2 += buf->stride[2]; stride 201 apps/templates/SimpleAppAPI.h p1 += buf->stride[1]; stride 203 apps/templates/SimpleAppAPI.h p0 += buf->stride[0]; stride 29 apps/templates/tests/example_generator.cpp Expr input_planar = input.stride(0) == 1; stride 30 apps/templates/tests/example_generator.cpp Expr input_chunky = input.stride(2) == 1; stride 31 apps/templates/tests/example_generator.cpp Expr output_planar = output.output_buffer().stride(0) == 1; stride 32 apps/templates/tests/example_generator.cpp Expr output_chunky = output.output_buffer().stride(2) == 1; stride 161 python_bindings/python/Image.cpp repr = boost::str(f % suffix % t.bits() % t.bytes() % buffer.extent(0) % buffer.extent(1) % buffer.extent(2) % buffer.extent(3) % buffer.min(0) % buffer.min(1) % buffer.min(2) % buffer.min(3) % buffer.stride(0) % buffer.stride(1) % buffer.stride(2) % buffer.stride(3)); stride 227 python_bindings/python/Image.cpp return im.stride(d); stride 517 python_bindings/python/Image.cpp shape[i].stride = array.strides(i) / t.bytes(); stride 530 python_bindings/python/Image.cpp std::vector<int32_t> extent(im.dimensions()), stride(im.dimensions()); stride 533 python_bindings/python/Image.cpp stride[i] = im.dim(i).stride() * im.type().bytes(); stride 540 python_bindings/python/Image.cpp stride, stride 36 python_bindings/tests/the_sort_function.c int32_t stride[4]; stride 406 src/AddImageChecks.cpp stride_constrained = image.dim(i).stride(); stride 423 src/AddImageChecks.cpp stride_constrained = image.dim(i).stride(); stride 63 src/AlignLoads.cpp const int64_t *const_stride = ramp ? as_const_int(ramp->stride) : nullptr; stride 96 src/AlignLoads.cpp int stride = static_cast<int>(*const_stride); stride 97 src/AlignLoads.cpp if (stride != 1) { stride 98 src/AlignLoads.cpp internal_assert(stride >= 0); stride 105 src/AlignLoads.cpp int shift = known_alignment && aligned_offset < stride ? aligned_offset : 0; stride 109 src/AlignLoads.cpp Expr dense_index = Ramp::make(dense_base, 1, lanes*stride); stride 113 src/AlignLoads.cpp expr = Shuffle::make_slice(dense, shift, stride, lanes); stride 118 src/AlignLoads.cpp internal_assert(stride == 1); stride 566 src/Bounds.cpp Expr lane = op->base + var * op->stride; stride 330 src/Buffer.h HALIDE_BUFFER_FORWARD_CONST(stride) stride 58 src/CSE.cpp return !is_const(a->stride); stride 684 src/CodeGen_ARM.cpp if (is_one(ramp->stride) && stride 746 src/CodeGen_ARM.cpp Expr slice_ramp = Ramp::make(slice_base, ramp->stride, intrin_type.lanes() * num_vecs); stride 780 src/CodeGen_ARM.cpp const IntImm *stride = ramp->stride.as<IntImm>(); stride 781 src/CodeGen_ARM.cpp if (stride && (stride->value == 1 || stride->value == -1)) { stride 797 src/CodeGen_ARM.cpp Value *stride = codegen(ramp->stride * op->value.type().bytes()); stride 800 src/CodeGen_ARM.cpp Value *store_args[] = {base, stride, val}; stride 832 src/CodeGen_ARM.cpp const IntImm *stride = ramp ? ramp->stride.as<IntImm>() : nullptr; stride 835 src/CodeGen_ARM.cpp if (stride && (stride->value == 1 || stride->value == -1)) { stride 841 src/CodeGen_ARM.cpp if (stride && stride->value >= 2 && stride->value <= 4) { stride 852 src/CodeGen_ARM.cpp if ((mod_rem.modulus % stride->value) == 0) { stride 853 src/CodeGen_ARM.cpp offset = mod_rem.remainder % stride->value; stride 855 src/CodeGen_ARM.cpp offset = add_b->value % stride->value; stride 857 src/CodeGen_ARM.cpp offset += stride->value; stride 890 src/CodeGen_ARM.cpp llvm::Type *load_return_type = llvm_type_of(op->type.with_lanes(intrin_lanes*stride->value)); stride 895 src/CodeGen_ARM.cpp Constant *constant = ConstantInt::get(i32_t, j*stride->value+offset); stride 902 src/CodeGen_ARM.cpp Expr slice_base = simplify(base + i*ramp->stride); stride 903 src/CodeGen_ARM.cpp Expr slice_ramp = Ramp::make(slice_base, ramp->stride, intrin_lanes); stride 929 src/CodeGen_ARM.cpp Value *stride = codegen(ramp->stride * op->type.bytes()); stride 931 src/CodeGen_ARM.cpp Value *args[] = {base, stride}; stride 638 src/CodeGen_C.cpp num_elems += b.dim[d].stride * (b.dim[d].extent - 1); stride 654 src/CodeGen_C.cpp << ", " << buffer.dim(i).stride() << "}"; stride 144 src/CodeGen_Hexagon.cpp return is_one(r->stride); stride 767 src/CodeGen_Hexagon.cpp bool is_strided_ramp(const vector<int> &indices, int &start, int &stride) { stride 787 src/CodeGen_Hexagon.cpp stride = 1; stride 794 src/CodeGen_Hexagon.cpp stride = dy/dx; stride 795 src/CodeGen_Hexagon.cpp start = indices[x0] - stride*x0; stride 799 src/CodeGen_Hexagon.cpp if (indices[i] != -1 && indices[i] != start + i*stride) { stride 894 src/CodeGen_Hexagon.cpp int start = 0, stride = 0; stride 895 src/CodeGen_Hexagon.cpp if (!is_strided_ramp(indices, start, stride)) { stride 906 src/CodeGen_Hexagon.cpp if (stride == 1) { stride 946 src/CodeGen_Hexagon.cpp } else if (stride == 2 && result_elements*2 == a_elements + b_elements) { stride 1565 src/CodeGen_LLVM.cpp const int64_t *pstride = as_const_int(ramp->stride); stride 1570 src/CodeGen_LLVM.cpp int64_t stride = *pstride; stride 1573 src/CodeGen_LLVM.cpp width = next_power_of_two(ramp->lanes * stride); stride 1638 src/CodeGen_LLVM.cpp const IntImm *stride = ramp ? ramp->stride.as<IntImm>() : nullptr; stride 1640 src/CodeGen_LLVM.cpp if (ramp && stride && stride->value == 1) { stride 1642 src/CodeGen_LLVM.cpp } else if (ramp && stride && stride->value == 2) { stride 1691 src/CodeGen_LLVM.cpp } else if (ramp && stride && stride->value == -1) { stride 1709 src/CodeGen_LLVM.cpp Value *stride = codegen(ramp->stride); stride 1716 src/CodeGen_LLVM.cpp ptr = builder->CreateInBoundsGEP(ptr, stride); stride 1751 src/CodeGen_LLVM.cpp if (is_const(op->stride) && !is_const(op->base)) { stride 1757 src/CodeGen_LLVM.cpp Expr ramp = Ramp::make(make_zero(op->base.type()), op->stride, op->lanes); stride 1763 src/CodeGen_LLVM.cpp Value *stride = codegen(op->stride); stride 1769 src/CodeGen_LLVM.cpp base = builder->CreateFAdd(base, stride); stride 1771 src/CodeGen_LLVM.cpp base = builder->CreateNSWAdd(base, stride); stride 1773 src/CodeGen_LLVM.cpp base = builder->CreateAdd(base, stride); stride 1889 src/CodeGen_LLVM.cpp if (ramp && is_one(ramp->stride)) { // Dense vector store stride 1972 src/CodeGen_LLVM.cpp internal_assert(ramp && is_one(ramp->stride)) << "Should be dense vector load\n"; stride 2034 src/CodeGen_LLVM.cpp const IntImm *stride = ramp ? ramp->stride.as<IntImm>() : nullptr; stride 2036 src/CodeGen_LLVM.cpp if (ramp && is_one(ramp->stride)) { // Dense vector load stride 2038 src/CodeGen_LLVM.cpp } else if (ramp && stride && stride->value == -1) { stride 3104 src/CodeGen_LLVM.cpp if (ramp && is_one(ramp->stride)) { stride 3146 src/CodeGen_LLVM.cpp const IntImm *const_stride = ramp->stride.as<IntImm>(); stride 3147 src/CodeGen_LLVM.cpp Value *stride = codegen(ramp->stride); stride 3165 src/CodeGen_LLVM.cpp ptr = builder->CreateInBoundsGEP(ptr, stride); stride 174 src/CodeGen_Metal_Dev.cpp string id_stride = print_expr(op->stride); stride 205 src/CodeGen_Metal_Dev.cpp if (is_one(r->stride)) { stride 131 src/CodeGen_OpenCL_Dev.cpp string id_stride = print_expr(op->stride); stride 161 src/CodeGen_OpenCL_Dev.cpp const IntImm *i = r->stride.as<IntImm>(); stride 169 src/CodeGen_OpenGLCompute_Dev.cpp rhs << ", " << print_expr(Add::make(op->base, Mul::make(i, op->stride))); stride 484 src/CodeGen_OpenGL_Dev.cpp if (r && is_zero(r->base) && is_one(r->stride) && r->lanes == 4) { stride 487 src/CodeGen_OpenGL_Dev.cpp } else if (r && is_zero(r->base) && is_one(r->stride) && r->lanes == 3) { stride 489 src/CodeGen_OpenGL_Dev.cpp } else if (r && is_zero(r->base) && is_one(r->stride) && r->lanes == 2) { stride 513 src/CodeGen_OpenGL_Dev.cpp result[i] = print_expr(simplify(r->base + i * r->stride)); stride 614 src/CodeGen_OpenGL_Dev.cpp if (rc && is_zero(rc->base) && is_one(rc->stride) && bx && by) { stride 809 src/CodeGen_OpenGL_Dev.cpp rhs << ", " << print_expr(Add::make(op->base, Mul::make(i, op->stride))); stride 23 src/Deinterleave.cpp StoreCollector(const std::string &name, int stride, int ms, stride 26 src/Deinterleave.cpp store_name(name), store_stride(stride), max_stores(ms), stride 90 src/Deinterleave.cpp if (!r || !is_const(r->stride, store_stride)) { stride 137 src/Deinterleave.cpp Stmt collect_strided_stores(Stmt stmt, const std::string& name, int stride, int max_stores, stride 140 src/Deinterleave.cpp StoreCollector collect(name, stride, max_stores, lets, stores); stride 179 src/Deinterleave.cpp expr = op->base + starting_lane * op->stride; stride 182 src/Deinterleave.cpp expr = Ramp::make(expr, op->stride * lane_stride, new_lanes); stride 578 src/Deinterleave.cpp const int64_t *stride_ptr = as_const_int(r0->stride); stride 583 src/Deinterleave.cpp const int64_t stride = *stride_ptr; stride 585 src/Deinterleave.cpp const int64_t expected_stores = stride == 1 ? lanes : stride; stride 591 src/Deinterleave.cpp stride, expected_stores, stride 630 src/Deinterleave.cpp if (stride == 1) { stride 645 src/Deinterleave.cpp if (!is_const(ramp->stride, lanes) || ramp->lanes != lanes) goto fail; stride 660 src/Deinterleave.cpp if (stride == 1) { stride 674 src/Deinterleave.cpp if (stride == 1) { stride 249 src/IR.cpp Expr Ramp::make(const Expr &base, const Expr &stride, int lanes) { stride 251 src/IR.cpp internal_assert(stride.defined()) << "Ramp of undefined\n"; stride 253 src/IR.cpp internal_assert(stride.type().is_scalar()) << "Ramp with vector stride\n"; stride 255 src/IR.cpp internal_assert(stride.type() == base.type()) << "Ramp of mismatched types\n"; stride 260 src/IR.cpp node->stride = stride; stride 647 src/IR.cpp Expr Shuffle::make_slice(const Expr &vector, int begin, int stride, int size) { stride 648 src/IR.cpp if (begin == 0 && size == vector.type().lanes() && stride == 1) { stride 654 src/IR.cpp indices.push_back(begin + i * stride); stride 698 src/IR.cpp bool is_ramp(const std::vector<int> &indices, int stride = 1) { stride 700 src/IR.cpp if (indices[i + 1] != indices[i] + stride) { stride 223 src/IR.h Expr base, stride; stride 226 src/IR.h EXPORT static Expr make(const Expr &base, const Expr &stride, int lanes); stride 689 src/IR.h EXPORT static Expr make_slice(const Expr &vector, int begin, int stride, int size); stride 312 src/IREquality.cpp compare_expr(e->stride, op->stride); stride 207 src/IRMatch.cpp expr = e->stride; stride 208 src/IRMatch.cpp op->stride.accept(this); stride 127 src/IRMutator.cpp Expr stride = mutate(op->stride); stride 129 src/IRMutator.cpp stride.same_as(op->stride)) { stride 132 src/IRMutator.cpp expr = Ramp::make(base, stride, op->lanes); stride 62 src/IROperator.cpp return is_const(r->base) && is_const(r->stride); stride 166 src/IROperator.cpp return is_positive_const(r->base) && is_positive_const(r->stride); stride 182 src/IROperator.cpp return is_negative_const(r->base) && is_negative_const(r->stride); stride 200 src/IROperator.cpp return is_negative_negatable_const(r->base) && is_negative_const(r->stride); stride 497 src/IRPrinter.cpp print(op->stride); stride 120 src/IRVisitor.cpp op->stride.accept(this); stride 372 src/IRVisitor.cpp include(op->stride); stride 74 src/LoopCarry.cpp Expr lb = is_linear(r->stride, linear); stride 70 src/OutputImageParam.h Expr stride(int i) const {return dim(i).stride();} stride 334 src/Parameter.cpp Dimension Dimension::set_stride(Expr stride) { stride 335 src/Parameter.cpp param.set_stride_constraint(d, stride); stride 164 src/Parameter.h EXPORT Expr stride() const; stride 953 src/Pipeline.cpp tb.query.dim(i).stride() != tb.orig.dim(i).stride()) { stride 288 src/Prefetch.cpp Expr stride = call->args[i+1]; stride 291 src/Prefetch.cpp new_offset += Variable::make(Int(32), index_name) * stride; stride 338 src/Prefetch.cpp Expr stride = call->args[i+1]; stride 339 src/Prefetch.cpp Expr stride_bytes = stride * elem_size; stride 344 src/Prefetch.cpp Expr is_negative_stride = (stride < 0); stride 133 src/RemoveUndef.cpp Expr stride = mutate(op->stride); stride 136 src/RemoveUndef.cpp stride.same_as(op->stride)) { stride 139 src/RemoveUndef.cpp expr = Ramp::make(base, stride, op->lanes); stride 244 src/Simplify.cpp string stride = name + ".stride." + std::to_string(i); stride 245 src/Simplify.cpp if (var_info.contains(stride)) { stride 246 src/Simplify.cpp var_info.ref(stride).old_uses++; stride 431 src/Simplify.cpp const_int_bounds(r->stride, &min_stride, &max_stride)) { stride 543 src/Simplify.cpp Cast::make(op->type.element_of(), ramp_value->stride), stride 692 src/Simplify.cpp ramp_a->stride + ramp_b->stride, ramp_a->lanes)); stride 697 src/Simplify.cpp ramp_a->stride, ramp_a->lanes)); stride 702 src/Simplify.cpp ramp_b->stride, ramp_b->lanes)); stride 1040 src/Simplify.cpp ramp_a->stride - ramp_b->stride, ramp_a->lanes)); stride 1044 src/Simplify.cpp ramp_a->stride, ramp_a->lanes)); stride 1048 src/Simplify.cpp make_zero(ramp_b->stride.type())- ramp_b->stride, stride 1514 src/Simplify.cpp expr = mutate(Ramp::make(ramp_a->base * m, ramp_a->stride * m, ramp_a->lanes)); stride 1517 src/Simplify.cpp expr = mutate(Ramp::make(m * ramp_b->base, m * ramp_b->stride, ramp_b->lanes)); stride 1658 src/Simplify.cpp const_int(ramp_a->stride, &ia) && stride 1670 src/Simplify.cpp const_int(ramp_a->stride, &ia) && stride 2072 src/Simplify.cpp const_int(ramp_a->stride, &ia) && stride 2081 src/Simplify.cpp const_int(ramp_a->stride, &ia) && stride 2089 src/Simplify.cpp expr = mutate(Ramp::make(new_base, ramp_a->stride, ramp_a->lanes)); stride 2092 src/Simplify.cpp const_int(ramp_a->stride, &ia) && stride 2101 src/Simplify.cpp expr = mutate(Ramp::make(new_base, ramp_a->stride, ramp_a->lanes) % b); stride 3042 src/Simplify.cpp equal(ramp_a->stride, ramp_b->stride)) { stride 3250 src/Simplify.cpp is_positive_const(delta_ramp->stride) && stride 3251 src/Simplify.cpp is_one(mutate(delta_ramp->base + delta_ramp->stride*(delta_ramp->lanes - 1) < 0))) { stride 3254 src/Simplify.cpp is_positive_const(delta_ramp->stride) && stride 3258 src/Simplify.cpp is_negative_const(delta_ramp->stride) && stride 3262 src/Simplify.cpp is_negative_const(delta_ramp->stride) && stride 3263 src/Simplify.cpp is_one(mutate(delta_ramp->base + delta_ramp->stride*(delta_ramp->lanes - 1) >= 0))) { stride 3266 src/Simplify.cpp const_int(delta_ramp->stride, &ia) && stride 3858 src/Simplify.cpp Expr stride = mutate(op->stride); stride 3860 src/Simplify.cpp if (is_zero(stride)) { stride 3863 src/Simplify.cpp stride.same_as(op->stride)) { stride 3866 src/Simplify.cpp expr = Ramp::make(base, stride, op->lanes); stride 4307 src/Simplify.cpp expr = mutate(r->base + op->indices[0]*r->stride); stride 4406 src/Simplify.cpp Expr check = mutate(b->value * terms - r->stride); stride 4413 src/Simplify.cpp expr = Ramp::make(r->base, mutate(r->stride / terms), r->lanes * terms); stride 4472 src/Simplify.cpp Expr check = mutate(b->value - r->stride * new_vectors[i-1].type().lanes()); stride 4479 src/Simplify.cpp expr = Ramp::make(r->base, r->stride, op->indices.size()); stride 4487 src/Simplify.cpp Expr stride = mutate(new_vectors[1] - new_vectors[0]); stride 4494 src/Simplify.cpp Expr check = mutate(new_vectors[i] - new_vectors[i - 1] - stride); stride 4501 src/Simplify.cpp expr = Ramp::make(new_vectors[0], stride, op->indices.size()); stride 4623 src/Simplify.cpp } else if (ramp && is_const(ramp->stride)) { stride 4626 src/Simplify.cpp replacement = substitute(new_name, Ramp::make(new_var, ramp->stride, ramp->lanes), replacement); stride 5062 src/Simplify.cpp Expr slice(const Expr &e, int begin, int stride, int w) { stride 5063 src/Simplify.cpp return Shuffle::make_slice(e, begin, stride, w); stride 5066 src/Simplify.cpp Expr ramp(const Expr &base, const Expr &stride, int w) { stride 5067 src/Simplify.cpp return Ramp::make(base, stride, w); stride 272 src/StmtToHtml.cpp print_list(symbol("ramp") + "(", {op->base, op->stride, Expr(op->lanes)}, ")"); stride 173 src/StorageFlattening.cpp Expr stride = stride_var[prev_j] * extent_var[prev_j]; stride 174 src/StorageFlattening.cpp stmt = LetStmt::make(stride_name[j], stride, stmt); stride 610 src/VaryingAttributes.cpp Expr mutated_stride = mutate(op->stride); stride 619 src/VaryingAttributes.cpp mutated_stride = Cast::make(float_type(op->stride), mutated_stride); stride 622 src/VaryingAttributes.cpp if (mutated_base.same_as(op->base) && mutated_stride.same_as(op->stride)) { stride 806 src/VaryingAttributes.cpp mutate_operator(this, op, op->base, op->stride, &stmt); stride 136 src/VectorizeLoops.cpp if (is_positive_const(r->stride)) { stride 137 src/VectorizeLoops.cpp return {r->base, r->base + last_lane_idx * r->stride}; stride 138 src/VectorizeLoops.cpp } else if (is_negative_const(r->stride)) { stride 139 src/VectorizeLoops.cpp return {r->base + last_lane_idx * r->stride, r->base}; stride 251 src/runtime/HalideBuffer.h buf.dim[next].stride = 1; stride 253 src/runtime/HalideBuffer.h buf.dim[next].stride = buf.dim[next-1].stride * buf.dim[next-1].extent; stride 268 src/runtime/HalideBuffer.h buf.dim[i].stride = 1; stride 270 src/runtime/HalideBuffer.h buf.dim[i].stride = buf.dim[i-1].stride * buf.dim[i-1].extent; stride 281 src/runtime/HalideBuffer.h buf.dim[next].stride = 1; stride 284 src/runtime/HalideBuffer.h buf.dim[next].stride = buf.dim[next - 1].stride * buf.dim[next - 1].extent; stride 348 src/runtime/HalideBuffer.h HALIDE_ALWAYS_INLINE int stride() const { stride 349 src/runtime/HalideBuffer.h return d.stride; stride 393 src/runtime/HalideBuffer.h int stride(int i) const { return dim(i).stride(); } stride 421 src/runtime/HalideBuffer.h if (dim(i).stride() < 0) { stride 422 src/runtime/HalideBuffer.h index += dim(i).stride() * (dim(i).extent() - 1); stride 432 src/runtime/HalideBuffer.h if (dim(i).stride() > 0) { stride 433 src/runtime/HalideBuffer.h index += dim(i).stride() * (dim(i).extent() - 1); stride 469 src/runtime/HalideBuffer.h buf.dim[i].stride = old_buf.stride[i]; stride 486 src/runtime/HalideBuffer.h old_buf.stride[i] = dim(i).stride(); stride 1039 src/runtime/HalideBuffer.h buf.host += shift * dim(d).stride() * type().bytes(); stride 1146 src/runtime/HalideBuffer.h buf.host += shift * dim(d).stride() * type().bytes(); stride 1211 src/runtime/HalideBuffer.h buf.dim[dims].stride = 1; stride 1213 src/runtime/HalideBuffer.h buf.dim[dims].stride = buf.dim[dims-1].extent * buf.dim[dims-1].stride; stride 1222 src/runtime/HalideBuffer.h buf.dim[buf.dimensions-1].stride = s; stride 1354 src/runtime/HalideBuffer.h if (src.dim(j-1).stride() > src.dim(j).stride()) { stride 1366 src/runtime/HalideBuffer.h shape[i].stride = 1; stride 1368 src/runtime/HalideBuffer.h shape[i].stride = shape[i-1].extent * shape[i-1].stride; stride 1390 src/runtime/HalideBuffer.h return offset_of(d+1, rest...) + this->buf.dim[d].stride * (first - this->buf.dim[d].min); stride 1412 src/runtime/HalideBuffer.h offset += this->buf.dim[i].stride * (pos[i] - this->buf.dim[i].min); stride 1511 src/runtime/HalideBuffer.h int stride[N]; stride 1518 src/runtime/HalideBuffer.h static void advance_ptrs(const int *stride, Ptr *ptr, Ptrs... ptrs) { stride 1519 src/runtime/HalideBuffer.h (*ptr) += *stride; stride 1520 src/runtime/HalideBuffer.h advance_ptrs(stride + 1, ptrs...); stride 1542 src/runtime/HalideBuffer.h *strides++ = first->dim(d).stride(); stride 1561 src/runtime/HalideBuffer.h advance_ptrs(t[d].stride, (&ptrs)...); stride 1582 src/runtime/HalideBuffer.h advance_ptrs(t[d].stride, (&ptrs)...); stride 1603 src/runtime/HalideBuffer.h t[i].stride[j] = 0; stride 1609 src/runtime/HalideBuffer.h extract_strides(i, t[i].stride, this, &other_buffers...); stride 1612 src/runtime/HalideBuffer.h for (int j = i; j > 0 && t[j].stride[0] < t[j-1].stride[0]; j--) { stride 1623 src/runtime/HalideBuffer.h flat = flat && t[i-1].stride[j] * t[i-1].extent == t[i].stride[j]; stride 1639 src/runtime/HalideBuffer.h innermost_strides_are_one &= t[0].stride[j] == 1; stride 962 src/runtime/HalideRuntime.h int32_t min, extent, stride; stride 968 src/runtime/HalideRuntime.h HALIDE_ALWAYS_INLINE halide_dimension_t() : min(0), extent(0), stride(0), flags(0) {} stride 970 src/runtime/HalideRuntime.h min(m), extent(e), stride(s), flags(f) {} stride 975 src/runtime/HalideRuntime.h (stride == other.stride) && stride 1072 src/runtime/HalideRuntime.h if (dim[i].stride < 0) { stride 1073 src/runtime/HalideRuntime.h index += dim[i].stride * (dim[i].extent - 1); stride 1083 src/runtime/HalideRuntime.h if (dim[i].stride > 0) { stride 1084 src/runtime/HalideRuntime.h index += dim[i].stride * (dim[i].extent - 1); stride 1100 src/runtime/HalideRuntime.h index += dim[i].stride * (pos[i] - dim[i].min); stride 1132 src/runtime/HalideRuntime.h int32_t stride[4]; stride 49 src/runtime/buffer_t.cpp return buf->dim[d].stride; stride 154 src/runtime/buffer_t.cpp offset += (min[i] - src->dim[i].min) * src->dim[i].stride; stride 23 src/runtime/cache.cpp << ", " << buf.dim[i].stride << ") "; stride 547 src/runtime/cuda.cpp halide_assert(user_context, buf->dim[i].stride >= 0); stride 98 src/runtime/device_buffer_utils.h uint64_t stride_bytes = buf->dim[i].stride * buf->type.bytes(); stride 423 src/runtime/hexagon_host.cpp halide_assert(user_context, buf->dim[i].stride >= 0); stride 308 src/runtime/matlab.cpp buf->dim[0].stride = 1; stride 310 src/runtime/matlab.cpp buf->dim[i].stride = buf->dim[i-1].extent * buf->dim[i-1].stride; stride 341 src/runtime/metal.cpp halide_assert(user_context, buf->dim[i].stride > 0); stride 150 src/runtime/mini_opengl.h typedef void (*PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer); stride 58 src/runtime/old_buffer_t.cpp new_buf->dim[i].stride = old_buf->stride[i]; stride 77 src/runtime/old_buffer_t.cpp old_buf->stride[i] = new_buf->dim[i].stride; stride 716 src/runtime/opencl.cpp halide_assert(user_context, buf->dim[i].stride >= 0); stride 1110 src/runtime/opengl.cpp int x_stride = (src_buf->dimensions > 0) ? src_buf->dim[0].stride : 0; stride 1111 src/runtime/opengl.cpp int y_stride = (src_buf->dimensions > 1) ? src_buf->dim[1].stride : 0; stride 1112 src/runtime/opengl.cpp int c_stride = (src_buf->dimensions > 2) ? src_buf->dim[2].stride : 0; stride 1137 src/runtime/opengl.cpp int x_stride = (dst_buf->dimensions > 0) ? dst_buf->dim[0].stride : 0; stride 1138 src/runtime/opengl.cpp int y_stride = (dst_buf->dimensions > 1) ? dst_buf->dim[1].stride : 0; stride 1139 src/runtime/opengl.cpp int c_stride = (dst_buf->dimensions > 2) ? dst_buf->dim[2].stride : 0; stride 1205 src/runtime/opengl.cpp bool is_interleaved = (buffer_channels == 1) || (buf->dim[2].stride == 1 && buf->dim[0].stride == buf->dim[2].extent); stride 1206 src/runtime/opengl.cpp bool is_packed = (buf->dim[1].stride == buf->dim[0].extent * buf->dim[0].stride); stride 1324 src/runtime/opengl.cpp bool is_interleaved = (buffer_channels == 1) || (buf->dim[2].stride == 1 && buf->dim[0].stride == buf->dim[2].extent); stride 1325 src/runtime/opengl.cpp bool is_packed = (buf->dim[1].stride == buf->dim[0].extent * buf->dim[0].stride); stride 135 src/runtime/openglcompute.cpp << " stride: " << buf->dim[0].stride << " " << buf->dim[1].stride stride 136 src/runtime/openglcompute.cpp << " " << buf->dim[2].stride << " " << buf->dim[3].stride << "\n" stride 255 src/runtime/openglcompute.cpp halide_assert(user_context, buf->dim[i].stride >= 0); stride 263 src/runtime/openglcompute.cpp << "strides: " << buf->dim[0].stride << "x" stride 264 src/runtime/openglcompute.cpp << buf->dim[1].stride << "x" << buf->dim[2].stride << "x" stride 265 src/runtime/openglcompute.cpp << buf->dim[3].stride << " " stride 294 src/runtime/to_string.cpp dst = halide_int64_to_string(dst, end, buf->dim[i].stride, 1); stride 124 src/runtime/write_debug_image.cpp shape[i].stride = 0; stride 46 test/correctness/extern_producer.cpp assert(out->dim[0].stride == 1); stride 51 test/correctness/extern_producer.cpp float *dst = (float *)out->host + y * out->dim[1].stride; stride 68 test/correctness/extern_producer.cpp assert(out1->host && out1->type == halide_type_of<float>() && out1->dim[0].stride == 1); stride 69 test/correctness/extern_producer.cpp assert(out2->host && out2->type == halide_type_of<float>() && out2->dim[0].stride == 1); stride 78 test/correctness/extern_producer.cpp float *dst1 = (float *)out1->host + y * out1->dim[1].stride; stride 79 test/correctness/extern_producer.cpp float *dst2 = (float *)out2->host + y * out2->dim[1].stride; stride 50 test/correctness/extern_stage.cpp assert(in1->dim[0].stride == 1 && in2->dim[0].stride == 1 && out->dim[0].stride == 1); stride 23 test/correctness/gpu_non_contiguous_copy.cpp cropped.raw_buffer()->dim[0].stride *= 2; stride 24 test/correctness/gpu_non_contiguous_copy.cpp cropped.raw_buffer()->dim[1].stride *= 2; stride 25 test/correctness/gpu_non_contiguous_copy.cpp cropped.raw_buffer()->dim[2].stride *= 2; stride 26 test/correctness/gpu_non_contiguous_copy.cpp cropped.raw_buffer()->dim[3].stride *= 2; stride 12 test/correctness/many_small_extern_stages.cpp printf(" %d %d %d\n", b->dim[i].min, b->dim[i].extent, b->dim[i].stride); stride 41 test/correctness/many_small_extern_stages.cpp assert(out->dim[0].stride == 1 && out->dim[1].stride == out->dim[0].extent); stride 39 test/correctness/sort_exprs.cpp for (size_t stride = half_size; stride > 0; stride /= 2) { stride 41 test/correctness/sort_exprs.cpp if (i % (2*stride) < stride) { stride 43 test/correctness/sort_exprs.cpp sort2(a[i], a[i + stride]); stride 45 test/correctness/sort_exprs.cpp sort2(a[i + stride], a[i]); stride 222 test/correctness/specialize.cpp f.specialize(im.dim(0).stride() == 1 && im.width() >= 8).vectorize(x, 8); stride 7 test/generator/blur2x2_generator.cpp return p.dim(0).stride() == channels && p.dim(2).stride() == 1 && p.dim(2).extent() == channels; stride 12 test/generator/blur2x2_generator.cpp return p.dim(0).stride() == 1 && p.dim(2).extent() == channels; stride 13 test/generator/old_buffer_t_aottest.cpp (x - buf->min[0]) * buf->stride[0] + stride 14 test/generator/old_buffer_t_aottest.cpp (y - buf->min[1]) * buf->stride[1]); stride 52 test/generator/old_buffer_t_aottest.cpp out.stride[0] = 1; stride 53 test/generator/old_buffer_t_aottest.cpp out.stride[1] = 60; stride 9 test/generator/tiled_blur_generator.cpp return p.dim(0).stride() == channels && p.dim(2).stride() == 1 && p.dim(2).extent() == channels; stride 14 test/generator/tiled_blur_generator.cpp return p.dim(0).stride() == 1 && p.dim(2).extent() == channels; stride 8 test/performance/matrix_multiplication.cpp void simple_version(float* A, float *B, float *C, int width, int stride) { stride 11 test/performance/matrix_multiplication.cpp float *cc = C + iy * stride + ix; stride 15 test/performance/matrix_multiplication.cpp *cc = *cc + A[iy * stride + ik] * B[ik * stride + ix]; stride 79 test/performance/matrix_multiplication.cpp simple_version(mat_A.data(), mat_B.data(), output_ref.data(), mat_A.width(), mat_A.stride(1)); stride 18 test/performance/packed_planar_fusion.cpp .set_stride(dst.dim(i).stride()) stride 23 test/performance/packed_planar_fusion.cpp if (dst.stride(0) == 1 && src.stride(0) == 1) { stride 26 test/performance/packed_planar_fusion.cpp } else if (dst.stride(0) == 3 && src.stride(0) == 3) { stride 30 test/performance/packed_planar_fusion.cpp } else if (dst.stride(0) == 3) { stride 77 tools/halide_image_info.h int32_t *stride = buf->stride; stride 135 tools/halide_image_info.h std::cout << stride[d] << " "; stride 141 tools/halide_image_info.h << std::left << std::setw(12) << stride[d] * img_bpp stride 143 tools/halide_image_info.h print_memalign(stride[d] * img_bpp); std::cout << std::endl; stride 174 tools/halide_image_info.h int32_t *stride = buf->stride; stride 197 tools/halide_image_info.h if ((i % stride[d]) == 0) { stride 238 tools/halide_image_info.h int32_t *stride = buf->stride; stride 272 tools/halide_image_info.h if ((i % stride[d]) == 0) { stride 180 tutorial/lesson_16_rgb_generate.cpp (input.dim(0).stride() == 1); stride 182 tutorial/lesson_16_rgb_generate.cpp (input.dim(0).stride() == 3 && stride 183 tutorial/lesson_16_rgb_generate.cpp input.dim(2).stride() == 1 && stride 187 tutorial/lesson_16_rgb_generate.cpp (brighter.output_buffer().dim(0).stride() == 1); stride 189 tutorial/lesson_16_rgb_generate.cpp (brighter.output_buffer().dim(0).stride() == 3 && stride 190 tutorial/lesson_16_rgb_generate.cpp brighter.output_buffer().dim(2).stride() == 1 && stride 52 tutorial/lesson_16_rgb_run.cpp assert(planar_input.dim(0).stride() == 1); stride 53 tutorial/lesson_16_rgb_run.cpp assert(planar_output.dim(0).stride() == 1); stride 54 tutorial/lesson_16_rgb_run.cpp assert(interleaved_input.dim(0).stride() == 3); stride 55 tutorial/lesson_16_rgb_run.cpp assert(interleaved_output.dim(0).stride() == 3); stride 56 tutorial/lesson_16_rgb_run.cpp assert(interleaved_input.dim(2).stride() == 1); stride 57 tutorial/lesson_16_rgb_run.cpp assert(interleaved_output.dim(2).stride() == 1);