in 51 apps/HelloHexagon/process.cpp Halide::Runtime::Buffer<uint8_t> in(nullptr, W, H, 3); in 54 apps/HelloHexagon/process.cpp in.device_malloc(halide_hexagon_device_interface()); in 58 apps/HelloHexagon/process.cpp in.for_each_value([&](uint8_t &x) { in 69 apps/HelloHexagon/process.cpp int result = pipeline(in, out); in 90 apps/HelloHexagon/process.cpp in(clamp(x + rx, 0, W - 1), clamp(y + ry, 0, H - 1), c); in 21 apps/blur/test.cpp Buffer<uint16_t> blur(Buffer<uint16_t> in) { in 22 apps/blur/test.cpp Buffer<uint16_t> tmp(in.width()-8, in.height()); in 23 apps/blur/test.cpp Buffer<uint16_t> out(in.width()-8, in.height()-2); in 28 apps/blur/test.cpp tmp(x, y) = (in(x, y) + in(x+1, y) + in(x+2, y))/3; in 39 apps/blur/test.cpp Buffer<uint16_t> blur_fast(Buffer<uint16_t> in) { in 40 apps/blur/test.cpp Buffer<uint16_t> out(in.width()-8, in.height()-2); in 51 apps/blur/test.cpp const uint16_t *inPtr = &(in(xTile, yTile+y)); in 122 apps/blur/test.cpp Buffer<uint16_t> blur_fast2(const Buffer<uint16_t> &in) { in 123 apps/blur/test.cpp Buffer<uint16_t> out(in.width()-8, in.height()-2); in 125 apps/blur/test.cpp int vw = in.width()/8; in 137 apps/blur/test.cpp for (int yTile = 0; yTile < in.height(); yTile += 128) { in 143 apps/blur/test.cpp const uint16_t *inPtr = &(in(0, yTile + y + 2)); in 177 apps/blur/test.cpp Buffer<uint16_t> blur_halide(Buffer<uint16_t> in) { in 178 apps/blur/test.cpp Buffer<uint16_t> out(in.width()-8, in.height()-2); in 181 apps/blur/test.cpp halide_blur(in, out); in 188 apps/blur/test.cpp halide_blur(in, out); in 15 apps/c_backend/run.cpp extern "C" int an_extern_stage(halide_buffer_t *in, halide_buffer_t *out) { in 16 apps/c_backend/run.cpp if (in->host == nullptr) { in 18 apps/c_backend/run.cpp in->dim[0].extent = 10; in 19 apps/c_backend/run.cpp in->dim[1].extent = 10; in 20 apps/c_backend/run.cpp in->dim[0].min = 0; in 21 apps/c_backend/run.cpp in->dim[1].min = 0; in 25 apps/c_backend/run.cpp int16_t *origin = (int16_t *)in->host; in 26 apps/c_backend/run.cpp origin -= in->dim[0].min * in->dim[0].stride; in 27 apps/c_backend/run.cpp origin -= in->dim[1].min * in->dim[1].stride; in 30 apps/c_backend/run.cpp result += origin[x * in->dim[0].stride + y * in->dim[1].stride]; in 40 apps/c_backend/run.cpp Buffer<uint16_t> in(1432, 324); in 42 apps/c_backend/run.cpp for (int y = 0; y < in.height(); y++) { in 43 apps/c_backend/run.cpp for (int x = 0; x < in.width(); x++) { in 44 apps/c_backend/run.cpp in(x, y) = (uint16_t)rand(); in 51 apps/c_backend/run.cpp pipeline_native(in, out_native); in 53 apps/c_backend/run.cpp pipeline_c(in, out_c); in 69 apps/c_backend/run_cpp.cpp Buffer<uint16_t> in(100, 100); in 71 apps/c_backend/run_cpp.cpp for (int y = 0; y < in.height(); y++) { in 72 apps/c_backend/run_cpp.cpp for (int x = 0; x < in.width(); x++) { in 73 apps/c_backend/run_cpp.cpp in(x, y) = (uint16_t)rand(); in 80 apps/c_backend/run_cpp.cpp pipeline_cpp_native(in, out_native); in 82 apps/c_backend/run_cpp.cpp pipeline_cpp_cpp(in, out_c); in 287 apps/camera_pipe/camera_pipe_generator.cpp Expr in = input(x, y, c); in 288 apps/camera_pipe/camera_pipe_generator.cpp Expr u0 = in/lutResample; in 289 apps/camera_pipe/camera_pipe_generator.cpp Expr u = in%lutResample; in 233 apps/camera_pipe/fcam/Demosaic_ARM.cpp int16x8_t in = vld1q_s16(ptr_in); in 234 apps/camera_pipe/fcam/Demosaic_ARM.cpp vst1q_s16(ptr_out, in); in 264 apps/camera_pipe/fcam/Demosaic_ARM.cpp int16x8_t in = vld1q_s16(ptr_in); in 265 apps/camera_pipe/fcam/Demosaic_ARM.cpp vst1q_s16(ptr_out, in); in 22 apps/cuda_mat_mul/mat_mul_generator.cpp Func out = prod.in(); in 39 apps/cuda_mat_mul/mat_mul_generator.cpp B.in() in 41 apps/cuda_mat_mul/mat_mul_generator.cpp .vectorize(B.in().args()[0]); in 61 apps/fft/fft_aot_test.cpp auto in = real_buffer(); in 64 apps/fft/fft_aot_test.cpp in(i, j) = signal_1d[i] + signal_1d[j]; in 71 apps/fft/fft_aot_test.cpp halide_result = fft_forward_r2c(in, out); in 133 apps/fft/fft_aot_test.cpp auto in = complex_buffer(); in 134 apps/fft/fft_aot_test.cpp in.fill(0); in 141 apps/fft/fft_aot_test.cpp re(in, 1, 0) = term_magnitude; in 142 apps/fft/fft_aot_test.cpp im(in, 1, 0) = term_magnitude; in 144 apps/fft/fft_aot_test.cpp re(in, kSize - 1, 0) = term_magnitude; in 145 apps/fft/fft_aot_test.cpp im(in, kSize - 1, 0) = -term_magnitude; // complex conjugate in 150 apps/fft/fft_aot_test.cpp halide_result = fft_inverse_c2r(in, out); in 172 apps/fft/fft_aot_test.cpp auto in = complex_buffer(); in 187 apps/fft/fft_aot_test.cpp re(in, i, j) = signal_1d_real[i] + signal_1d_real[j]; in 188 apps/fft/fft_aot_test.cpp im(in, i, j) = signal_1d_complex[i] + signal_1d_complex[j]; in 195 apps/fft/fft_aot_test.cpp halide_result = fft_forward_c2c(in, out); in 258 apps/fft/fft_aot_test.cpp auto in = complex_buffer(); in 259 apps/fft/fft_aot_test.cpp in.fill(0); in 261 apps/fft/fft_aot_test.cpp re(in, 1, 0) = .5f; in 262 apps/fft/fft_aot_test.cpp im(in, 1, 0) = .5f; in 263 apps/fft/fft_aot_test.cpp re(in, kSize - 1, 0) = .5f; in 264 apps/fft/fft_aot_test.cpp im(in, kSize - 1, 0) = .5f; // Not conjugate. Result will not be real in 269 apps/fft/fft_aot_test.cpp halide_result = fft_inverse_c2c(in, out); in 106 apps/fft/fft_generator.cpp Func in; in 107 apps/fft/fft_generator.cpp in(x, y) = input(x, y, 0); in 109 apps/fft/fft_generator.cpp complex_result = fft2d_r2c(in, size0, size1, target, desc); in 111 apps/fft/fft_generator.cpp ComplexFunc in; in 112 apps/fft/fft_generator.cpp in(x, y) = ComplexExpr(input(x, y, 0), 0); in 114 apps/fft/fft_generator.cpp complex_result = fft2d_c2c(in, size0, size1, sign, target, desc); in 117 apps/fft/fft_generator.cpp ComplexFunc in; in 118 apps/fft/fft_generator.cpp in(x, y) = ComplexExpr(input(x, y, 0), input(x, y, 1)); in 121 apps/fft/fft_generator.cpp real_result = fft2d_c2r(in, size0, size1, target, desc); in 123 apps/fft/fft_generator.cpp complex_result = fft2d_c2c(in, size0, size1, sign, target, desc); in 52 apps/fft/main.cpp Buffer<float> in(W, H); in 55 apps/fft/main.cpp in(x, y) = (float)rand()/(float)RAND_MAX; in 79 apps/fft/main.cpp ComplexFunc dft_in = fft2d_c2c(make_complex(in), W, H, -1, target, fwd_desc); in 99 apps/fft/main.cpp ComplexFunc dft_in = fft2d_r2c(make_real(in), W, H, target, fwd_desc); in 120 apps/fft/main.cpp correct += in((x + j + W)%W, (y + i + H)%H); in 163 apps/interpolate/interpolate.cpp Func cpu_wrapper = normalize.in(); in 44 apps/templates/tests/example_test.cpp typedef int (*ExampleFunc)(buffer_t* in, buffer_t* out); in 14 apps/wavelet/daubechies_x_generator.cpp Func in = Halide::BoundaryConditions::repeat_edge(in_); in 18 apps/wavelet/daubechies_x_generator.cpp D0*in(2*x-1, y) + D1*in(2*x, y) + D2*in(2*x+1, y) + D3*in(2*x+2, y), in 19 apps/wavelet/daubechies_x_generator.cpp D3*in(2*x-1, y) - D2*in(2*x, y) + D1*in(2*x+1, y) - D0*in(2*x+2, y)); in 14 apps/wavelet/haar_x_generator.cpp Func in = Halide::BoundaryConditions::repeat_edge(in_); in 18 apps/wavelet/haar_x_generator.cpp (in(2*x, y) + in(2*x+1, y)), in 19 apps/wavelet/haar_x_generator.cpp (in(2*x, y) - in(2*x+1, y)))/2; in 14 apps/wavelet/inverse_daubechies_x_generator.cpp Func in = Halide::BoundaryConditions::repeat_edge(in_); in 18 apps/wavelet/inverse_daubechies_x_generator.cpp D2*in(x/2, y, 0) + D1*in(x/2, y, 1) + D0*in(x/2+1, y, 0) + D3*in(x/2+1, y, 1), in 19 apps/wavelet/inverse_daubechies_x_generator.cpp D3*in(x/2, y, 0) - D0*in(x/2, y, 1) + D1*in(x/2+1, y, 0) - D2*in(x/2+1, y, 1)); in 14 apps/wavelet/inverse_haar_x_generator.cpp Func in = Halide::BoundaryConditions::repeat_edge(in_); in 18 apps/wavelet/inverse_haar_x_generator.cpp in(x/2, y, 0) + in(x/2, y, 1), in 19 apps/wavelet/inverse_haar_x_generator.cpp in(x/2, y, 0) - in(x/2, y, 1)); in 1547 src/Bounds.cpp Buffer<int32_t> in(10); in 1548 src/Bounds.cpp in.set_name("input"); in 1552 src/Bounds.cpp {Add::make(Call::make(in, input_site_1), in 1553 src/Bounds.cpp Call::make(in, input_site_2))}, in 73 src/BoundsInference.cpp Interval in = bounds_of_expr_in_scope(op->value, scope); in 75 src/BoundsInference.cpp result = in; in 77 src/BoundsInference.cpp scope.push(op->name, in); in 86 src/BoundsInference.cpp Interval in(Variable::make(Int(32), op->name + ".loop_min"), in 90 src/BoundsInference.cpp result = in; in 92 src/BoundsInference.cpp scope.push(op->name, in); in 952 src/BoundsInference.cpp Interval in = bounds_of_inner_var(var, body); in 953 src/BoundsInference.cpp if (in.is_bounded()) { in 954 src/BoundsInference.cpp body = LetStmt::make(var + ".min", in.min, body); in 955 src/BoundsInference.cpp body = LetStmt::make(var + ".max", in.max, body); in 357 src/CSE.cpp void check(Expr in, Expr correct) { in 358 src/CSE.cpp Expr result = common_subexpression_elimination(in); in 362 src/CSE.cpp << "Incorrect CSE:\n" << in in 1088 src/Func.h EXPORT Func in(const Func &f); in 1093 src/Func.h EXPORT Func in(const std::vector<Func> &fs); in 1100 src/Func.h EXPORT Func in(); in 287 src/Generator.cpp std::vector<Internal::GeneratorParamBase *> filter_params(const std::vector<Internal::GeneratorParamBase *> &in) { in 289 src/Generator.cpp for (auto p : in) { in 405 src/Generator.cpp for (auto in : in_info) { in 406 src/Generator.cpp stream << indent() << in.c_type << " " << in.name << ";\n"; in 416 src/Generator.cpp for (auto in : in_info) { in 417 src/Generator.cpp stream << indent() << comma << "const " << in.c_type << "& " << in.name << "\n"; in 424 src/Generator.cpp for (auto in : in_info) { in 425 src/Generator.cpp stream << indent() << comma << in.name << "(" << in.name << ")\n"; in 1460 src/Generator.cpp void GeneratorBase::check_input_is_singular(Internal::GeneratorInputBase *in) { in 1461 src/Generator.cpp user_assert(!in->is_array()) in 1462 src/Generator.cpp << "Input " << in->name() << " is an array, and must be set with a vector type."; in 1465 src/Generator.cpp void GeneratorBase::check_input_is_array(Internal::GeneratorInputBase *in) { in 1466 src/Generator.cpp user_assert(in->is_array()) in 1467 src/Generator.cpp << "Input " << in->name() << " is not an array, and must not be set with a vector type."; in 1470 src/Generator.cpp void GeneratorBase::check_input_kind(Internal::GeneratorInputBase *in, Internal::IOKind kind) { in 1471 src/Generator.cpp user_assert(in->kind() == kind) in 1472 src/Generator.cpp << "Input " << in->name() << " cannot be set with the type specified."; in 1684 src/Generator.cpp const StubInput &in = inputs.at(i); in 1685 src/Generator.cpp user_assert(in.kind() == kind()) << "An input for " << name() << " is not of the expected kind.\n"; in 1687 src/Generator.cpp auto f = in.func(); in 1692 src/Generator.cpp auto p = in.parameter(); in 1707 src/Generator.cpp auto e = in.expr(); in 1629 src/Generator.h HALIDE_OUTPUT_FORWARD(in) in 2461 src/Generator.h EXPORT static void check_input_is_singular(Internal::GeneratorInputBase *in); in 2462 src/Generator.h EXPORT static void check_input_is_array(Internal::GeneratorInputBase *in); in 2463 src/Generator.h EXPORT static void check_input_kind(Internal::GeneratorInputBase *in, Internal::IOKind kind); in 2471 src/Generator.h auto *in = param_info().filter_inputs.at(i); in 2472 src/Generator.h check_input_is_singular(in); in 2473 src/Generator.h const auto k = in->kind(); in 2485 src/Generator.h check_input_kind(in, Internal::IOKind::Buffer); // just to trigger assertion in 2496 src/Generator.h auto *in = param_info().filter_inputs.at(i); in 2497 src/Generator.h check_input_is_singular(in); in 2498 src/Generator.h const auto k = in->kind(); in 2508 src/Generator.h check_input_kind(in, Internal::IOKind::Buffer); // just to trigger assertion in 2515 src/Generator.h auto *in = param_info().filter_inputs.at(i); in 2516 src/Generator.h check_input_kind(in, Internal::IOKind::Function); in 2517 src/Generator.h check_input_is_singular(in); in 2525 src/Generator.h auto *in = param_info().filter_inputs.at(i); in 2526 src/Generator.h check_input_kind(in, Internal::IOKind::Function); in 2527 src/Generator.h check_input_is_array(in); in 2539 src/Generator.h auto *in = param_info().filter_inputs.at(i); in 2540 src/Generator.h check_input_kind(in, Internal::IOKind::Scalar); in 2541 src/Generator.h check_input_is_singular(in); in 2548 src/Generator.h auto *in = param_info().filter_inputs.at(i); in 2549 src/Generator.h check_input_kind(in, Internal::IOKind::Scalar); in 2550 src/Generator.h check_input_is_array(in); in 2564 src/Generator.h auto *in = param_info().filter_inputs.at(i); in 2565 src/Generator.h check_input_kind(in, Internal::IOKind::Scalar); in 2566 src/Generator.h check_input_is_singular(in); in 2577 src/Generator.h auto *in = param_info().filter_inputs.at(i); in 2578 src/Generator.h check_input_kind(in, Internal::IOKind::Scalar); in 2579 src/Generator.h check_input_is_array(in); in 64 src/ImageParam.cpp return func.in(f); in 69 src/ImageParam.cpp return func.in(fs); in 74 src/ImageParam.cpp return func.in(); in 120 src/ImageParam.h EXPORT Func in(const Func &f); in 121 src/ImageParam.h EXPORT Func in(const std::vector<Func> &fs); in 122 src/ImageParam.h EXPORT Func in(); in 84 src/Module.cpp Outputs add_suffixes(const Outputs &in, const std::string &suffix) { in 86 src/Module.cpp if (!in.object_name.empty()) out.object_name = add_suffix(in.object_name, suffix); in 87 src/Module.cpp if (!in.assembly_name.empty()) out.assembly_name = add_suffix(in.assembly_name, suffix); in 88 src/Module.cpp if (!in.bitcode_name.empty()) out.bitcode_name = add_suffix(in.bitcode_name, suffix); in 89 src/Module.cpp if (!in.llvm_assembly_name.empty()) out.llvm_assembly_name = add_suffix(in.llvm_assembly_name, suffix); in 90 src/Module.cpp if (!in.c_source_name.empty()) out.c_source_name = add_suffix(in.c_source_name, suffix); in 91 src/Module.cpp if (!in.stmt_name.empty()) out.stmt_name = add_suffix(in.stmt_name, suffix); in 92 src/Module.cpp if (!in.stmt_html_name.empty()) out.stmt_html_name = add_suffix(in.stmt_html_name, suffix); in 138 src/ParallelRVar.cpp Interval in = Interval(rv.min, simplify(rv.min + rv.extent - 1)); in 139 src/ParallelRVar.cpp bounds.push(rv.var, in); in 140 src/ParallelRVar.cpp bounds.push(renamer.get_new_name(rv.var), in); in 1444 src/Solve.cpp Expr in[] = {x*den < num, x*den <= num, x*den == num, x*den != num, x*den >= num, x*den > num, in 1447 src/Solve.cpp SolverResult solved = solve_expression(in[j], "x"); in 1448 src/Solve.cpp internal_assert(solved.fully_solved) << "Error: failed to solve for x in " << in[j] << "\n"; in 1451 src/Solve.cpp Expr in_val = substitute("x", i, in[j]); in 1457 src/Solve.cpp << in[j] << " is not equivalent to " in 47 src/StorageFolding.cpp int count_producers(Stmt in, const std::string &name) { in 49 src/StorageFolding.cpp in.accept(&counter); in 29 src/runtime/hexagon_remote/log.cpp void write(const char *in, int in_size) { in 34 src/runtime/hexagon_remote/log.cpp buffer[write_cursor & (size - 1)] = in[i]; in 6 test/correctness/bounds_of_abs.cpp void check(Func f, ImageParam in, int min, int extent) { in 10 test/correctness/bounds_of_abs.cpp in.reset(); in 12 test/correctness/bounds_of_abs.cpp Buffer<int> im = in.get(); in 6 test/correctness/bounds_of_cast.cpp void check(Func f, ImageParam in, int min, int extent) { in 10 test/correctness/bounds_of_cast.cpp in.reset(); in 12 test/correctness/bounds_of_cast.cpp Buffer<int> im = in.get(); in 8 test/correctness/bounds_of_func.cpp ImageParam in(Float(32), 1); in 20 test/correctness/bounds_of_func.cpp g(x) = in(f(x)); in 24 test/correctness/bounds_of_func.cpp Buffer<float> in_buf = in.get(); in 40 test/correctness/bounds_of_func.cpp g(x) = in(f(x)); in 45 test/correctness/bounds_of_func.cpp Buffer<float> in_buf = in.get(); in 61 test/correctness/bounds_of_func.cpp h(x) = in(g(g(g(x)))); in 63 test/correctness/bounds_of_func.cpp in.reset(); in 65 test/correctness/bounds_of_func.cpp Buffer<float> in_buf = in.get(); in 89 test/correctness/bounds_of_func.cpp h(x) = in(fs[19](x)[0] + fs[19](x)[1]); in 91 test/correctness/bounds_of_func.cpp in.reset(); in 93 test/correctness/bounds_of_func.cpp Buffer<float> in_buf = in.get(); in 16 test/correctness/bounds_of_monotonic_math.cpp Buffer<float> in = input.get(); in 19 test/correctness/bounds_of_monotonic_math.cpp if (in.width() != correct) { in 20 test/correctness/bounds_of_monotonic_math.cpp printf("Width is %d instead of %d\n", in.width(), correct); in 9 test/correctness/cascaded_filters.cpp Func blur(Func in, std::string n) { in 11 test/correctness/cascaded_filters.cpp blurry(x) = (in(x) + in(x+1)) / divisor; in 6 test/correctness/compute_outermost.cpp Func blur(Func in) { in 9 test/correctness/compute_outermost.cpp blurx(x, y) = in(x-1, y) + in(x, y) + in(x+1, y); in 11 test/correctness/convolution.cpp Buffer<uint16_t> in(W, H); in 14 test/correctness/convolution.cpp in(x, y) = rand() & 0xff; in 33 test/correctness/convolution.cpp input(x, y) = in(clamp(x, 0, W-1), clamp(y, 0, H-1)); in 105 test/correctness/convolution.cpp uint16_t correct = (1*in(x-1, y-1) + 2*in(x, y-1) + 1*in(x+1, y-1) + in 106 test/correctness/convolution.cpp 2*in(x-1, y) + 4*in(x, y) + 2*in(x+1, y) + in 107 test/correctness/convolution.cpp 1*in(x-1, y+1) + 2*in(x, y+1) + 1*in(x+1, y+1)); in 11 test/correctness/convolution_multiple_kernels.cpp Buffer<uint16_t> in(W, H); in 14 test/correctness/convolution_multiple_kernels.cpp in(x, y) = rand() & 0xff; in 22 test/correctness/convolution_multiple_kernels.cpp input(x, y) = in(clamp(x, 0, W-1), clamp(y, 0, H-1)); in 56 test/correctness/convolution_multiple_kernels.cpp uint16_t correct = (in(x-1, y-1) + in(x, y-1) + in(x+1, y-1) + in 57 test/correctness/convolution_multiple_kernels.cpp in(x-1, y) + in(x, y) + in(x+1, y) + in 58 test/correctness/convolution_multiple_kernels.cpp in(x-1, y+1) + in(x, y+1) + in(x+1, y+1)) * 3; in 15 test/correctness/deinterleave4.cpp Func in; in 16 test/correctness/deinterleave4.cpp in(x) = x; in 17 test/correctness/deinterleave4.cpp in.compute_root(); in 19 test/correctness/deinterleave4.cpp Func up = upsample(upsample(in)); in 9 test/correctness/dilate3x3.cpp Buffer<uint8_t> in(W, H); in 12 test/correctness/dilate3x3.cpp in(x, y) = rand() & 0xff; in 19 test/correctness/dilate3x3.cpp Func input = BoundaryConditions::repeat_edge(in); in 44 test/correctness/dilate3x3.cpp uint16_t correct = std::max({ std::max({ in(x-1, y-1), in(x, y-1), in(x+1, y-1) }), in 45 test/correctness/dilate3x3.cpp std::max({ in(x-1, y ), in(x, y ), in(x+1, y ) }), in 46 test/correctness/dilate3x3.cpp std::max({ in(x-1, y+1), in(x, y+1), in(x+1, y+1) }) }); in 11 test/correctness/extern_bounds_inference.cpp extern "C" DLLEXPORT int translate(halide_buffer_t *in, int dx, int dy, halide_buffer_t *out) { in 13 test/correctness/extern_bounds_inference.cpp if (in->host == nullptr) { in 14 test/correctness/extern_bounds_inference.cpp in->dim[0].min = out->dim[0].min + dx; in 15 test/correctness/extern_bounds_inference.cpp in->dim[1].min = out->dim[1].min + dy; in 16 test/correctness/extern_bounds_inference.cpp in->dim[0].extent = out->dim[0].extent; in 17 test/correctness/extern_bounds_inference.cpp in->dim[1].extent = out->dim[1].extent; in 21 test/correctness/extern_bounds_inference.cpp out_buf.copy_from(Halide::Runtime::Buffer<uint8_t>(*in)); in 11 test/correctness/extern_output_expansion.cpp extern "C" DLLEXPORT int extern_stage(halide_buffer_t *in, halide_buffer_t *out) { in 12 test/correctness/extern_output_expansion.cpp assert(in->type == halide_type_of<int>()); in 14 test/correctness/extern_output_expansion.cpp if (in->host == nullptr || out->host == nullptr) { in 21 test/correctness/extern_output_expansion.cpp if (in->host == nullptr) { in 22 test/correctness/extern_output_expansion.cpp in->dim[0].extent = out->dim[0].extent; in 23 test/correctness/extern_output_expansion.cpp in->dim[0].min = out->dim[0].min; in 29 test/correctness/extern_output_expansion.cpp in->dim[0].min, in->dim[0].extent, in 31 test/correctness/extern_output_expansion.cpp int32_t *in_origin = (int32_t *)in->host - in->dim[0].min; in 14 test/correctness/extern_sort.cpp extern "C" DLLEXPORT int sort_buffer(halide_buffer_t *in, halide_buffer_t *out) { in 15 test/correctness/extern_sort.cpp if (!in->host) { in 16 test/correctness/extern_sort.cpp in->dim[0].min = out->dim[0].min; in 17 test/correctness/extern_sort.cpp in->dim[0].extent = out->dim[0].extent; in 19 test/correctness/extern_sort.cpp memcpy(out->host, in->host, out->dim[0].extent * out->type.bytes()); in 23 test/correctness/external_code.cpp std::ifstream bitcode_stream(bitcode_file, std::ios::in | std::ios::binary); in 13 test/correctness/gameoflife.cpp Func in; in 15 test/correctness/gameoflife.cpp in(x, y) = input(x, y); in 17 test/correctness/gameoflife.cpp in = gameOfLife(input, n-1); in 18 test/correctness/gameoflife.cpp in.compute_root(); in 23 test/correctness/gameoflife.cpp Expr livingNeighbors = (in(W, N) + in(x, N) + in 24 test/correctness/gameoflife.cpp in(E, N) + in(W, y) + in 25 test/correctness/gameoflife.cpp in(E, y) + in(W, S) + in 26 test/correctness/gameoflife.cpp in(x, S) + in(E, S)); in 27 test/correctness/gameoflife.cpp Expr alive = in(x, y) != 0; in 26 test/correctness/gpu_data_flows.cpp ImageParam in(Int(32), 1); in 30 test/correctness/gpu_data_flows.cpp f(x) = in(x) + 1; in 44 test/correctness/gpu_data_flows.cpp in.set(input); in 62 test/correctness/gpu_data_flows.cpp ImageParam in(Int(32), 1); in 65 test/correctness/gpu_data_flows.cpp f(x) = in(x) + 1; in 78 test/correctness/gpu_data_flows.cpp in.set(input); in 14 test/correctness/gpu_give_input_buffers_device_allocations.cpp Buffer<float> in(100, 100); in 17 test/correctness/gpu_give_input_buffers_device_allocations.cpp assert(!in.has_device_allocation()); in 18 test/correctness/gpu_give_input_buffers_device_allocations.cpp assert(!in.host_dirty() && !in.device_dirty()); in 22 test/correctness/gpu_give_input_buffers_device_allocations.cpp in.fill(7.0f); in 23 test/correctness/gpu_give_input_buffers_device_allocations.cpp assert(!in.has_device_allocation()); in 24 test/correctness/gpu_give_input_buffers_device_allocations.cpp assert(in.host_dirty() && !in.device_dirty()); in 29 test/correctness/gpu_give_input_buffers_device_allocations.cpp f(x, y) = in(x, y); in 40 test/correctness/gpu_give_input_buffers_device_allocations.cpp assert(in.has_device_allocation()); in 41 test/correctness/gpu_give_input_buffers_device_allocations.cpp assert(!in.host_dirty() && !in.device_dirty()); in 52 test/correctness/gpu_give_input_buffers_device_allocations.cpp assert(in.has_device_allocation()); in 53 test/correctness/gpu_give_input_buffers_device_allocations.cpp assert(!in.host_dirty() && !in.device_dirty()); in 12 test/correctness/gpu_transpose.cpp ImageParam in(UInt(8), 2); in 18 test/correctness/gpu_transpose.cpp in_func(x, y) = in(x, y); in 40 test/correctness/gpu_transpose.cpp in.set(input); in 16 test/correctness/histogram.cpp Buffer<float> in(W, H); in 19 test/correctness/histogram.cpp in(x, y) = float(rand() & 0x000000ff); in 20 test/correctness/histogram.cpp reference_hist[uint8_t(in(x, y))] += 1; in 27 test/correctness/histogram.cpp RDom r(in); in 29 test/correctness/histogram.cpp hist(clamp(cast<int>(in(r.x, r.y)), 0, 255)) += 1; in 11 test/correctness/histogram_equalize.cpp Buffer<uint8_t> in(W, H); in 16 test/correctness/histogram_equalize.cpp in(x, y) = r1/2 + 64; in 22 test/correctness/histogram_equalize.cpp RDom r(in), ri(0, 255); in 26 test/correctness/histogram_equalize.cpp hist(in(r.x, r.y)) += 1; in 33 test/correctness/histogram_equalize.cpp equalized(x, y) = cdf(in(x, y)); in 39 test/correctness/histogram_equalize.cpp int pixels = in.extent(0)*in.extent(1); in 42 test/correctness/histogram_equalize.cpp Buffer<uint8_t> out = rescaled.realize(in.width(), in.height()); in 52 test/correctness/histogram_equalize.cpp in_hist[in(x, y)/16]++; in 57 test/correctness/histogram_equalize.cpp int correct = (in.width()*in.height())/16; in 23 test/correctness/image_wrap.cpp Func wrapper = img.in(f); in 25 test/correctness/image_wrap.cpp Func temp = img.in(f); in 39 test/correctness/image_wrap.cpp Func wrapper1 = img.in(); in 40 test/correctness/image_wrap.cpp Func wrapper2 = img.in(); in 55 test/correctness/image_wrap.cpp Func wrapper1 = img.in({e, f, g}); in 56 test/correctness/image_wrap.cpp Func wrapper2 = img.in({g, f, e}); in 77 test/correctness/image_wrap.cpp Func wrapper = img.in(g).compute_root(); in 117 test/correctness/image_wrap.cpp Func im_wrapper = img.in({g1, g2, g3}).compute_root(); in 205 test/correctness/image_wrap.cpp Func wrapper = img.in(); in 248 test/correctness/image_wrap.cpp Func wrapper = img.in(g); in 340 test/correctness/image_wrap.cpp Func wrapper = g.in().compute_root(); in 381 test/correctness/image_wrap.cpp Func img_in_g = img.in(g).compute_at(g, x); in 382 test/correctness/image_wrap.cpp Func img_wrapper = img.in().compute_at(result, y); in 432 test/correctness/image_wrap.cpp Func img_in_f = img.in(f); in 433 test/correctness/image_wrap.cpp Func g_in_h = g.in(h).compute_root(); in 474 test/correctness/image_wrap.cpp Func img_in_g = img.in(g).compute_root(); in 475 test/correctness/image_wrap.cpp Func img_in_img_in_g = img.in(img_in_g).compute_root(); in 481 test/correctness/image_wrap.cpp Func img_in_h = img.in(h).compute_root(); in 482 test/correctness/image_wrap.cpp Func g_in_h = g.in(h).compute_root(); in 526 test/correctness/image_wrap.cpp Func h_wrapper = h.in().store_root().compute_at(g, r.y); in 527 test/correctness/image_wrap.cpp Func img_in_g = img.in(g).compute_at(g, r.x); in 578 test/correctness/image_wrap.cpp img_in_output = img.in(output).compute_at(output, x).vectorize(_0).unroll(_1); in 579 test/correctness/image_wrap.cpp img_in_output_in_output = img_in_output.in(output).compute_at(output, x).unroll(_0).unroll(_1); in 621 test/correctness/image_wrap.cpp img_in_g = img.in(g).compute_root().tile(_0, _1, xi, yi, 8, 8).vectorize(xi).unroll(yi); in 622 test/correctness/image_wrap.cpp img_in_g_in_g = img_in_g.in(g).compute_root().tile(_0, _1, xi, yi, 8, 8).unroll(xi).unroll(yi); in 625 test/correctness/image_wrap.cpp img_in_g_in_g_in_h = img_in_g_in_g.in(h).compute_at(h, x).vectorize(_0).unroll(_1); in 626 test/correctness/image_wrap.cpp img_in_g_in_g_in_h_in_h = img_in_g_in_g_in_h.in(h).compute_at(h, x).unroll(_0).unroll(_1); in 19 test/correctness/iterate_over_circle.cpp Func in; in 20 test/correctness/iterate_over_circle.cpp in(x, y) = x + y; in 21 test/correctness/iterate_over_circle.cpp in.compute_root(); in 28 test/correctness/iterate_over_circle.cpp f(x, y) += select(x > -t && x < t, in(x, y), 0); in 30 test/correctness/iterate_over_circle.cpp in.trace_loads(); in 20 test/correctness/lots_of_dimensions.cpp Buffer<uint64_t> in(2, 3, 4, 5, 6, 7, 8, 9); in 24 test/correctness/lots_of_dimensions.cpp in.set_min(90, 80, 70, 60, 50, 40, 30, 20); in 28 test/correctness/lots_of_dimensions.cpp for (int i0 = in.dim(0).min(); i0 <= in.dim(0).max(); i0++) { in 29 test/correctness/lots_of_dimensions.cpp for (int i1 = in.dim(1).min(); i1 <= in.dim(1).max(); i1++) { in 30 test/correctness/lots_of_dimensions.cpp for (int i2 = in.dim(2).min(); i2 <= in.dim(2).max(); i2++) { in 31 test/correctness/lots_of_dimensions.cpp for (int i3 = in.dim(3).min(); i3 <= in.dim(3).max(); i3++) { in 32 test/correctness/lots_of_dimensions.cpp for (int i4 = in.dim(4).min(); i4 <= in.dim(4).max(); i4++) { in 33 test/correctness/lots_of_dimensions.cpp for (int i5 = in.dim(5).min(); i5 <= in.dim(5).max(); i5++) { in 34 test/correctness/lots_of_dimensions.cpp for (int i6 = in.dim(6).min(); i6 <= in.dim(6).max(); i6++) { in 35 test/correctness/lots_of_dimensions.cpp for (int i7 = in.dim(7).min(); i7 <= in.dim(7).max(); i7++) { in 36 test/correctness/lots_of_dimensions.cpp in(i0, i1, i2, i3, i4, i5, i6, i7) = fn(i0, i1, i2, i3, i4, i5, i6, i7); in 48 test/correctness/lots_of_dimensions.cpp in.for_each_element([&](int i0, int i1, int i2, int i3, int i4, int i5, int i6, int i7) { in 51 test/correctness/lots_of_dimensions.cpp uint64_t actual = in(i0, i1, i2, i3, i4, i5, i6, i7); in 58 test/correctness/lots_of_dimensions.cpp if (count != (int)in.number_of_elements()) { in 59 test/correctness/lots_of_dimensions.cpp printf("count = %d instead of %d\n", count, (int)in.number_of_elements()); in 74 test/correctness/lots_of_dimensions.cpp input.set(in); in 78 test/correctness/lots_of_dimensions.cpp for (int i0 = in.dim(0).min(); i0 <= in.dim(0).max(); i0++) { in 79 test/correctness/lots_of_dimensions.cpp for (int i1 = in.dim(1).min(); i1 <= in.dim(1).max(); i1++) { in 80 test/correctness/lots_of_dimensions.cpp for (int i2 = in.dim(2).min(); i2 <= in.dim(2).max(); i2++) { in 81 test/correctness/lots_of_dimensions.cpp for (int i3 = in.dim(3).min(); i3 <= in.dim(3).max(); i3++) { in 82 test/correctness/lots_of_dimensions.cpp for (int i4 = in.dim(4).min(); i4 <= in.dim(4).max(); i4++) { in 83 test/correctness/lots_of_dimensions.cpp for (int i5 = in.dim(5).min(); i5 <= in.dim(5).max(); i5++) { in 84 test/correctness/lots_of_dimensions.cpp for (int i6 = in.dim(6).min(); i6 <= in.dim(6).max(); i6++) { in 85 test/correctness/lots_of_dimensions.cpp for (int i7 = in.dim(7).min(); i7 <= in.dim(7).max(); i7++) { in 86 test/correctness/lots_of_dimensions.cpp uint64_t correct = in(i0, i1, i2, i3, i4, i5, i6, i7); in 16 test/correctness/many_small_extern_stages.cpp extern "C" DLLEXPORT int copy(halide_buffer_t *in, halide_buffer_t *out) { in 25 test/correctness/many_small_extern_stages.cpp if (in->host == nullptr) { in 27 test/correctness/many_small_extern_stages.cpp in->dim[0] = out->dim[0]; in 28 test/correctness/many_small_extern_stages.cpp in->dim[1] = out->dim[1]; in 35 test/correctness/many_small_extern_stages.cpp assert(in->dim[0] == out->dim[0]); in 36 test/correctness/many_small_extern_stages.cpp assert(in->dim[1] == out->dim[1]); in 43 test/correctness/many_small_extern_stages.cpp memcpy(out->host, in->host, sz); in 57 test/correctness/math.cpp void test_##type##_##name(Buffer<type> in) { \ in 64 test/correctness/math.cpp test_##name(x) = name(in(x)); \ in 70 test/correctness/math.cpp Buffer<type_ret> result = test_##name.realize(in.extent(0), target); \ in 71 test/correctness/math.cpp for (int i = 0; i < in.extent(0); i++) { \ in 72 test/correctness/math.cpp type_ret c_result = c_name(in(i)); \ in 74 test/correctness/math.cpp printf("For " #name "(%.20f) == %.20f from cpu and %.20f from GPU.\n", (double)in(i), (double)c_result, (double)result(i)); \ in 82 test/correctness/math.cpp void test_##type##_##name(Buffer<type> in) { \ in 89 test/correctness/math.cpp test_##name(x) = name(in(0, x), in(1, x)); \ in 95 test/correctness/math.cpp Buffer<type_ret> result = test_##name.realize(in.height(), target); \ in 96 test/correctness/math.cpp for (int i = 0; i < in.height(); i++) { \ in 97 test/correctness/math.cpp type_ret c_result = c_name(in(0, i), in(1, i)); \ in 17 test/correctness/median3x3.cpp Buffer<uint8_t> in(W, H); in 21 test/correctness/median3x3.cpp in(x, y) = rand() & 0xff; in 28 test/correctness/median3x3.cpp Func input = BoundaryConditions::constant_exterior(in, 0); in 61 test/correctness/median3x3.cpp uint8_t inp[9] = {in(x-1, y-1), in(x, y-1), in(x+1, y-1), in 62 test/correctness/median3x3.cpp in(x-1, y), in(x, y), in(x+1, y), in 63 test/correctness/median3x3.cpp in(x-1, y+1), in(x, y+1), in(x+1, y+1)}; in 49 test/correctness/memoize.cpp extern "C" DLLEXPORT int count_calls_staged(int32_t stage, uint8_t val, halide_buffer_t *in, halide_buffer_t *out) { in 50 test/correctness/memoize.cpp if (in->host == nullptr) { in 52 test/correctness/memoize.cpp in->dim[i] = out->dim[i]; in 57 test/correctness/memoize.cpp Halide::Runtime::Buffer<uint8_t> out_buf(*out), in_buf(*in); in 58 test/correctness/memoize.cpp out_buf.for_each_value([&](uint8_t &out, uint8_t &in) {out = in + val;}, in_buf); in 11 test/correctness/min_extent.cpp ImageParam in(Int(32), 1, "in"); in 16 test/correctness/min_extent.cpp factor = select(x < in.left(), -10, in 17 test/correctness/min_extent.cpp select(x > in.right(), 10, 1)); in 35 test/correctness/min_extent.cpp in.set(input); in 7 test/correctness/multipass_constraints.cpp ImageParam in(Float(32), 2, "in"); in 12 test/correctness/multipass_constraints.cpp out(x, y) = in(x+1, y+1) + in(x-1, y-1); in 19 test/correctness/multipass_constraints.cpp in.dim(0).set_bounds(in.dim(1).min() - 5, in.dim(1).extent() + o.dim(0).extent()); in 29 test/correctness/multipass_constraints.cpp if (in.get().dim(0).min() != -4 || in 30 test/correctness/multipass_constraints.cpp in.get().dim(0).extent() != 34 || in 31 test/correctness/multipass_constraints.cpp in.get().dim(1).min() != 1 || in 32 test/correctness/multipass_constraints.cpp in.get().dim(1).extent() != 10 || in 41 test/correctness/multipass_constraints.cpp in.get().dim(0).min(), in.get().dim(0).extent(), in 42 test/correctness/multipass_constraints.cpp in.get().dim(1).min(), in.get().dim(1).extent(), in 180 test/correctness/rfactor.cpp Func wrapper = f.in(intm).compute_root(); in 399 test/correctness/rfactor.cpp Buffer<float> in(W, H); in 402 test/correctness/rfactor.cpp in(x, y) = float(rand() & 0x000000ff); in 403 test/correctness/rfactor.cpp reference_hist[uint8_t(in(x, y))] += 1; in 411 test/correctness/rfactor.cpp RDom r(in); in 413 test/correctness/rfactor.cpp hist(clamp(cast<int>(in(r.x, r.y)), 0, 255)) += 1; in 432 test/correctness/rfactor.cpp {intm.name(), {in.name(), intm.name()}}, in 19 test/correctness/saturating_casts.cpp Buffer<source_t> in(7); in 20 test/correctness/saturating_casts.cpp in(0) = (source_t)0; in 21 test/correctness/saturating_casts.cpp in(1) = (source_t)1; in 23 test/correctness/saturating_casts.cpp in(2) = (source_t)-1; in 24 test/correctness/saturating_casts.cpp in(3) = (source_t)source_max; in 25 test/correctness/saturating_casts.cpp in(4) = (source_t)source_min; in 27 test/correctness/saturating_casts.cpp in(5) = (source_t)target_min; in 28 test/correctness/saturating_casts.cpp in(6) = (source_t)target_max; in 33 test/correctness/saturating_casts.cpp f(x) = saturating_cast<target_t>(in(x)); in 45 test/correctness/saturating_casts.cpp double bounded_lower = std::max((double)in(i), (double)target_min); in 52 test/correctness/saturating_casts.cpp correct_result = (target_t)std::min((double)in(i), (double)target_max); in 55 test/correctness/saturating_casts.cpp correct_result = (target_t)std::min(std::max(in(i), in 59 test/correctness/saturating_casts.cpp correct_result = (target_t)in(i); in 63 test/correctness/saturating_casts.cpp source_t val = std::max(in(i), (source_t)0); in 71 test/correctness/saturating_casts.cpp correct_result = (target_t)std::min(in(i), (source_t)target_max); in 73 test/correctness/saturating_casts.cpp correct_result = std::min((target_t)in(i), target_max); in 83 test/correctness/saturating_casts.cpp simpler_correct_result = std::min(std::max((int64_t)in(i), in 92 test/correctness/saturating_casts.cpp std::cout << "in(i) " << in(i) in 103 test/correctness/saturating_casts.cpp << " for input " << in(i) << std::endl; in 118 test/correctness/saturating_casts.cpp Buffer<source_t> in(7); in 119 test/correctness/saturating_casts.cpp in(0) = (source_t)0; in 120 test/correctness/saturating_casts.cpp in(1) = (source_t)1; in 122 test/correctness/saturating_casts.cpp in(2) = (source_t)-1; in 123 test/correctness/saturating_casts.cpp in(3) = (source_t)source_max; in 124 test/correctness/saturating_casts.cpp in(4) = (source_t)source_min; in 126 test/correctness/saturating_casts.cpp in(5) = (source_t)target_min; in 127 test/correctness/saturating_casts.cpp in(6) = (source_t)target_max; in 132 test/correctness/saturating_casts.cpp f(x) = cast_maker(in(x)); in 144 test/correctness/saturating_casts.cpp source_t bounded_lower = std::max(in(i), (source_t)target_min); in 152 test/correctness/saturating_casts.cpp correct_result = (target_t)std::min(std::max(in(i), in 156 test/correctness/saturating_casts.cpp correct_result = (target_t)in(i); in 160 test/correctness/saturating_casts.cpp source_t val = std::max(in(i), (source_t)0); in 168 test/correctness/saturating_casts.cpp correct_result = (target_t)std::min(in(i), (source_t)target_max); in 170 test/correctness/saturating_casts.cpp correct_result = std::min((target_t)in(i), target_max); in 181 test/correctness/saturating_casts.cpp double bounded_lower = std::max((double)in(i), (double)target_min); in 188 test/correctness/saturating_casts.cpp simpler_correct_result = std::min(std::max((int64_t)in(i), in 198 test/correctness/saturating_casts.cpp std::cout << "in(i) " << in(i) in 206 test/correctness/saturating_casts.cpp correct_result = (target_t)in(i); in 213 test/correctness/saturating_casts.cpp << " for input " << in(i) in 14 test/correctness/specialize_to_gpu.cpp ImageParam in(Int(32), 1); in 17 test/correctness/specialize_to_gpu.cpp f(x) = in(x) + in(x + 1); in 30 test/correctness/specialize_to_gpu.cpp in.set(input); in 6 test/correctness/unique_func_image.cpp Func add2(Func in) { in 8 test/correctness/unique_func_image.cpp a(_) = in(_) + 2; in 10 test/correctness/widening_reduction.cpp Buffer<uint8_t> in(W, H); in 14 test/correctness/widening_reduction.cpp in(x, y) = rand() & 0xff; in 31 test/correctness/widening_reduction.cpp Func input = BoundaryConditions::repeat_edge(in); in 57 test/correctness/widening_reduction.cpp correct += static_cast<int16_t>(in(x + rx, y + ry)) * kernel(rx, ry); in 99 test/correctness/widening_reduction.cpp correct += static_cast<int16_t>(in(x + rx, y + ry)) * kernel(rx, ry); in 23 test/correctness/wrap.cpp Func wrapper = f.in(g); in 25 test/correctness/wrap.cpp Func temp = f.in(g); in 39 test/correctness/wrap.cpp Func wrapper1 = f.in(); in 40 test/correctness/wrap.cpp Func wrapper2 = f.in(); in 55 test/correctness/wrap.cpp Func wrapper1 = d.in({e, f, g}); in 56 test/correctness/wrap.cpp Func wrapper2 = d.in({g, f, e}); in 73 test/correctness/wrap.cpp Func wrapper = f.in(g).compute_root(); in 109 test/correctness/wrap.cpp Func f_wrapper = f.in({g1, g2, g3}).compute_root(); in 191 test/correctness/wrap.cpp Func wrapper = f.in(); in 229 test/correctness/wrap.cpp Func wrapper = f.in(g); in 316 test/correctness/wrap.cpp Func wrapper = g.in().compute_root(); in 352 test/correctness/wrap.cpp Func f_in_g = f.in(g).compute_at(g, x); in 353 test/correctness/wrap.cpp Func f_wrapper = f.in().compute_at(result, y); in 397 test/correctness/wrap.cpp Func e_in_f = e.in(f); in 398 test/correctness/wrap.cpp Func g_in_h = g.in(h).compute_root(); in 436 test/correctness/wrap.cpp Func f_in_g = f.in(g).compute_root(); in 437 test/correctness/wrap.cpp Func f_in_f_in_g = f.in(f_in_g).compute_root(); in 443 test/correctness/wrap.cpp Func f_in_h = f.in(h).compute_root(); in 444 test/correctness/wrap.cpp Func g_in_h = g.in(h).compute_root(); in 485 test/correctness/wrap.cpp Func h_wrapper = h.in().store_root().compute_at(g, r.y); in 486 test/correctness/wrap.cpp Func f_in_g = f.in(g).compute_at(g, r.x); in 530 test/correctness/wrap.cpp input_in_output = input.in(output).compute_at(output, x).vectorize(x).unroll(y); in 531 test/correctness/wrap.cpp input_in_output_in_output = input_in_output.in(output).compute_at(output, x).unroll(x).unroll(y); in 568 test/correctness/wrap.cpp f_in_g = f.in(g).compute_root().tile(x, y, xi, yi, 8, 8).vectorize(xi).unroll(yi); in 569 test/correctness/wrap.cpp f_in_g_in_g = f_in_g.in(g).compute_root().tile(x, y, xi, yi, 8, 8).unroll(xi).unroll(yi); in 572 test/correctness/wrap.cpp f_in_g_in_g_in_h = f_in_g_in_g.in(h).compute_at(h, x).vectorize(x).unroll(y); in 573 test/correctness/wrap.cpp f_in_g_in_g_in_h_in_h = f_in_g_in_g_in_h.in(h).compute_at(h, x).unroll(x).unroll(y); in 11 test/error/bad_host_alignment.cpp ImageParam in(UInt(8), 2); in 16 test/error/bad_host_alignment.cpp in.set_host_alignment(512); in 17 test/error/bad_host_alignment.cpp f(x, y) = in(x, y); in 20 test/error/bad_host_alignment.cpp in.set(param_buf); in 28 test/error/expanding_reduction.cpp Buffer<int> in(input.get()); in 29 test/error/expanding_reduction.cpp assert(in.height() == 102 && in.width() == 100); in 7 test/error/init_def_should_be_all_vars.cpp Buffer<int> in(10, 10); in 10 test/error/init_def_should_be_all_vars.cpp RDom r(0, in.width(), 0, in.height()); in 11 test/error/init_def_should_be_all_vars.cpp f(r.x, r.y) = in(r.x, r.y) + 2; in 12 test/error/init_def_should_be_all_vars.cpp f.realize(in.width(), in.height()); in 10 test/error/unbounded_input.cpp ImageParam in(Float(32), 2); in 14 test/error/unbounded_input.cpp f(x, y) = in(x_coord(x, y), y_coord(x, y)); in 10 test/error/unbounded_output.cpp ImageParam in(Float(32), 2); in 16 test/error/unbounded_output.cpp f(x_coord(r.x, r.y), y_coord(r.x, r.y)) += in(r.x, r.y); in 17 test/error/wrap_custom_after_shared.cpp Func wrapper1 = f.in({g1, g4, g3}); in 18 test/error/wrap_custom_after_shared.cpp Func wrapper2 = f.in(g3); in 12 test/error/wrap_frozen.cpp Func wrapper = f.in(g); in 24 test/generator/error_codes_aottest.cpp halide_buffer_t in = {0}, out = {0}; in 28 test/generator/error_codes_aottest.cpp in.host = (uint8_t *)malloc(64*64*4); in 29 test/generator/error_codes_aottest.cpp in.type = halide_type_of<int>(); in 30 test/generator/error_codes_aottest.cpp in.dim = shape; in 31 test/generator/error_codes_aottest.cpp in.dimensions = 2; in 39 test/generator/error_codes_aottest.cpp int result = error_codes(&in, 64, &out); in 45 test/generator/error_codes_aottest.cpp result = error_codes(&in, 50, &out); in 52 test/generator/error_codes_aottest.cpp in.dim = smaller; in 53 test/generator/error_codes_aottest.cpp result = error_codes(&in, 64, &out); in 56 test/generator/error_codes_aottest.cpp in.dim = shape; in 62 test/generator/error_codes_aottest.cpp halide_buffer_t i = in, o = out; in 74 test/generator/error_codes_aottest.cpp in.dim = huge; in 75 test/generator/error_codes_aottest.cpp result = error_codes(&in, 64, &out); in 78 test/generator/error_codes_aottest.cpp in.dim = shape; in 83 test/generator/error_codes_aottest.cpp in.dim = huge_stride; in 84 test/generator/error_codes_aottest.cpp result = error_codes(&in, 64, &out); in 87 test/generator/error_codes_aottest.cpp in.dim = shape; in 98 test/generator/error_codes_aottest.cpp in.dim = wrong_stride; in 99 test/generator/error_codes_aottest.cpp result = error_codes(&in, 64, &out); in 102 test/generator/error_codes_aottest.cpp in.dim = shape; in 105 test/generator/error_codes_aottest.cpp result = error_codes(&in, -23, &out); in 110 test/generator/error_codes_aottest.cpp result = error_codes(&in, 108, &out); in 1 test/generator/external_code_extern.cpp extern "C" float gen_extern_tester(float in) { in 2 test/generator/external_code_extern.cpp return in + 42; in 98 test/generator/float16_t_aottest.cpp uint16_t in = inputs[index]; in 103 test/generator/float16_t_aottest.cpp outF.asFloat = halide_float16_bits_to_float(in); in 108 test/generator/float16_t_aottest.cpp outD.asDouble = halide_float16_bits_to_double(in); in 163 test/generator/matlab_aottest.cpp float in = input(i, j); in 164 test/generator/matlab_aottest.cpp float expected = in * scale(0, 0) * (negate(0, 0) ? -1.0f : 1.0f); in 23 test/generator/msan_aottest.cpp extern "C" int msan_extern_stage(halide_buffer_t *in, halide_buffer_t *out) { in 24 test/generator/msan_aottest.cpp if (in->host == nullptr) { in 25 test/generator/msan_aottest.cpp in->dim[0].extent = 4; in 26 test/generator/msan_aottest.cpp in->dim[1].extent = 4; in 27 test/generator/msan_aottest.cpp in->dim[2].extent = 3; in 28 test/generator/msan_aottest.cpp in->dim[0].min = 0; in 29 test/generator/msan_aottest.cpp in->dim[1].min = 0; in 30 test/generator/msan_aottest.cpp in->dim[2].min = 0; in 37 test/generator/msan_aottest.cpp if (in->type != out->type) { in 40 test/generator/msan_aottest.cpp Buffer<int32_t>(*out).copy_from(Buffer<int32_t>(*in)); in 80 test/performance/block_transpose.cpp block_transpose = input.in(output).compute_at(output, x).vectorize(x).unroll(y); in 85 test/performance/block_transpose.cpp block = block_transpose.in(output).reorder_storage(y, x).compute_at(output, x).unroll(x).unroll(y); in 90 test/performance/block_transpose.cpp block = block_transpose.in(output).reorder_storage(y, x).compute_at(output, x).vectorize(y).unroll(x); in 95 test/performance/block_transpose.cpp block = block_transpose.in(output).reorder_storage(y, x).compute_at(output, x).vectorize(x).unroll(y); in 78 test/performance/boundary_conditions.cpp Buffer<float> in(W, H); in 85 test/performance/boundary_conditions.cpp input.set(in); in 76 test/performance/rfactor.cpp Buffer<uint8_t> in(W, H); in 79 test/performance/rfactor.cpp in(x, y) = rand(); in 89 test/performance/rfactor.cpp ref(in(r.x, r.y)) += 1; in 92 test/performance/rfactor.cpp hist(in(r.x, r.y)) += 1; in 119 test/performance/rfactor.cpp double gbits = in.type().bits() * W * H / 1e9; // bits per seconds in 108 test/performance/wrap.cpp host.in().compute_at(final, xo).unroll(x, 2).unroll(y, 2).gpu_threads(x, y); in 47 tools/halide_image_io.h inline void convert(uint8_t in, uint8_t &out) {out = in;} in 48 tools/halide_image_io.h inline void convert(uint16_t in, uint8_t &out) {out = in >> 8;} in 49 tools/halide_image_io.h inline void convert(uint32_t in, uint8_t &out) {out = in >> 24;} in 50 tools/halide_image_io.h inline void convert(int8_t in, uint8_t &out) {out = in;} in 51 tools/halide_image_io.h inline void convert(int16_t in, uint8_t &out) {out = in >> 8;} in 52 tools/halide_image_io.h inline void convert(int32_t in, uint8_t &out) {out = in >> 24;} in 53 tools/halide_image_io.h inline void convert(float in, uint8_t &out) {out = (uint8_t)(in*255.0f);} in 54 tools/halide_image_io.h inline void convert(double in, uint8_t &out) {out = (uint8_t)(in*255.0f);} in 57 tools/halide_image_io.h inline void convert(uint8_t in, uint16_t &out) {out = in << 8;} in 58 tools/halide_image_io.h inline void convert(uint16_t in, uint16_t &out) {out = in;} in 59 tools/halide_image_io.h inline void convert(uint32_t in, uint16_t &out) {out = in >> 16;} in 60 tools/halide_image_io.h inline void convert(int8_t in, uint16_t &out) {out = in << 8;} in 61 tools/halide_image_io.h inline void convert(int16_t in, uint16_t &out) {out = in;} in 62 tools/halide_image_io.h inline void convert(int32_t in, uint16_t &out) {out = in >> 16;} in 63 tools/halide_image_io.h inline void convert(float in, uint16_t &out) {out = (uint16_t)(in*65535.0f);} in 64 tools/halide_image_io.h inline void convert(double in, uint16_t &out) {out = (uint16_t)(in*65535.0f);} in 67 tools/halide_image_io.h inline void convert(uint8_t in, uint32_t &out) {out = in << 24;} in 68 tools/halide_image_io.h inline void convert(uint8_t in, int8_t &out) {out = in;} in 69 tools/halide_image_io.h inline void convert(uint8_t in, int16_t &out) {out = in << 8;} in 70 tools/halide_image_io.h inline void convert(uint8_t in, int32_t &out) {out = in << 24;} in 71 tools/halide_image_io.h inline void convert(uint8_t in, float &out) {out = in/255.0f;} in 72 tools/halide_image_io.h inline void convert(uint8_t in, double &out) {out = in/255.0f;} in 75 tools/halide_image_io.h inline void convert(uint16_t in, uint32_t &out) {out = in << 16;} in 76 tools/halide_image_io.h inline void convert(uint16_t in, int8_t &out) {out = in >> 8;} in 77 tools/halide_image_io.h inline void convert(uint16_t in, int16_t &out) {out = in;} in 78 tools/halide_image_io.h inline void convert(uint16_t in, int32_t &out) {out = in << 16;} in 79 tools/halide_image_io.h inline void convert(uint16_t in, float &out) {out = in/65535.0f;} in 80 tools/halide_image_io.h inline void convert(uint16_t in, double &out) {out = in/65535.0f;} in 41 tutorial/lesson_12_using_the_gpu.cpp MyPipeline(Buffer<uint8_t> in) : input(in) {