g 14 apps/c_backend/pipeline_generator.cpp Func f, g, h; g 17 apps/c_backend/pipeline_generator.cpp g(x, y) = cast<uint16_t>(f(y, x) + f(x, y) + an_extern_func(x, y) + h()); g 22 apps/c_backend/pipeline_generator.cpp return g; g 168 apps/camera_pipe/camera_pipe_generator.cpp Func g = interleave_y(interleave_x(g_gr, g_r), g 175 apps/camera_pipe/camera_pipe_generator.cpp c == 1, g(x, y), g 228 apps/camera_pipe/camera_pipe_generator.cpp Expr g = matrix(3, 1) + matrix(0, 1) * ir + matrix(1, 1) * ig + matrix(2, 1) * ib; g 232 apps/camera_pipe/camera_pipe_generator.cpp g = cast<int16_t>(g/256); g 235 apps/camera_pipe/camera_pipe_generator.cpp c == 1, g, g 267 apps/camera_pipe/camera_pipe_generator.cpp Expr g = pow(xf, 1.0f/gamma); g 269 apps/camera_pipe/camera_pipe_generator.cpp Expr z = select(g > 0.5f, g 270 apps/camera_pipe/camera_pipe_generator.cpp 1.0f - (a*(1.0f-g)*(1.0f-g) + b*(1.0f-g)), g 271 apps/camera_pipe/camera_pipe_generator.cpp a*g*g + b*g); g 302 apps/camera_pipe/fcam/Demosaic.cpp float r, g, b; g 313 apps/camera_pipe/fcam/Demosaic.cpp g = colorMatrix[4]*linear[R][GR][y][x] + g 325 apps/camera_pipe/fcam/Demosaic.cpp gi = g < 0 ? 0 : (g > whiteLevel ? whiteLevel : (unsigned short)(g+0.5f)); g 339 apps/camera_pipe/fcam/Demosaic.cpp g = colorMatrix[4]*linear[R][R][y][x] + g 351 apps/camera_pipe/fcam/Demosaic.cpp gi = g < 0 ? 0 : (g > whiteLevel ? whiteLevel : (unsigned short)(g+0.5f)); g 365 apps/camera_pipe/fcam/Demosaic.cpp g = colorMatrix[4]*linear[R][B][y][x] + g 377 apps/camera_pipe/fcam/Demosaic.cpp gi = g < 0 ? 0 : (g > whiteLevel ? whiteLevel : (unsigned short)(g+0.5f)); g 391 apps/camera_pipe/fcam/Demosaic.cpp g = colorMatrix[4]*linear[R][GB][y][x] + g 403 apps/camera_pipe/fcam/Demosaic.cpp gi = g < 0 ? 0 : (g > whiteLevel ? whiteLevel : (unsigned short)(g+0.5f)); g 25 apps/openglcompute/test_two_kernels.cpp Func g("g"); g 26 apps/openglcompute/test_two_kernels.cpp g(x, y, c) = f(x, y, c) - 1; g 27 apps/openglcompute/test_two_kernels.cpp g.bound(c, 0, 4) g 31 apps/openglcompute/test_two_kernels.cpp g.unroll(c) g 34 apps/openglcompute/test_two_kernels.cpp g.output_buffer().dim(2).set_bounds(0, 4).set_stride(1).dim(0).set_stride(4); g 37 apps/openglcompute/test_two_kernels.cpp g.compile_to_file(fn_name, {input}, fn_name); g 201 src/CSE.cpp ComputeUseCounts(GVN &g) : gvn(g) {} g 308 src/Elf.cpp unsigned long g; g 311 src/Elf.cpp g = h & 0xf0000000; g 312 src/Elf.cpp if (g != 0) { g 313 src/Elf.cpp h ^= g >> 24; g 315 src/Elf.cpp h &= ~g; g 55 src/FindCalls.cpp Function g(arg.func); g 56 src/FindCalls.cpp calls.calls[g.name()] = g; g 1041 src/Generator.cpp std::unique_ptr<GeneratorBase> g = it->second->create(context, params); g 1042 src/Generator.cpp internal_assert(g != nullptr); g 1043 src/Generator.cpp return g; g 1165 src/Generator.cpp for (auto *g : generator_params) { g 1166 src/Generator.cpp generator_params_by_name[g->name] = g; g 1169 src/Generator.cpp for (auto &g : owned_synthetic_params) { g 1170 src/Generator.cpp g->generator = generator; g 2017 src/Generator.cpp Func f, g; g 2019 src/Generator.cpp g(x, y) = f(gp, gp); // check Func::operator() overloads g 2020 src/Generator.cpp g(rdom.x, rdom.y) += f(rdom.x, rdom.y); g 2021 src/Generator.cpp g.update(0).reorder(rdom.y, rdom.x); // check Func::reorder() overloads for RDom::operator RVar() g 2024 src/Generator.cpp print(f(0, 0), g(1, 1), gp); g 2025 src/Generator.cpp print_when(true, f(0, 0), g(1, 1), gp); g 2624 src/Generator.h auto g = create_func(context); g 2625 src/Generator.h internal_assert(g.get() != nullptr); g 2626 src/Generator.h g->set_generator_name(generator_name); g 2627 src/Generator.h g->set_generator_and_schedule_param_values(params); g 2628 src/Generator.h return g; g 984 src/ScheduleFunctions.cpp Function g(arg.func); g 985 src/ScheduleFunctions.cpp if (g.schedule().compute_level().is_inline()) { g 987 src/ScheduleFunctions.cpp << "Func " << g.name() << " cannot be scheduled to be computed inline, " g 377 src/SkipStages.cpp ProductionGuarder g(op->name, compute_predicate, alloc_predicate); g 378 src/SkipStages.cpp Stmt body = g.mutate(op->body); g 135 src/runtime/hexagon_remote/dlib.cpp unsigned long g; g 138 src/runtime/hexagon_remote/dlib.cpp g = h & 0xf0000000; g 139 src/runtime/hexagon_remote/dlib.cpp if (g != 0) { g 140 src/runtime/hexagon_remote/dlib.cpp h ^= g >> 24; g 142 src/runtime/hexagon_remote/dlib.cpp h &= ~g; g 27 test/correctness/align_bounds.cpp Func f, g, h; g 32 test/correctness/align_bounds.cpp g(x) = select(x % 2 == 0, f(x+1), f(x-1)+8); g 35 test/correctness/align_bounds.cpp h(x) = g(x-p) + g(x+p); g 38 test/correctness/align_bounds.cpp g.compute_root().align_bounds(x, 2).unroll(x, 2).trace_realizations(); g 41 test/correctness/align_bounds.cpp Module m = g.compile_to_module({p}); g 90 test/correctness/align_bounds.cpp Func f, g, h; g 95 test/correctness/align_bounds.cpp g(x) = select(x % 2 == 0, f(x+1), f(x-1)+8); g 98 test/correctness/align_bounds.cpp h(x) = g(x-p) + g(x+p); g 101 test/correctness/align_bounds.cpp g.compute_root().align_bounds(x, 2, 1).unroll(x, 2).trace_realizations(); g 104 test/correctness/align_bounds.cpp Module m = g.compile_to_module({p}); g 30 test/correctness/argmax.cpp Func g, arg_max_g; g 33 test/correctness/argmax.cpp g(x, y) = x * (100 - x) + y * (80 - y); g 34 test/correctness/argmax.cpp g.compute_root(); g 36 test/correctness/argmax.cpp arg_max_g() = Tuple(0, 0, g(0,0)); g 37 test/correctness/argmax.cpp arg_max_g() = tuple_select(g(r.x, r.y) > arg_max_g()[2], g 38 test/correctness/argmax.cpp Tuple(r.x, r.y, g(r.x, r.y)), g 56 test/correctness/argmax.cpp evaluate_may_gpu(argmax(g(r.x, r.y)), &best_x, &best_y, &best_val); g 64 test/correctness/argmax.cpp evaluate_may_gpu(argmin(g(r.x, r.y)), &best_x, &best_y, &best_val); g 13 test/correctness/assertion_failure_in_parallel_for.cpp Func f("f"), g("g"), h("h"); g 20 test/correctness/assertion_failure_in_parallel_for.cpp g(x, y) = h(x % split, y % split) + 1; g 22 test/correctness/assertion_failure_in_parallel_for.cpp g.tile(x, y, xi, yi, split, split).parallel(y); g 25 test/correctness/assertion_failure_in_parallel_for.cpp f.compute_at(g, y); g 28 test/correctness/assertion_failure_in_parallel_for.cpp h.compute_at(g, x); g 36 test/correctness/assertion_failure_in_parallel_for.cpp g.set_error_handler(&halide_error); g 37 test/correctness/assertion_failure_in_parallel_for.cpp g.realize(40, 40); g 19 test/correctness/autotune_bug_2.cpp Func f("f"), g("g"); g 26 test/correctness/autotune_bug_2.cpp g(x) = f(x) + f(x+1); g 27 test/correctness/autotune_bug_2.cpp f.compute_at(g, x); g 35 test/correctness/autotune_bug_2.cpp g.set_custom_trace(&my_trace); g 36 test/correctness/autotune_bug_2.cpp g.bound(x, 0, 2); g 37 test/correctness/autotune_bug_2.cpp g.output_buffer().dim(0).set_bounds(0, 2); g 38 test/correctness/autotune_bug_2.cpp g.realize(2); g 19 test/correctness/autotune_bug_3.cpp Func f("f"), g("g"); g 24 test/correctness/autotune_bug_3.cpp g(x) = f(x) + f(x+1); g 25 test/correctness/autotune_bug_3.cpp f.compute_at(g, x); g 32 test/correctness/autotune_bug_3.cpp g.set_custom_trace(&my_trace); g 33 test/correctness/autotune_bug_3.cpp g.bound(x, 0, 2); g 34 test/correctness/autotune_bug_3.cpp g.output_buffer().dim(0).set_bounds(0, 2); g 35 test/correctness/autotune_bug_3.cpp g.realize(2); g 19 test/correctness/autotune_bug_4.cpp Func f("f"), g("g"), h("h"); g 23 test/correctness/autotune_bug_4.cpp g(x) = f(x); g 24 test/correctness/autotune_bug_4.cpp h(x) = g(x) + g(x+1); g 28 test/correctness/autotune_bug_4.cpp g.split(x, xo, xi, 5); g 31 test/correctness/autotune_bug_4.cpp g.compute_at(h, xo); g 32 test/correctness/autotune_bug_4.cpp g.store_root(); g 35 test/correctness/autotune_bug_4.cpp g.trace_realizations().trace_stores().trace_loads(); g 8 test/correctness/bound.cpp Func f, g, h; g 11 test/correctness/bound.cpp g(x, y, c) = f(x, y) * c; g 13 test/correctness/bound.cpp g.bound(c, 0, 3); g 16 test/correctness/bound.cpp Buffer<int> img = g.realize(32, 32, 3); g 10 test/correctness/bounds.cpp Func f("f"), g("g"), h("h"); g 15 test/correctness/bounds.cpp g(x, y) = min(x, y); g 24 test/correctness/bounds.cpp g.gpu_tile(x, y, xo, yo, xi, yi, 8, 8); g 28 test/correctness/bounds.cpp g.hexagon().vectorize(x, 32); g 35 test/correctness/bounds.cpp Buffer<int> img = g.realize(32, 32, target); g 7 test/correctness/bounds_inference.cpp Func f("f"), g("g"), h("h"); g 11 test/correctness/bounds_inference.cpp g(x) = h(x-1) + h(x+1); g 12 test/correctness/bounds_inference.cpp f(x, y) = (g(x-1) + g(x+1)) + y; g 15 test/correctness/bounds_inference.cpp g.compute_root(); g 21 test/correctness/bounds_inference.cpp g.gpu_tile(x, xo, xi, 128); g 25 test/correctness/bounds_inference.cpp g.hexagon().vectorize(x, 32); g 8 test/correctness/bounds_inference_chunk.cpp Func f, g, h; Var x, y; g 11 test/correctness/bounds_inference_chunk.cpp g(x, y) = (h(x-1, y-1) + h(x+1, y+1))/2; g 12 test/correctness/bounds_inference_chunk.cpp f(x, y) = (g(x-1, y-1) + g(x+1, y+1))/2; g 15 test/correctness/bounds_inference_chunk.cpp g.compute_at(f, y); g 13 test/correctness/bounds_of_func.cpp Func f("f"), g("g"); g 20 test/correctness/bounds_of_func.cpp g(x) = in(f(x)); g 22 test/correctness/bounds_of_func.cpp g.infer_input_bounds(output); g 32 test/correctness/bounds_of_func.cpp Func f("f"), g("g"); g 40 test/correctness/bounds_of_func.cpp g(x) = in(f(x)); g 43 test/correctness/bounds_of_func.cpp g.infer_input_bounds(output); g 53 test/correctness/bounds_of_func.cpp Func f, g, h; g 58 test/correctness/bounds_of_func.cpp g(x) = max(f(x) - 10, 0); g 59 test/correctness/bounds_of_func.cpp g.compute_root(); g 61 test/correctness/bounds_of_func.cpp h(x) = in(g(g(g(x)))); g 60 test/correctness/c_function.cpp Func g; g 61 test/correctness/c_function.cpp g(x, y) = my_func(x, cast<float>(y)); g 63 test/correctness/c_function.cpp Pipeline p(g); g 7 test/correctness/cast_handle.cpp Func f, g; g 12 test/correctness/cast_handle.cpp g(x) = reinterpret<uint64_t>(handle); g 20 test/correctness/cast_handle.cpp g.vectorize(x, 4); g 21 test/correctness/cast_handle.cpp Buffer<uint64_t> out2 = g.realize(4); g 10 test/correctness/chunk.cpp Func f, g; g 15 test/correctness/chunk.cpp g(x, y) = f(x+1, y) + f(x-1, y); g 20 test/correctness/chunk.cpp g.gpu_tile(x, y, xo, yo, xi, yi, 8, 8); g 21 test/correctness/chunk.cpp f.compute_at(g, xo).gpu_threads(x, y); g 26 test/correctness/chunk.cpp Buffer<float> im = g.realize(32, 32, target); g 17 test/correctness/code_explosion.cpp Func g; g 18 test/correctness/code_explosion.cpp g(x) = funcs[funcs.size()-1](x); g 19 test/correctness/code_explosion.cpp g.realize(10); g 35 test/correctness/compile_to.cpp Func f, g, h, j; g 38 test/correctness/compile_to.cpp g(x, y) = cast<float>(f(x, y) + f(x+1, y)); g 39 test/correctness/compile_to.cpp h(x, y) = f(x, y) + g(x, y); g 43 test/correctness/compile_to.cpp g.compute_root(); g 9 test/correctness/compile_to_bitcode.cpp Func f, g, h, j; g 12 test/correctness/compile_to_bitcode.cpp g(x, y) = cast<float>(f(x, y) + f(x+1, y)); g 13 test/correctness/compile_to_bitcode.cpp h(x, y) = f(x, y) + g(x, y); g 17 test/correctness/compile_to_bitcode.cpp g.compute_root(); g 10 test/correctness/compile_to_lowered_stmt.cpp Func f, g, h, j; g 13 test/correctness/compile_to_lowered_stmt.cpp g(x, y) = cast<float>(f(x, y) + f(x+1, y))*p; g 14 test/correctness/compile_to_lowered_stmt.cpp h(x, y) = f(x, y) + g(x, y); g 18 test/correctness/compile_to_lowered_stmt.cpp g.compute_root(); g 32 test/correctness/compile_to_multitarget.cpp Func f, g, h, j; g 35 test/correctness/compile_to_multitarget.cpp g(x, y) = cast<float>(f(x, y) + f(x+1, y)); g 36 test/correctness/compile_to_multitarget.cpp h(x, y) = f(x, y) + g(x, y); g 40 test/correctness/compile_to_multitarget.cpp g.compute_root(); g 22 test/correctness/compute_at_split_rvar.cpp Func f, g; g 27 test/correctness/compute_at_split_rvar.cpp g(x) = 0; g 28 test/correctness/compute_at_split_rvar.cpp g(r) = f(r); g 30 test/correctness/compute_at_split_rvar.cpp g.update().split(r, ro, ri, 2); g 31 test/correctness/compute_at_split_rvar.cpp f.compute_at(g, ri); g 33 test/correctness/compute_at_split_rvar.cpp Buffer<int> im = g.realize(10); g 46 test/correctness/compute_at_split_rvar.cpp Func f, g; g 51 test/correctness/compute_at_split_rvar.cpp g(x) = 0; g 52 test/correctness/compute_at_split_rvar.cpp g(r) = f(r); g 54 test/correctness/compute_at_split_rvar.cpp g.update().split(r, ro, ri, 2); g 55 test/correctness/compute_at_split_rvar.cpp f.compute_at(g, ro).unroll(x); g 57 test/correctness/compute_at_split_rvar.cpp Buffer<int> im = g.realize(10); g 70 test/correctness/compute_at_split_rvar.cpp Func f, g; g 75 test/correctness/compute_at_split_rvar.cpp g(x) = 0; g 76 test/correctness/compute_at_split_rvar.cpp g(r) = f(r); g 78 test/correctness/compute_at_split_rvar.cpp g.update().split(r, ro, ri, 2).unroll(ri); g 79 test/correctness/compute_at_split_rvar.cpp f.compute_at(g, ri); g 81 test/correctness/compute_at_split_rvar.cpp Buffer<int> im = g.realize(10); g 96 test/correctness/compute_at_split_rvar.cpp Func f, g; g 101 test/correctness/compute_at_split_rvar.cpp g(x) = 0; g 102 test/correctness/compute_at_split_rvar.cpp g(r) = f(r); g 104 test/correctness/compute_at_split_rvar.cpp g.update().split(r, ro, ri, 2).reorder(ro, ri); g 105 test/correctness/compute_at_split_rvar.cpp f.compute_at(g, ro); g 107 test/correctness/compute_at_split_rvar.cpp Buffer<int> im = g.realize(10); g 121 test/correctness/compute_at_split_rvar.cpp Func f, g; g 126 test/correctness/compute_at_split_rvar.cpp g(x) = 0; g 127 test/correctness/compute_at_split_rvar.cpp g(r) = f(r); g 129 test/correctness/compute_at_split_rvar.cpp g.update().split(r, ro, ri, 4).split(ri, rio, rii, 2).fuse(rio, ro, fused); g 130 test/correctness/compute_at_split_rvar.cpp f.compute_at(g, fused); g 132 test/correctness/compute_at_split_rvar.cpp Buffer<int> im = g.realize(20); g 15 test/correctness/constraints.cpp Func f, g; g 47 test/correctness/constraints.cpp g(x, y) = x*y; g 48 test/correctness/constraints.cpp g.set_error_handler(my_error_handler); g 49 test/correctness/constraints.cpp g.output_buffer().dim(0).set_stride(2); g 51 test/correctness/constraints.cpp g.realize(image1); g 25 test/correctness/custom_allocator.cpp Func f, g; g 29 test/correctness/custom_allocator.cpp g(x) = f(x); g 32 test/correctness/custom_allocator.cpp g.set_custom_allocator(my_malloc, my_free); g 34 test/correctness/custom_allocator.cpp Buffer<int> im = g.realize(100000); g 19 test/correctness/debug_to_file.cpp Func f, g, h, j; g 22 test/correctness/debug_to_file.cpp g(x, y) = cast<float>(f(x, y) + f(x+1, y)); g 23 test/correctness/debug_to_file.cpp h(x, y) = f(x, y) + g(x, y); g 29 test/correctness/debug_to_file.cpp g.compute_root().gpu_tile(x, y, xi, yi, 1, 1).debug_to_file(g_tmp); g 33 test/correctness/debug_to_file.cpp g.compute_root().debug_to_file(g_tmp); g 45 test/correctness/debug_to_file.cpp FILE *g = fopen(g_tmp.c_str(), "rb"); g 47 test/correctness/debug_to_file.cpp assert(f && g && h); g 70 test/correctness/debug_to_file.cpp assert(fread((void *)(&header[0]), 4, 5, g) == 5); g 78 test/correctness/debug_to_file.cpp assert(fread((void *)(&g_data[0]), 4, 10*10, g) == 10*10); g 89 test/correctness/debug_to_file.cpp fclose(g); g 21 test/correctness/debug_to_file_multiple_outputs.cpp Func f, g, h, j; g 24 test/correctness/debug_to_file_multiple_outputs.cpp g(x, y) = cast<float>(f(x, y) + f(x + 1, y)); g 25 test/correctness/debug_to_file_multiple_outputs.cpp h(x, y) = f(x, y) + g(x, y); g 28 test/correctness/debug_to_file_multiple_outputs.cpp g.compute_root().debug_to_file(g_tmp); g 31 test/correctness/debug_to_file_multiple_outputs.cpp Pipeline p({f, g, h}); g 44 test/correctness/debug_to_file_multiple_outputs.cpp FILE *g = fopen(g_tmp.c_str(), "rb"); g 46 test/correctness/debug_to_file_multiple_outputs.cpp assert(f && g && h); g 69 test/correctness/debug_to_file_multiple_outputs.cpp assert(fread((void *)(&header[0]), 4, 5, g) == 5); g 77 test/correctness/debug_to_file_multiple_outputs.cpp assert(fread((void *)(&g_data[0]), 4, size_x*size_y, g) == size_x*size_y); g 88 test/correctness/debug_to_file_multiple_outputs.cpp fclose(g); g 21 test/correctness/debug_to_file_reorder.cpp Func f, g, h, j; g 24 test/correctness/debug_to_file_reorder.cpp g(x, y) = cast<float>(f(x, y) + f(x+1, y)); g 25 test/correctness/debug_to_file_reorder.cpp h(x, y) = f(x, y) + g(x, y); g 31 test/correctness/debug_to_file_reorder.cpp g.compute_root().gpu_tile(x, y, xi, yi, 1, 1).reorder_storage(y, x).debug_to_file(g_tmp); g 35 test/correctness/debug_to_file_reorder.cpp g.compute_root().reorder_storage(y, x).debug_to_file(g_tmp); g 47 test/correctness/debug_to_file_reorder.cpp FILE *g = fopen(g_tmp.c_str(), "rb"); g 49 test/correctness/debug_to_file_reorder.cpp assert(f && g && h); g 72 test/correctness/debug_to_file_reorder.cpp assert(fread((void *)(&header[0]), 4, 5, g) == 5); g 80 test/correctness/debug_to_file_reorder.cpp assert(fread((void *)(&g_data[0]), 4, size_x*size_y, g) == size_x*size_y); g 91 test/correctness/debug_to_file_reorder.cpp fclose(g); g 74 test/correctness/extern_bounds_inference.cpp Func f1, f2, g; g 87 test/correctness/extern_bounds_inference.cpp g(x, y) = f1(x, y) + f2(x, y); g 91 test/correctness/extern_bounds_inference.cpp f2.compute_at(g, y); g 93 test/correctness/extern_bounds_inference.cpp g.tile(x, y, xi, yi, 2, 4); g 95 test/correctness/extern_bounds_inference.cpp g.infer_input_bounds(W, H); g 105 test/correctness/extern_bounds_inference.cpp Func f1, f2, g; g 116 test/correctness/extern_bounds_inference.cpp g(x, y) = f1(x, y); g 117 test/correctness/extern_bounds_inference.cpp g(x, y) += f2(x, y); g 119 test/correctness/extern_bounds_inference.cpp f1.compute_at(g, y); g 120 test/correctness/extern_bounds_inference.cpp f2.compute_at(g, x); g 121 test/correctness/extern_bounds_inference.cpp g.reorder(y, x).vectorize(y, 4); g 123 test/correctness/extern_bounds_inference.cpp g.infer_input_bounds(W, H); g 46 test/correctness/extern_output_expansion.cpp Func f, g, h; g 50 test/correctness/extern_output_expansion.cpp g.define_extern("extern_stage", {f}, Int(32), 1); g 52 test/correctness/extern_output_expansion.cpp h(x) = g(x) * 2; g 59 test/correctness/extern_output_expansion.cpp g.compute_at(h, xo); g 61 test/correctness/extern_output_expansion.cpp g.compute_root(); g 70 test/correctness/extern_stage.cpp Func f, g, h; g 85 test/correctness/extern_stage.cpp g.define_extern("flip_x", args, UInt(8), 1); g 87 test/correctness/extern_stage.cpp h(x) = g(x) * 2; g 90 test/correctness/extern_stage.cpp g.compute_at(h, x); g 8 test/correctness/fibonacci.cpp Func fib, g; g 15 test/correctness/fibonacci.cpp g(x) = fib(x+10); g 18 test/correctness/fibonacci.cpp Buffer<int> out = g.realize(10); g 29 test/correctness/force_onto_stack.cpp Func f("f"), g; g 35 test/correctness/force_onto_stack.cpp g(x) = f(x); g 36 test/correctness/force_onto_stack.cpp g.split(x, xo, xi, p); g 41 test/correctness/force_onto_stack.cpp f.compute_at(g, xo).bound_extent(x, 8).vectorize(x); g 44 test/correctness/force_onto_stack.cpp g.set_custom_allocator(&my_malloc, &my_free); g 46 test/correctness/force_onto_stack.cpp g.realize(20); g 47 test/correctness/force_onto_stack.cpp g.set_custom_allocator(nullptr, nullptr); g 50 test/correctness/force_onto_stack.cpp g.set_error_handler(&my_error); g 52 test/correctness/force_onto_stack.cpp g.realize(20); g 68 test/correctness/force_onto_stack.cpp Func f, g; g 72 test/correctness/force_onto_stack.cpp g(x) = f(x); g 73 test/correctness/force_onto_stack.cpp g.split(x, xo, xi, 8, TailStrategy::GuardWithIf); g 75 test/correctness/force_onto_stack.cpp f.compute_at(g, xo); g 80 test/correctness/force_onto_stack.cpp g.set_custom_allocator(&my_malloc, &my_free); g 81 test/correctness/force_onto_stack.cpp g.realize(20); g 49 test/correctness/func_lifetime.cpp Func g("g"); g 53 test/correctness/func_lifetime.cpp g(x, y) = x*y + 2; g 56 test/correctness/func_lifetime.cpp g.gpu_tile(x, y, xi, yi, 8, 8); g 58 test/correctness/func_lifetime.cpp g.hexagon().vectorize(x, 32); g 63 test/correctness/func_lifetime.cpp Buffer<int> img = g.realize(32, 32, target); g 26 test/correctness/func_lifetime_2.cpp Func g("g"); g 53 test/correctness/func_lifetime_2.cpp g(x, y) = x*y + 2; g 56 test/correctness/func_lifetime_2.cpp g.gpu_tile(x, y, xi, yi, 8, 8); g 58 test/correctness/func_lifetime_2.cpp g.hexagon().vectorize(x, 32); g 63 test/correctness/func_lifetime_2.cpp Buffer<int> img1 = g.realize(32, 32, target); g 72 test/correctness/func_lifetime_2.cpp Buffer<int> img2 = g.realize(32, 32, target); g 7 test/correctness/fuse.cpp Func f, g; g 12 test/correctness/fuse.cpp g(x, y) = e; g 25 test/correctness/fuse.cpp g.compute_root() g 31 test/correctness/fuse.cpp error() = maximum(abs(f(r.x, r.y) - g(r.x, r.y))); g 13 test/correctness/fused_where_inner_extent_is_zero.cpp Func g; g 14 test/correctness/fused_where_inner_extent_is_zero.cpp g(x, y) = 0; g 15 test/correctness/fused_where_inner_extent_is_zero.cpp g(r.x, r.y) = f(r.x, r.y); g 25 test/correctness/fused_where_inner_extent_is_zero.cpp g.realize(10, 10); g 29 test/correctness/fused_where_inner_extent_is_zero.cpp g.realize(10, 10); g 32 test/correctness/gpu_assertion_in_kernel.cpp Func g; g 33 test/correctness/gpu_assertion_in_kernel.cpp g(c, x) = f(c, x) * 8; g 36 test/correctness/gpu_assertion_in_kernel.cpp g.gpu_tile(x, xi, 8); g 37 test/correctness/gpu_assertion_in_kernel.cpp f.compute_at(g, x).gpu_threads(x); g 39 test/correctness/gpu_assertion_in_kernel.cpp g.set_error_handler(&my_error); g 40 test/correctness/gpu_assertion_in_kernel.cpp g.set_custom_print(&my_print); g 43 test/correctness/gpu_assertion_in_kernel.cpp g.realize(3, 100, t); g 50 test/correctness/gpu_assertion_in_kernel.cpp g.realize(4, 100, t); g 16 test/correctness/gpu_cpu_simultaneous_read.cpp Func f, g, h; g 23 test/correctness/gpu_cpu_simultaneous_read.cpp g(x, y) = x + y*2 + table(y); g 24 test/correctness/gpu_cpu_simultaneous_read.cpp h(x, y) = select(table(0) == 0, f(x, y), g(x, y)); g 27 test/correctness/gpu_cpu_simultaneous_read.cpp g.compute_root().gpu_tile(x, y, xi, yi, 8, 8); g 28 test/correctness/gpu_data_flows.cpp Func f, g, out; g 31 test/correctness/gpu_data_flows.cpp g(x) = f(x) * 2; g 32 test/correctness/gpu_data_flows.cpp out(x) = g(x) + 3; g 36 test/correctness/gpu_data_flows.cpp g.compute_root().gpu_tile(x, xi, 16); g 38 test/correctness/gpu_data_flows.cpp g.compute_root().hexagon(); g 12 test/correctness/gpu_dynamic_shared.cpp Func f("f"), g("g"); g 16 test/correctness/gpu_dynamic_shared.cpp g(x) = f(x) + f(2*x); g 18 test/correctness/gpu_dynamic_shared.cpp g.gpu_tile(x, xi, 16); g 19 test/correctness/gpu_dynamic_shared.cpp f.compute_at(g, x).gpu_threads(x); g 23 test/correctness/gpu_dynamic_shared.cpp Buffer<int> out = g.realize(100); g 10 test/correctness/gpu_large_alloc.cpp Func f, g; g 21 test/correctness/gpu_large_alloc.cpp g(x, y) = clamp(f(x, y), 20, 100); g 27 test/correctness/gpu_large_alloc.cpp g.compute_root().gpu_tile(x, y, xi, yi, 16, 16); g 32 test/correctness/gpu_large_alloc.cpp Buffer<int> img = g.realize(W, H, target); g 13 test/correctness/gpu_mixed_dimensionality.cpp Func f("f"), g("g"), h("h"), out("out"); g 18 test/correctness/gpu_mixed_dimensionality.cpp g(x, y, z) = f(x, y, z); g 19 test/correctness/gpu_mixed_dimensionality.cpp g(x, y, z) += 1; g 20 test/correctness/gpu_mixed_dimensionality.cpp h(x, y, z) = g(x, y, z); g 30 test/correctness/gpu_mixed_dimensionality.cpp g.compute_at(h, y).gpu_threads(x); g 31 test/correctness/gpu_mixed_dimensionality.cpp g.update(); g 32 test/correctness/gpu_mixed_dimensionality.cpp f.compute_at(g, x); g 30 test/correctness/gpu_object_lifetime_2.cpp Func f, g, h; g 32 test/correctness/gpu_object_lifetime_2.cpp g(x) = f(x); g 33 test/correctness/gpu_object_lifetime_2.cpp h(x) = g(x); g 36 test/correctness/gpu_object_lifetime_2.cpp g.compute_root(); g 39 test/correctness/gpu_object_lifetime_2.cpp g.gpu_tile(x, xi, 32); g 41 test/correctness/gpu_object_lifetime_2.cpp g.hexagon(); g 13 test/correctness/gpu_specialize.cpp Func f("f"), g("g"), h("h"); g 19 test/correctness/gpu_specialize.cpp g(x, y) = f(x-1, y+1) + f(x+1, y-1) + x; g 20 test/correctness/gpu_specialize.cpp h(x, y) = g(x+1, y-1) + g(x-1, y+1) + y; g 38 test/correctness/gpu_specialize.cpp g.compute_at(h, t); g 41 test/correctness/gpu_specialize.cpp g.specialize(use_gpu).gpu_threads(x, y); g 44 test/correctness/gpu_specialize.cpp g.specialize(use_gpu).split(x, x, xi, 1).serial(xi); g 45 test/correctness/gpu_specialize.cpp g.rename(x, xi); g 47 test/correctness/gpu_specialize.cpp f.compute_at(g, xi); g 73 test/correctness/gpu_specialize.cpp Func f("f"), g("g"), h("h"); g 79 test/correctness/gpu_specialize.cpp g(x, y) = f(x, y) + x; g 85 test/correctness/gpu_specialize.cpp f.compute_at(g, x); g 86 test/correctness/gpu_specialize.cpp g.tile(x, y, xi, yi, 2, 2).gpu_blocks(x, y); g 89 test/correctness/gpu_specialize.cpp Buffer<int> out = g.realize(32, 32); g 70 test/correctness/gpu_thread_barrier.cpp Func g; g 71 test/correctness/gpu_thread_barrier.cpp g(x, y) = f(0, 0)+ f(9, 7); g 74 test/correctness/gpu_thread_barrier.cpp g.gpu_tile(x, y, xi, yi, 16, 8); g 75 test/correctness/gpu_thread_barrier.cpp f.compute_at(g, x); g 84 test/correctness/gpu_thread_barrier.cpp Buffer<int> out = g.realize(100, 100); g 114 test/correctness/gpu_thread_barrier.cpp Func g; g 115 test/correctness/gpu_thread_barrier.cpp g(x, y) = f(0, 0) + f(7, 7); g 118 test/correctness/gpu_thread_barrier.cpp g.gpu_tile(x, y, xi, yi, 8, 8); g 119 test/correctness/gpu_thread_barrier.cpp f.compute_at(g, x); g 128 test/correctness/gpu_thread_barrier.cpp g.add_custom_lowering_pass(new CheckBarrierCount(2)); g 130 test/correctness/gpu_thread_barrier.cpp Buffer<int> out = g.realize(100, 100); g 10 test/correctness/gpu_vectorized_shared_memory.cpp Func f, g, h; g 14 test/correctness/gpu_vectorized_shared_memory.cpp g(x) = f(x-1) + f(x+1); g 16 test/correctness/gpu_vectorized_shared_memory.cpp g(x) += sum(r); g 17 test/correctness/gpu_vectorized_shared_memory.cpp h(x) = g(x-1) + g(x+1); g 23 test/correctness/gpu_vectorized_shared_memory.cpp g.compute_at(h, xo); g 24 test/correctness/gpu_vectorized_shared_memory.cpp g.split(x, xo, xi, 4).gpu_threads(xo).vectorize(xi); g 25 test/correctness/gpu_vectorized_shared_memory.cpp g.update().split(x, xo, xi, 4).gpu_threads(xo).vectorize(xi); g 47 test/correctness/handle.cpp Func f, g, h; g 51 test/correctness/handle.cpp g(x) = f(x); g 52 test/correctness/handle.cpp g.compute_root(); g 53 test/correctness/handle.cpp h(x) = g(x); g 31 test/correctness/heap_cleanup.cpp Func f, g, h; g 39 test/correctness/heap_cleanup.cpp g(x) = f(x)+1; g 40 test/correctness/heap_cleanup.cpp g.compute_root(); g 41 test/correctness/heap_cleanup.cpp h(x) = g(x)+1; g 45 test/correctness/heap_cleanup.cpp g.bound(x, 0, g_size); g 33 test/correctness/histogram.cpp Func g; g 35 test/correctness/histogram.cpp g(x) = hist(x+10); g 48 test/correctness/histogram.cpp Buffer<int32_t> histogram = g.realize(10); // buckets 10-20 only g 51 test/correctness/image_io.cpp Func g = make_noise(depth - 1); g 53 test/correctness/image_io.cpp f(x, y, c) = (g(x/2, y/2, c) + g 54 test/correctness/image_io.cpp g((x+1)/2, y/2, c) + g 55 test/correctness/image_io.cpp g(x/2, (y+1)/2, c) + g 56 test/correctness/image_io.cpp g((x+1)/2, (y+1)/2, c) + g 49 test/correctness/image_wrap.cpp Func e("e"), f("f"), g("g"), h("h"); g 52 test/correctness/image_wrap.cpp g(x, y) = img(x, y); g 55 test/correctness/image_wrap.cpp Func wrapper1 = img.in({e, f, g}); g 56 test/correctness/image_wrap.cpp Func wrapper2 = img.in({g, f, e}); g 67 test/correctness/image_wrap.cpp Func source("source"), g("g"); g 75 test/correctness/image_wrap.cpp g(x, y) = img(x); g 77 test/correctness/image_wrap.cpp Func wrapper = img.in(g).compute_root(); g 83 test/correctness/image_wrap.cpp Module m = g.compile_to_module({g.infer_arguments()}); g 88 test/correctness/image_wrap.cpp {g.name(), {wrapper.name()}}, g 96 test/correctness/image_wrap.cpp Buffer<int> im = g.realize(200, 200); g 193 test/correctness/image_wrap.cpp Func source("source"), g("g"), h("h"), i("i"); g 201 test/correctness/image_wrap.cpp g(x, y) = img(x, y); g 202 test/correctness/image_wrap.cpp h(x, y) = g(x, y) + img(x, y); g 209 test/correctness/image_wrap.cpp g.compute_at(h, yi); g 220 test/correctness/image_wrap.cpp {h.name(), {g.name(), wrapper.name()}}, g 221 test/correctness/image_wrap.cpp {g.name(), {wrapper.name()}}, g 238 test/correctness/image_wrap.cpp Func source("source"), g("g"); g 246 test/correctness/image_wrap.cpp g(x, y) = img(x, y); g 248 test/correctness/image_wrap.cpp Func wrapper = img.in(g); g 254 test/correctness/image_wrap.cpp g(r.x, r.y) += 2*img(r.x, r.y); g 260 test/correctness/image_wrap.cpp g.specialize(param).vectorize(x, 8).unroll(x, 2).split(x, x, xi, 4).parallel(x); g 261 test/correctness/image_wrap.cpp g.update(0).split(r.x, rxo, rxi, 2).unroll(rxi); g 272 test/correctness/image_wrap.cpp Module m = g.compile_to_module({g.infer_arguments()}); g 277 test/correctness/image_wrap.cpp {g.name(), {wrapper.name(), g.name()}}, g 285 test/correctness/image_wrap.cpp Buffer<int> im = g.realize(200, 200); g 300 test/correctness/image_wrap.cpp Module m = g.compile_to_module({g.infer_arguments()}); g 305 test/correctness/image_wrap.cpp {g.name(), {wrapper.name(), g.name()}}, g 313 test/correctness/image_wrap.cpp Buffer<int> im = g.realize(200, 200); g 326 test/correctness/image_wrap.cpp Func source("source"), g("g"), result("result"); g 334 test/correctness/image_wrap.cpp g(x, y) = 10; g 335 test/correctness/image_wrap.cpp g(x, y) += 2 * img(x, x); g 336 test/correctness/image_wrap.cpp g(x, y) += 3 * img(y, y); g 340 test/correctness/image_wrap.cpp Func wrapper = g.in().compute_root(); g 341 test/correctness/image_wrap.cpp g.compute_at(wrapper, x); g 353 test/correctness/image_wrap.cpp {g.name(), {img_f.name(), g.name()}}, g 354 test/correctness/image_wrap.cpp {wrapper.name(), {g.name()}}, g 370 test/correctness/image_wrap.cpp Func source("source"), g("g"), result("result"); g 378 test/correctness/image_wrap.cpp g(x, y) = img(x); g 379 test/correctness/image_wrap.cpp result(x, y) = img(x) + g(x, y); g 381 test/correctness/image_wrap.cpp Func img_in_g = img.in(g).compute_at(g, x); g 385 test/correctness/image_wrap.cpp g.compute_at(result, y); g 395 test/correctness/image_wrap.cpp {result.name(), {g.name(), img_wrapper.name()}}, g 396 test/correctness/image_wrap.cpp {g.name(), {img_in_g.name()}}, g 415 test/correctness/image_wrap.cpp Func source("sourceo"), f("f"), g("g"), h("h"); g 424 test/correctness/image_wrap.cpp g(x, y) = f(x, y); g 425 test/correctness/image_wrap.cpp h(x, y) = g(x, y); g 430 test/correctness/image_wrap.cpp f.compute_at(g, y).vectorize(x, 8); g 431 test/correctness/image_wrap.cpp g.compute_root(); g 433 test/correctness/image_wrap.cpp Func g_in_h = g.in(h).compute_root(); g 446 test/correctness/image_wrap.cpp {g_in_h.name(), {g.name()}}, g 447 test/correctness/image_wrap.cpp {g.name(), {f.name()}}, g 465 test/correctness/image_wrap.cpp Func source("source"), g("g"), h("h"); g 473 test/correctness/image_wrap.cpp g(x, y) = img(x, y) + img(x, y); g 474 test/correctness/image_wrap.cpp Func img_in_g = img.in(g).compute_root(); g 476 test/correctness/image_wrap.cpp h(x, y) = g(x, y) + img(x, y) + img_in_img_in_g(x, y); g 480 test/correctness/image_wrap.cpp g.compute_root(); g 482 test/correctness/image_wrap.cpp Func g_in_h = g.in(h).compute_root(); g 492 test/correctness/image_wrap.cpp {g_in_h.name(), {g.name()}}, g 493 test/correctness/image_wrap.cpp {g.name(), {img_in_g.name()}}, g 511 test/correctness/image_wrap.cpp Func source("source"), g("g"), h("h"); g 519 test/correctness/image_wrap.cpp g(x, y) = 10; g 524 test/correctness/image_wrap.cpp g(r.x, r.y) += h(r.x, r.y); g 526 test/correctness/image_wrap.cpp Func h_wrapper = h.in().store_root().compute_at(g, r.y); g 527 test/correctness/image_wrap.cpp Func img_in_g = img.in(g).compute_at(g, r.x); g 536 test/correctness/image_wrap.cpp Module m = g.compile_to_module({g.infer_arguments()}); g 541 test/correctness/image_wrap.cpp {g.name(), {g.name(), img_in_g.name(), h_wrapper.name()}}, g 551 test/correctness/image_wrap.cpp Buffer<int> im = g.realize(200, 200); g 605 test/correctness/image_wrap.cpp Func source("source"), img_in_g_in_g, img_in_g, img_in_g_in_g_in_h, img_in_g_in_g_in_h_in_h, g("g"), h("h"); g 616 test/correctness/image_wrap.cpp g(x, y) = img(y, x); g 619 test/correctness/image_wrap.cpp g.compute_root().tile(x, y, xi, yi, 8, 8); g 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); g 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); g 631 test/correctness/image_wrap.cpp Module m = g.compile_to_module({g.infer_arguments()}); g 636 test/correctness/image_wrap.cpp {g.name(), {img_in_g_in_g.name()}}, g 645 test/correctness/image_wrap.cpp Buffer<int> im = g.realize(1024, 1024); g 47 test/correctness/implicit_args.cpp Func g; g 48 test/correctness/implicit_args.cpp g(_) = f(2, 2, _) + im2(Expr(1), _); g 54 test/correctness/implicit_args.cpp assert(g.dimensions() == 2); g 56 test/correctness/implicit_args.cpp Buffer<int> result2 = g.realize(10, 10); g 50 test/correctness/implicit_args_tests.cpp Func f("f"), g("g"), h("h"); g 59 test/correctness/implicit_args_tests.cpp g(x, _) = h(_) + 1; // This means g(x, _0, _1) = h(_0, _1) + 1 g 60 test/correctness/implicit_args_tests.cpp g(clamp(f(r.x, _), 0, 50), _) += 2; // This means g(f(r.x, _0, _1), _0, _1) += 2 g 62 test/correctness/implicit_args_tests.cpp Realization result = g.realize(100, 100, 100); g 73 test/correctness/implicit_args_tests.cpp Func f("f"), g("g"), h("h"); g 78 test/correctness/implicit_args_tests.cpp g(x) = x + 2; g 79 test/correctness/implicit_args_tests.cpp g.compute_root(); g 82 test/correctness/implicit_args_tests.cpp f(x, _) += h(_)*g(_); // This means f(x, _0, _1) += h(_0, _1) * g(_0) g 116 test/correctness/implicit_args_tests.cpp Func f("f"), g("g"), h("h"); g 121 test/correctness/implicit_args_tests.cpp g(x) = x + 2; g 122 test/correctness/implicit_args_tests.cpp g.compute_root(); g 127 test/correctness/implicit_args_tests.cpp f(_) += h(_)*g(_) + 3; g 162 test/correctness/implicit_args_tests.cpp Func f("f"), g("g"), h("h"); g 172 test/correctness/implicit_args_tests.cpp g(x, _) = Tuple(h(_) + 1); g 174 test/correctness/implicit_args_tests.cpp g(clamp(f(r.x, _), 0, 50), _) += Tuple(2); g 176 test/correctness/implicit_args_tests.cpp Realization result = g.realize(100, 100, 100); g 211 test/correctness/implicit_args_tests.cpp Func f("f"), g("g"), h("h"); g 216 test/correctness/implicit_args_tests.cpp g(x) = Tuple(x + 2, x - 2); g 217 test/correctness/implicit_args_tests.cpp g.compute_root(); g 222 test/correctness/implicit_args_tests.cpp f(x, _) += Tuple(h(_)[0]*g(_)[0], h(_)[1]*g(_)[1]); g 238 test/correctness/implicit_args_tests.cpp Func f("f"), g("g"), h("h"); g 243 test/correctness/implicit_args_tests.cpp g(x) = Tuple(x + 2, x- 2); g 244 test/correctness/implicit_args_tests.cpp g.compute_root(); g 249 test/correctness/implicit_args_tests.cpp f(_) += Tuple(h(_)[0]*g(_)[0] + 3, h(_)[1]*g(_)[1] + 4); g 26 test/correctness/in_place.cpp Func g; g 27 test/correctness/in_place.cpp g(x) = reference_in(x); g 28 test/correctness/in_place.cpp g(r) += g(r-1); g 29 test/correctness/in_place.cpp Buffer<float> reference_out = g.realize(100); g 41 test/correctness/input_image_bounds_check.cpp Func g, h; g 42 test/correctness/input_image_bounds_check.cpp g(x) = input(x)*2; g 43 test/correctness/input_image_bounds_check.cpp h(x) = g(x); g 44 test/correctness/input_image_bounds_check.cpp g.compute_root().vectorize(x, 4); g 89 test/correctness/interleave.cpp Func f, g, h; g 96 test/correctness/interleave.cpp define(g(x), g_def); g 99 test/correctness/interleave.cpp h_def.push_back(select(x % 2 == 0, 1.0f/element(f(x/2), i), element(g(x/2), i)*17.0f)); g 105 test/correctness/interleave.cpp g.compute_root(); g 76 test/correctness/introspection.cpp int y = g(x) + g(x-1); g 14 test/correctness/lambda.cpp Func g = lambda(x, y, x*y); g 17 test/correctness/lambda.cpp Buffer<int32_t> im = lambda(f(_) - g(_) + lambda(x, y, x+y)(_)).realize(10, 10); g 6 test/correctness/left_shift_negative.cpp Func f, g; g 9 test/correctness/left_shift_negative.cpp g(x) = cast<int16_t>(x % 8); g 12 test/correctness/left_shift_negative.cpp g.compute_root(); g 18 test/correctness/left_shift_negative.cpp h1(x) = f(x) << g(x); g 21 test/correctness/left_shift_negative.cpp powers(x) = cast<int16_t>(1) << g(x); g 72 test/correctness/likely.cpp void count_partitions(Func g, int correct) { g 73 test/correctness/likely.cpp g.add_custom_lowering_pass(new CheckStoreCount(g.name(), correct)); g 74 test/correctness/likely.cpp g.compile_to_module(g.infer_arguments()); g 77 test/correctness/likely.cpp void count_sin_calls(Func g, int correct) { g 78 test/correctness/likely.cpp g.add_custom_lowering_pass(new CheckSinCount(correct)); g 79 test/correctness/likely.cpp g.compile_to_module(g.infer_arguments()); g 94 test/correctness/likely.cpp Func g = BoundaryConditions::repeat_edge(f, 0, 100); g 95 test/correctness/likely.cpp count_partitions(g, 3); g 103 test/correctness/likely.cpp Func g; g 104 test/correctness/likely.cpp g(x) = f(x); g 105 test/correctness/likely.cpp g.vectorize(x, 8); g 106 test/correctness/likely.cpp count_partitions(g, 2); g 117 test/correctness/likely.cpp Func g; g 118 test/correctness/likely.cpp g(x, y) = x + y; g 119 test/correctness/likely.cpp g.compute_root(); g 120 test/correctness/likely.cpp Func h = BoundaryConditions::mirror_image(g, 0, 10, 0, 10); g 131 test/correctness/likely.cpp Func g = BoundaryConditions::mirror_interior(f, 0, 10); g 134 test/correctness/likely.cpp h(x) = g(x-1) + g(x+1); g 147 test/correctness/likely.cpp Func g; g 148 test/correctness/likely.cpp g(x) = select(x < 10, sin(x), likely(1.0f)); g 150 test/correctness/likely.cpp count_partitions(g, 2); g 152 test/correctness/likely.cpp count_sin_calls(g, 1); g 158 test/correctness/likely.cpp Func g; g 159 test/correctness/likely.cpp g(x) = select(x < 10 || x > 100, sin(x), likely(1.0f)); g 161 test/correctness/likely.cpp count_partitions(g, 3); g 163 test/correctness/likely.cpp count_sin_calls(g, 2); g 171 test/correctness/likely.cpp Func g; g 172 test/correctness/likely.cpp g(x) = f(clamp(x, 0, 10)); // treated as clamp(likely(x), 0, 10) g 173 test/correctness/likely.cpp g.vectorize(x, 8); g 174 test/correctness/likely.cpp count_partitions(g, 3); g 182 test/correctness/likely.cpp Func g; g 205 test/correctness/likely.cpp g(c, x, y) = sum(select(nasty, likely(10), c + r)); g 209 test/correctness/likely.cpp count_partitions(g, 3); g 215 test/correctness/likely.cpp Func g; g 218 test/correctness/likely.cpp g(x) = select(x > limit, likely(3), 2); g 223 test/correctness/likely.cpp Buffer<int> result = g.realize(10); g 226 test/correctness/likely.cpp result = g.realize(10); g 63 test/correctness/loop_invariant_extern_calls.cpp Func g; g 64 test/correctness/loop_invariant_extern_calls.cpp g(x, y) = my_func(3, Expr(0)); g 65 test/correctness/loop_invariant_extern_calls.cpp g.parallel(y); g 67 test/correctness/loop_invariant_extern_calls.cpp g.set_custom_do_par_for(¬_really_parallel_for); g 68 test/correctness/loop_invariant_extern_calls.cpp g.realize(32, 32); g 65 test/correctness/lots_of_dimensions.cpp Func f, g, h; g 68 test/correctness/lots_of_dimensions.cpp g(v0, v1, v2, v3, v4, v5, v6, v7) = f(v0, v1, v2, v3, v4, v5, v6, v7) - 2; g 69 test/correctness/lots_of_dimensions.cpp h(_) = g(_) - 1; g 72 test/correctness/lots_of_dimensions.cpp g.compute_root().parallel(v7); g 50 test/correctness/make_struct.cpp Func g; g 51 test/correctness/make_struct.cpp g() = check_struct(s); g 53 test/correctness/make_struct.cpp g.realize(); g 20 test/correctness/many_dimensions.cpp Func g; g 46 test/correctness/many_dimensions.cpp g(x, y) = f(site1) + f(site2); g 48 test/correctness/many_dimensions.cpp f.compute_at(g, x); g 49 test/correctness/many_dimensions.cpp g.realize(10, 10); g 52 test/correctness/many_small_extern_stages.cpp Func f, g, h; g 58 test/correctness/many_small_extern_stages.cpp g.define_extern("copy", {f}, Int(32), 2); g 61 test/correctness/many_small_extern_stages.cpp h(x, y) += r * (g(x, y) - f(x, y)); g 64 test/correctness/many_small_extern_stages.cpp g.compute_at(h, y).store_root(); g 108 test/correctness/memoize.cpp Func f, g; g 113 test/correctness/memoize.cpp g(x, y) = f(); g 116 test/correctness/memoize.cpp Buffer<uint8_t> out1 = g.realize(256, 256); g 117 test/correctness/memoize.cpp Buffer<uint8_t> out2 = g.realize(256, 256); g 128 test/correctness/memoize.cpp Buffer<uint8_t> out3 = g.realize(256, 256); g 129 test/correctness/memoize.cpp Buffer<uint8_t> out4 = g.realize(256, 256); g 298 test/correctness/memoize.cpp Func f, g, h; g 302 test/correctness/memoize.cpp g(x) = f(x); g 303 test/correctness/memoize.cpp h(x) = g(4) + g(index); g 306 test/correctness/memoize.cpp g.vectorize(x, 8).compute_at(h, x); g 336 test/correctness/memoize.cpp Func g; g 337 test/correctness/memoize.cpp g(x, y) = Tuple(f(x, y)[0] + f(x - 1, y)[0] + f(x + 1, y)[0], f(x, y)[1]); g 340 test/correctness/memoize.cpp Realization out = g.realize(128, 128); g 351 test/correctness/memoize.cpp out = g.realize(128, 128); g 378 test/correctness/memoize.cpp Func g; g 379 test/correctness/memoize.cpp g(x, y) = f(x, y) + f(x - 1, y) + f(x + 1, y); g 385 test/correctness/memoize.cpp Buffer<uint8_t> out1 = g.realize(128, 128); g 413 test/correctness/memoize.cpp Func g; g 414 test/correctness/memoize.cpp g(x, y) = f(x, y) + f(x - 1, y) + f(x + 1, y); g 420 test/correctness/memoize.cpp Buffer<uint8_t> out1 = g.realize(128, 128); g 433 test/correctness/memoize.cpp Buffer<uint8_t> big = g.realize(1024, 1024); g 434 test/correctness/memoize.cpp Buffer<uint8_t> big2 = g.realize(1024, 1024); g 443 test/correctness/memoize.cpp Buffer<uint8_t> out1 = g.realize(128, 128); g 471 test/correctness/memoize.cpp Func g; g 472 test/correctness/memoize.cpp g(x, y) = f(x, y) + f(x - 1, y) + f(x + 1, y); g 474 test/correctness/memoize.cpp f.compute_at(g, y).memoize(); g 475 test/correctness/memoize.cpp g.parallel(y, 16); g 479 test/correctness/memoize.cpp Buffer<uint8_t> out = g.realize(128, 128); g 563 test/correctness/memoize.cpp Func g; g 564 test/correctness/memoize.cpp g(x, y) = Tuple(f(x, y)[0] + f(x - 1, y)[0] + f(x + 1, y)[0], f(x, y)[1]); g 566 test/correctness/memoize.cpp Pipeline pipe(g); g 48 test/correctness/multi_pass_reduction.cpp Func f, g; g 49 test/correctness/multi_pass_reduction.cpp g(x) = x*x; g 62 test/correctness/multi_pass_reduction.cpp f(r2) = g(r2); g 64 test/correctness/multi_pass_reduction.cpp g.compute_at(f, r2); g 21 test/correctness/multi_way_select.cpp Func g; g 22 test/correctness/multi_way_select.cpp g(x) = 0; g 24 test/correctness/multi_way_select.cpp g(i) = cases[i]; g 28 test/correctness/multi_way_select.cpp uint32_t err = evaluate_may_gpu<uint32_t>(sum(abs(g(r) - f(r)))); g 11 test/correctness/multiple_outputs.cpp Func f, g; g 18 test/correctness/multiple_outputs.cpp g(x) = t[0] + t[1]; g 21 test/correctness/multiple_outputs.cpp g.gpu_tile(x, xi, 8); g 24 test/correctness/multiple_outputs.cpp g.realize(100); g 29 test/correctness/multiple_outputs.cpp Func f, g; g 37 test/correctness/multiple_outputs.cpp g() = Tuple(0, 0, f(0, 0)); g 39 test/correctness/multiple_outputs.cpp Expr best_x = g()[0], best_y = g()[1], best_so_far = g()[2]; g 41 test/correctness/multiple_outputs.cpp g() = tuple_select(next_value > best_so_far, g 46 test/correctness/multiple_outputs.cpp g.gpu_single_thread(); g 49 test/correctness/multiple_outputs.cpp Realization result = g.realize(); g 61 test/correctness/multiple_outputs.cpp Func f, g; g 64 test/correctness/multiple_outputs.cpp g(x) = x; g 68 test/correctness/multiple_outputs.cpp g.gpu_tile(x, xi, 8); g 73 test/correctness/multiple_outputs.cpp Pipeline({f, g}).realize({f_im, g_im}); g 98 test/correctness/multiple_outputs.cpp Func f, g; g 101 test/correctness/multiple_outputs.cpp g(x) = Tuple(cast<uint8_t>(x), cast<int16_t>(x+1)); g 105 test/correctness/multiple_outputs.cpp g.gpu_tile(x, xi, 8); g 108 test/correctness/multiple_outputs.cpp Realization r = Pipeline({f, g}).realize(100); g 137 test/correctness/multiple_outputs.cpp Func f, g, h; g 142 test/correctness/multiple_outputs.cpp g(x, y) = {f(x + y) * 2, h(x)[0] * y, h(x)[1] - 2}; g 145 test/correctness/multiple_outputs.cpp g.gpu_tile(x, y, xi, yi, 1, 1); g 150 test/correctness/multiple_outputs.cpp Pipeline({h, g, f}).realize({h_im0, h_im1, g_im0, g_im1, g_im2, f_im}); g 37 test/correctness/newtons_method.cpp Func g; g 38 test/correctness/newtons_method.cpp g() = Tuple(cast<T>(3), sin(cast<T>(3)), g 41 test/correctness/newtons_method.cpp Expr x1 = g()[0], y1 = g()[1]; g 42 test/correctness/newtons_method.cpp Expr x2 = g()[2], y2 = g()[3]; g 54 test/correctness/newtons_method.cpp g() = Tuple(x0, y0, x1, y1); g 56 test/correctness/newtons_method.cpp T secant_result = evaluate_may_gpu<T>(g()[0]); g 10 test/correctness/parallel_alloc.cpp Func f, g; g 12 test/correctness/parallel_alloc.cpp g(x, y) = x*y; g 13 test/correctness/parallel_alloc.cpp f(x, y) = g(x-1, y) + g(x+1, y); g 15 test/correctness/parallel_alloc.cpp g.compute_at(f, y); g 14 test/correctness/parameter_constraints.cpp Func f, g; g 22 test/correctness/parameter_constraints.cpp g(x, y) = input(x, y) + 1.0f; g 24 test/correctness/parameter_constraints.cpp g.compute_root(); g 25 test/correctness/parameter_constraints.cpp f(x, y) = g(cast<int>(x/p), y); g 47 test/correctness/parameter_constraints.cpp Func f, g; g 53 test/correctness/parameter_constraints.cpp g(x, y) = input(x, y) + 1.0f; g 55 test/correctness/parameter_constraints.cpp g.compute_root(); g 56 test/correctness/parameter_constraints.cpp f(x, y) = g(cast<int>(x/p), y); g 8 test/correctness/partial_application.cpp Func f, g; g 15 test/correctness/partial_application.cpp g(x, _) = f(x, _) + f(x-1, _); g 19 test/correctness/partial_application.cpp h(_) = (g(_) + f(_))*6.0f; g 25 test/correctness/partition_loops.cpp Func f("f"), g("g"), h("h"); g 26 test/correctness/partition_loops.cpp g(x, y, c) = x + y + c; g 27 test/correctness/partition_loops.cpp g(x, y, 0) = x; g 28 test/correctness/partition_loops.cpp h(x, y) = clamped_input(x + g(x, y, 0), y, 2); g 85 test/correctness/predicated_store_load.cpp Func f ("f"), g("g"), ref("ref"); g 87 test/correctness/predicated_store_load.cpp g(x, y) = x + y; g 88 test/correctness/predicated_store_load.cpp g.compute_root(); g 94 test/correctness/predicated_store_load.cpp ref(r.x, r.y) += g(2*r.x, r.y) + g(2*r.x + 1, r.y); g 98 test/correctness/predicated_store_load.cpp f(r.x, r.y) += g(2*r.x, r.y) + g(2*r.x + 1, r.y); g 119 test/correctness/predicated_store_load.cpp Func f ("f"), g("g"), ref("ref"); g 121 test/correctness/predicated_store_load.cpp g(x, y) = x * y; g 122 test/correctness/predicated_store_load.cpp g.compute_root(); g 124 test/correctness/predicated_store_load.cpp ref(x, y) = select(x < 23, g(size-x, y) * 2 + g(20-x, y), undef<int>()); g 127 test/correctness/predicated_store_load.cpp f(x, y) = select(x < 23, g(size-x, y) * 2 + g(20-x, y), undef<int>()); g 151 test/correctness/predicated_store_load.cpp Func f ("f"), g("g"), ref("ref"); g 153 test/correctness/predicated_store_load.cpp g(x, y) = x * y; g 154 test/correctness/predicated_store_load.cpp g.compute_root(); g 161 test/correctness/predicated_store_load.cpp ref(r.x, r.y) = g(size-r.x, r.y) * 2 + g(67-r.x, r.y); g 165 test/correctness/predicated_store_load.cpp f(r.x, r.y) = g(size-r.x, r.y) * 2 + g(67-r.x, r.y); g 185 test/correctness/predicated_store_load.cpp Func f ("f"), g("g"), ref("ref"); g 187 test/correctness/predicated_store_load.cpp g(x, y) = x + y; g 188 test/correctness/predicated_store_load.cpp g.compute_root(); g 194 test/correctness/predicated_store_load.cpp ref(r.x, r.y) += 1 + max(g(0, 1), g(2*r.x + 1, r.y)); g 198 test/correctness/predicated_store_load.cpp f(r.x, r.y) += 1 + max(g(0, 1), g(2*r.x + 1, r.y)); g 218 test/correctness/predicated_store_load.cpp Func f ("f"), g("g"), ref("ref"); g 220 test/correctness/predicated_store_load.cpp g(x, y) = x + y; g 221 test/correctness/predicated_store_load.cpp g.compute_root(); g 227 test/correctness/predicated_store_load.cpp ref(13, 13) = max(g(0, 1), g(2*r.x + 1, r.y)); g 231 test/correctness/predicated_store_load.cpp f(13, 13) = max(g(0, 1), g(2*r.x + 1, r.y)); g 253 test/correctness/predicated_store_load.cpp Func f ("f"), g("g"), ref("ref"); g 255 test/correctness/predicated_store_load.cpp g(x, y, z) = x + y + z; g 256 test/correctness/predicated_store_load.cpp g.compute_root(); g 262 test/correctness/predicated_store_load.cpp ref(r.x, r.y, 1) = max(g(0, 1, 2), g(r.x + 1, r.y, 2)); g 266 test/correctness/predicated_store_load.cpp f(r.x, r.y, 1) = max(g(0, 1, 2), g(r.x + 1, r.y, 2)); g 322 test/correctness/predicated_store_load.cpp Func f ("f"), g("g"), ref("ref"); g 324 test/correctness/predicated_store_load.cpp g(x, y) = x + y; g 325 test/correctness/predicated_store_load.cpp g.compute_root(); g 331 test/correctness/predicated_store_load.cpp ref(r.x, r.y) += abs(r.x*r.y) + g(2*r.x + 1, r.y); g 335 test/correctness/predicated_store_load.cpp f(r.x, r.y) += abs(r.x*r.y) + g(2*r.x + 1, r.y); g 129 test/correctness/print.cpp Func f, g; g 175 test/correctness/print.cpp g(x) = print(reinterpret(Float(64), (cast<uint64_t>(random_uint()) << 32) | random_uint())); g 176 test/correctness/print.cpp g.set_custom_print(halide_print); g 177 test/correctness/print.cpp Buffer<double> img = g.realize(N); g 22 test/correctness/random.cpp Func g; g 23 test/correctness/random.cpp g(x, y) = cast<double>(rand_image(x, y)); g 26 test/correctness/random.cpp Expr val = g(r.x, r.y); g 33 test/correctness/random.cpp Expr dx = g(r.x, r.y) - g((r.x + 1) % 1024, r.y); g 34 test/correctness/random.cpp Expr dy = g(r.x, r.y) - g(r.x, (r.y + 1) % 1024); g 88 test/correctness/random.cpp Func g; g 89 test/correctness/random.cpp g(x, y) = f(x, y); g 92 test/correctness/random.cpp Buffer<double> im3 = g.realize(1024, 1024); g 153 test/correctness/random.cpp Func g; g 154 test/correctness/random.cpp g(x, y) = r1 + r2 - 1.0f; g 162 test/correctness/random.cpp Expr g_val = g(r.x, r.y); g 8 test/correctness/reduction_chain.cpp Func f0, f1, f2, g("g"), out("out"); g 16 test/correctness/reduction_chain.cpp g(x, y) = 0; g 17 test/correctness/reduction_chain.cpp g(x, x) = g(x, x-1) + g(x, x+1) + f0(x, x); g 18 test/correctness/reduction_chain.cpp g(y, y) = g(y-1, y) + g(y+1, y) + f1(y, y); g 19 test/correctness/reduction_chain.cpp g(x, x) = g(x, x-1) + g(x, x+1) + f2(x, x); g 20 test/correctness/reduction_chain.cpp out(x, y) = g(x-1, y-1) + g(x+1, y+1); g 22 test/correctness/reduction_chain.cpp g.store_root().compute_at(out, x); g 23 test/correctness/reduction_chain.cpp f0.store_at(out, x).compute_at(g, x); g 24 test/correctness/reduction_chain.cpp f1.store_at(out, x).compute_at(g, y); g 25 test/correctness/reduction_chain.cpp f2.store_at(out, x).compute_at(g, x); g 173 test/correctness/reduction_non_rectangular.cpp Func f("f_" + std::to_string(index)), g("g_" + std::to_string(index)); g 176 test/correctness/reduction_non_rectangular.cpp g(x) = x; g 181 test/correctness/reduction_non_rectangular.cpp r.where(r.x < g(r.y+10)); g 185 test/correctness/reduction_non_rectangular.cpp g.compute_root(); g 188 test/correctness/reduction_non_rectangular.cpp g.trace_stores(); g 189 test/correctness/reduction_non_rectangular.cpp g.trace_realizations(); g 220 test/correctness/reduction_non_rectangular.cpp Func f("f_" + std::to_string(index)), g("g_" + std::to_string(index)); g 224 test/correctness/reduction_non_rectangular.cpp g(x) = x; g 230 test/correctness/reduction_non_rectangular.cpp r.where(r.x < g(r.y) + h(r.x)); g 254 test/correctness/reduction_non_rectangular.cpp Func f("f_" + std::to_string(index)), g("g_" + std::to_string(index)); g 257 test/correctness/reduction_non_rectangular.cpp g(x, y) = x + y; g 263 test/correctness/reduction_non_rectangular.cpp f(r.x, r.y) += 2*g(r.x, r.y); g 266 test/correctness/reduction_non_rectangular.cpp g.compute_root(); g 269 test/correctness/reduction_non_rectangular.cpp g.trace_stores(); g 270 test/correctness/reduction_non_rectangular.cpp g.trace_realizations(); g 300 test/correctness/reduction_non_rectangular.cpp Func f("f_" + std::to_string(index)), g("g_" + std::to_string(index)); g 302 test/correctness/reduction_non_rectangular.cpp g(x, y) = x; g 308 test/correctness/reduction_non_rectangular.cpp f(r.x, r.y) += g(r.x, r.y); g 313 test/correctness/reduction_non_rectangular.cpp g.compute_at(f, r.y); g 316 test/correctness/reduction_non_rectangular.cpp g.trace_stores(); g 317 test/correctness/reduction_non_rectangular.cpp g.trace_realizations(); g 342 test/correctness/reduction_non_rectangular.cpp Func f("f_" + std::to_string(index)), g("g_" + std::to_string(index)); g 346 test/correctness/reduction_non_rectangular.cpp g(x, y) = x + y; g 351 test/correctness/reduction_non_rectangular.cpp f(r.x, r.y) += 2*g(r.x, r.y); g 355 test/correctness/reduction_non_rectangular.cpp g.compute_root(); g 358 test/correctness/reduction_non_rectangular.cpp g.trace_stores(); g 359 test/correctness/reduction_non_rectangular.cpp g.trace_realizations(); g 417 test/correctness/reduction_non_rectangular.cpp Func f("f_" + std::to_string(index)), g("g_" + std::to_string(index)); g 420 test/correctness/reduction_non_rectangular.cpp g(x, y) = x; g 425 test/correctness/reduction_non_rectangular.cpp f(r.x, r.y) = g(r.x, r.y); g 429 test/correctness/reduction_non_rectangular.cpp g.compute_at(f, r.y); g 432 test/correctness/reduction_non_rectangular.cpp g.trace_stores(); g 433 test/correctness/reduction_non_rectangular.cpp g.trace_realizations(); g 466 test/correctness/reduction_non_rectangular.cpp Func f("f_" + std::to_string(index)), g("g_" + std::to_string(index)); g 469 test/correctness/reduction_non_rectangular.cpp g(x, y) = x; g 475 test/correctness/reduction_non_rectangular.cpp f(r.x, r.y) += g(r.x, r.y); g 483 test/correctness/reduction_non_rectangular.cpp g.compute_at(f, ryi); g 486 test/correctness/reduction_non_rectangular.cpp g.trace_stores(); g 487 test/correctness/reduction_non_rectangular.cpp g.trace_realizations(); g 519 test/correctness/reduction_non_rectangular.cpp Func f("f_" + std::to_string(index)), g("g_" + std::to_string(index)); g 522 test/correctness/reduction_non_rectangular.cpp g(x, y) = 10; g 532 test/correctness/reduction_non_rectangular.cpp g(r2.x, r2.y) += f(r2.x, r2.y); g 549 test/correctness/reduction_non_rectangular.cpp Buffer<int> im2 = g.realize(200, 200); g 710 test/correctness/reduction_non_rectangular.cpp Func f("f_" + std::to_string(index)), g("g_" + std::to_string(index)), h("h_" + std::to_string(index)); g 714 test/correctness/reduction_non_rectangular.cpp g(x, y) = x + y; g 720 test/correctness/reduction_non_rectangular.cpp f(r1.x, r1.y) += 2*g(r1.x, r1.y); g 724 test/correctness/reduction_non_rectangular.cpp f(r2.x, r2.y) += h(r2.x, r2.y) + g(r2.x, r2.y); g 728 test/correctness/reduction_non_rectangular.cpp g.compute_root(); g 20 test/correctness/reorder_rvars.cpp Func g("g"); g 21 test/correctness/reorder_rvars.cpp g(x, y) = x + y; g 22 test/correctness/reorder_rvars.cpp g(x, y) += r1.x * r1.y; g 23 test/correctness/reorder_rvars.cpp g(x, r2.x) -= r2.z * g(x, r2.x + r2.y); g 26 test/correctness/reorder_rvars.cpp g.reorder(y, x); g 27 test/correctness/reorder_rvars.cpp g.update(0).reorder(r1.x, y, x, r1.y); g 28 test/correctness/reorder_rvars.cpp g.update(1).reorder(r2.x, x, r2.y, r2.z); g 29 test/correctness/reorder_rvars.cpp g.compute_root(); g 33 test/correctness/reorder_rvars.cpp Expr check = sum(abs(f(r3.x, r3.y) - g(r3.x, r3.y))); g 22 test/correctness/reorder_storage.cpp Func f("f"), g; g 25 test/correctness/reorder_storage.cpp g(x, y, c) = f(x, y, c); g 28 test/correctness/reorder_storage.cpp g.set_custom_allocator(my_malloc, my_free); g 37 test/correctness/reorder_storage.cpp g.realize(W, H, 3); g 47 test/correctness/reorder_storage.cpp g.compute_root(); g 48 test/correctness/reorder_storage.cpp g.realize(W, H, 3); g 7 test/correctness/reuse_stack_alloc.cpp Func f, g, h, k; g 14 test/correctness/reuse_stack_alloc.cpp g(x) = f(x); g 15 test/correctness/reuse_stack_alloc.cpp g.compute_root(); g 20 test/correctness/reuse_stack_alloc.cpp h(x) += g(x); g 14 test/correctness/rfactor.cpp Func f("f"), g("g"); g 20 test/correctness/rfactor.cpp g(x, y) = 40; g 22 test/correctness/rfactor.cpp g(r.x, r.y) = max(g(r.x, r.y) + f(r.x, r.y), g(r.x, r.y)); g 23 test/correctness/rfactor.cpp g.reorder_storage(y, x); g 26 test/correctness/rfactor.cpp Func intm = g.update(0).rfactor(r.y, u); g 33 test/correctness/rfactor.cpp Module m = g.compile_to_module({g.infer_arguments()}); g 38 test/correctness/rfactor.cpp {g.name(), {intm.name(), g.name()}}, g 46 test/correctness/rfactor.cpp Buffer<int> im = g.realize(80, 80); g 58 test/correctness/rfactor.cpp Func f("f"), g("g"); g 66 test/correctness/rfactor.cpp g(x, y) = 1; g 67 test/correctness/rfactor.cpp g(r.x, r.y) += f(r.x, r.y); g 68 test/correctness/rfactor.cpp g.update(0).reorder({r.y, r.x}); g 71 test/correctness/rfactor.cpp g.update(0).split(r.x, rxo, rxi, 2); g 74 test/correctness/rfactor.cpp Func intm1 = g.update(0).rfactor({{rxo, u}, {r.y, v}}); g 75 test/correctness/rfactor.cpp Func intm2 = g.update(0).rfactor(r.y, v); g 81 test/correctness/rfactor.cpp Module m = g.compile_to_module({g.infer_arguments()}); g 86 test/correctness/rfactor.cpp {g.name(), {intm2.name(), g.name()}}, g 95 test/correctness/rfactor.cpp Buffer<int> im = g.realize(80, 80); g 107 test/correctness/rfactor.cpp Func f("f"), g("g"); g 115 test/correctness/rfactor.cpp g(x, y) = 1; g 116 test/correctness/rfactor.cpp g(r.x, r.y) += f(r.x, r.y); g 117 test/correctness/rfactor.cpp g.update(0).reorder({r.y, r.x}); g 122 test/correctness/rfactor.cpp g.update(0).split(r.x, rxo, rxi, 2); g 123 test/correctness/rfactor.cpp Func intm1 = g.update(0).rfactor({{rxo, u}, {r.y, v}}); g 125 test/correctness/rfactor.cpp g.update(0).split(r.y, ryo, ryi, 2, TailStrategy::GuardWithIf); g 126 test/correctness/rfactor.cpp g.update(0).split(ryo, ryoo, ryoi, 4, TailStrategy::GuardWithIf); g 127 test/correctness/rfactor.cpp Func intm2 = g.update(0).rfactor({{rxo, u}, {ryoo, v}, {ryoi, w}}); g 133 test/correctness/rfactor.cpp Module m = g.compile_to_module({g.infer_arguments()}); g 138 test/correctness/rfactor.cpp {g.name(), {intm2.name(), g.name()}}, g 147 test/correctness/rfactor.cpp Buffer<int> im = g.realize(80, 80); g 160 test/correctness/rfactor.cpp Func f("f"), g("g"); g 166 test/correctness/rfactor.cpp g(x, y, z) = 1; g 167 test/correctness/rfactor.cpp g(r.x, r.y, r.z) += f(r.x, r.y, r.z); g 168 test/correctness/rfactor.cpp g.update(0).reorder({r.y, r.x}); g 171 test/correctness/rfactor.cpp g.update(0).fuse(r.x, r.y, rf); g 172 test/correctness/rfactor.cpp g.update(0).reorder({r.z, rf}); g 175 test/correctness/rfactor.cpp Func intm = g.update(0).rfactor(r.z, u); g 178 test/correctness/rfactor.cpp intm.compute_at(g, r.z); g 185 test/correctness/rfactor.cpp Module m = g.compile_to_module({g.infer_arguments()}); g 190 test/correctness/rfactor.cpp {g.name(), {intm.name(), g.name()}}, g 199 test/correctness/rfactor.cpp Buffer<int> im = g.realize(20, 20, 20); g 228 test/correctness/rfactor.cpp Func f("f"), g("g"); g 235 test/correctness/rfactor.cpp g(x, y, z) = 2*f(x, y); g 236 test/correctness/rfactor.cpp im_ref = g.realize(20, 20, 20); g 240 test/correctness/rfactor.cpp Func f("f"), g("g"); g 247 test/correctness/rfactor.cpp g(x, y, z) = 2*f(x, y); g 257 test/correctness/rfactor.cpp Module m = g.compile_to_module({g.infer_arguments()}); g 262 test/correctness/rfactor.cpp {g.name(), {f.name()}}, g 273 test/correctness/rfactor.cpp Buffer<int> im = g.realize(20, 20, 20); g 286 test/correctness/rfactor.cpp Func f("f"), g("g"); g 292 test/correctness/rfactor.cpp g(x, y) = 40; g 294 test/correctness/rfactor.cpp g(r.x, r.y) = min(f(r.x, r.y) + 2, g(r.x, r.y)); g 298 test/correctness/rfactor.cpp Func intm = g.update(0).specialize(p >= 10).rfactor(r.y, u); g 306 test/correctness/rfactor.cpp Module m = g.compile_to_module({g.infer_arguments()}); g 311 test/correctness/rfactor.cpp {g.name(), {f.name(), intm.name(), g.name()}}, g 321 test/correctness/rfactor.cpp Buffer<int> im = g.realize(80, 80); g 331 test/correctness/rfactor.cpp Buffer<int> im = g.realize(80, 80); g 344 test/correctness/rfactor.cpp Func f("f"), g("g"); g 350 test/correctness/rfactor.cpp g(x, y, z) = 1; g 354 test/correctness/rfactor.cpp g(r.x, r.y, r.z) += f(r.x, r.y, r.z); g 357 test/correctness/rfactor.cpp Func intm = g.update(0).rfactor({{r.y, u}, {r.x, v}}); g 365 test/correctness/rfactor.cpp Module m = g.compile_to_module({g.infer_arguments()}); g 370 test/correctness/rfactor.cpp {g.name(), {intm.name(), g.name()}}, g 378 test/correctness/rfactor.cpp Buffer<int> im = g.realize(20, 20, 20); g 408 test/correctness/rfactor.cpp Func hist("hist"), g("g"); g 421 test/correctness/rfactor.cpp g(x) = hist(x+10); g 425 test/correctness/rfactor.cpp Module m = g.compile_to_module({g.infer_arguments()}); g 430 test/correctness/rfactor.cpp {g.name(), {hist.name()}}, g 439 test/correctness/rfactor.cpp Buffer<int32_t> histogram = g.realize(10); // buckets 10-20 only g 454 test/correctness/rfactor.cpp Func f("f"), g("g"), a("a"), b("b"); g 517 test/correctness/rfactor.cpp Func f("f"), g("g"); g 530 test/correctness/rfactor.cpp g(x, y) = Tuple(1, 3); g 531 test/correctness/rfactor.cpp g(x , y) = Tuple(g(x , y)[0] + f(r.x, r.y)[0] + 3, min(g(x , y)[1], f(r.x, r.y)[1])); g 532 test/correctness/rfactor.cpp g.reorder({y, x}); g 535 test/correctness/rfactor.cpp g.update(0).tile(x, y, xi, yi, 4, 4); g 538 test/correctness/rfactor.cpp Func intm1 = g.update(0).rfactor(r.y, u); g 552 test/correctness/rfactor.cpp Module m = g.compile_to_module({g.infer_arguments()}); g 557 test/correctness/rfactor.cpp {g.name(), {intm1.name() + ".0", intm1.name() + ".1", g 558 test/correctness/rfactor.cpp g.name() + ".0", g.name() + ".1"}}, g 569 test/correctness/rfactor.cpp Realization rn = g.realize(80, 80); g 594 test/correctness/rfactor.cpp Func f("f"), g("g"); g 609 test/correctness/rfactor.cpp g(x, y) = Tuple(1, 3); g 611 test/correctness/rfactor.cpp g(x, y) = Tuple(g(x, y)[0]*f(r.x, r.y, r.z)[0], g(x, y)[1] + 2*f(r.x, r.y, r.z)[1]); g 617 test/correctness/rfactor.cpp Func intm1 = g.update(0).specialize(p >= 5).rfactor({{r.y, v}, {r.z, w}}); g 626 test/correctness/rfactor.cpp Func intm4 = g.update(0).rfactor({{r.x, u}, {r.z, w}}).compute_root(); g 631 test/correctness/rfactor.cpp Module m = g.compile_to_module({g.infer_arguments()}); g 636 test/correctness/rfactor.cpp {g.name(), {intm1.name() + ".0", intm1.name() + ".1", g 638 test/correctness/rfactor.cpp g.name() + ".0", g.name() + ".1"}}, g 657 test/correctness/rfactor.cpp Realization rn = g.realize(10, 10); g 680 test/correctness/rfactor.cpp Realization rn = g.realize(10, 10); g 703 test/correctness/rfactor.cpp Realization rn = g.realize(10, 10); g 726 test/correctness/rfactor.cpp Realization rn = g.realize(10, 10); g 751 test/correctness/rfactor.cpp Func f("f"), g("g"), ref("ref"); g 766 test/correctness/rfactor.cpp g(x, y) = Tuple(10, 20); g 767 test/correctness/rfactor.cpp g(x, y) = Tuple(g(x, y)[0]*f(r.x, r.y)[0] - g(x, y)[1]*f(r.x, r.y)[1], g 768 test/correctness/rfactor.cpp g(x, y)[0]*f(r.x, r.y)[1] + g(x, y)[1]*f(r.x, r.y)[0]); g 771 test/correctness/rfactor.cpp g.update(0).split(r.x, rxo, rxi, 2); g 774 test/correctness/rfactor.cpp Func intm = g.update(0).rfactor(rxo, u); g 781 test/correctness/rfactor.cpp Realization rn = g.realize(80, 80); g 803 test/correctness/rfactor.cpp Func f("f"), g("g"), ref("ref"); g 819 test/correctness/rfactor.cpp g() = Tuple(10, 20, 30); g 820 test/correctness/rfactor.cpp g() = Tuple(min(g()[0], f(r.x, r.y)), g 821 test/correctness/rfactor.cpp select(g()[0] < f(r.x, r.y), g()[1], r.x), g 822 test/correctness/rfactor.cpp select(g()[0] < f(r.x, r.y), g()[2], r.y)); g 825 test/correctness/rfactor.cpp g.update(0).split(r.x, rxo, rxi, 2); g 828 test/correctness/rfactor.cpp Func intm = g.update(0).rfactor(rxo, u); g 836 test/correctness/rfactor.cpp Realization rn = g.realize(); g 879 test/correctness/rfactor.cpp Func f("f"), g("g"); g 883 test/correctness/rfactor.cpp g(x) = 1; g 884 test/correctness/rfactor.cpp g(r.x) += f(r.x); g 887 test/correctness/rfactor.cpp g.update(0).split(r.x, rxo, rxi, 2); g 888 test/correctness/rfactor.cpp f.compute_at(g, rxo); g 889 test/correctness/rfactor.cpp g.update(0).rfactor({{rxo, u}}).compute_at(g, rxo); g 892 test/correctness/rfactor.cpp g.set_custom_trace(allocation_bound_test_trace); g 893 test/correctness/rfactor.cpp g.realize(23); g 7 test/correctness/scatter.cpp Func f, g; g 14 test/correctness/scatter.cpp g(x, y) = f(x+5, y+5); g 17 test/correctness/scatter.cpp Buffer<int> result = g.realize(10, 1); g 65 test/correctness/schedule_param.cpp Func f("f"), g("g"); g 68 test/correctness/schedule_param.cpp g(x, y) = f(x, y); g 71 test/correctness/schedule_param.cpp g.parallel(y); g 89 test/correctness/schedule_param.cpp compute_at_alias2.set(LoopLevel(g, y)); g 94 test/correctness/schedule_param.cpp Module m = g.compile_to_module({g.infer_arguments()}); g 50 test/correctness/set_custom_trace.cpp Func f("f"), g("g"); g 53 test/correctness/set_custom_trace.cpp g(x) += f(x); g 55 test/correctness/set_custom_trace.cpp f.compute_at(g, x); g 58 test/correctness/set_custom_trace.cpp Module m = g.compile_to_module({g.infer_arguments()}); g 21 test/correctness/sliding_backwards.cpp Func f, g; g 24 test/correctness/sliding_backwards.cpp g(x) = count(x); g 25 test/correctness/sliding_backwards.cpp f(x) = g(100-x) + g(100-x+1); g 27 test/correctness/sliding_backwards.cpp g.compute_at(f, x); g 28 test/correctness/sliding_backwards.cpp g.store_root(); g 46 test/correctness/sliding_reduction.cpp Func g("g"); g 47 test/correctness/sliding_reduction.cpp g(x, y) = f(x, y) + f(x, y-1) + f(x, y-2); g 49 test/correctness/sliding_reduction.cpp f.store_root().compute_at(g, y); g 52 test/correctness/sliding_reduction.cpp check(g.realize(2, 10)); g 68 test/correctness/sliding_reduction.cpp Func g("g"); g 69 test/correctness/sliding_reduction.cpp g(x, y) = f(x, y) + f(x, y-1) + f(x, y-2); g 71 test/correctness/sliding_reduction.cpp f.store_root().compute_at(g, y); g 74 test/correctness/sliding_reduction.cpp check(g.realize(2, 10)); g 103 test/correctness/sliding_reduction.cpp Func g("g"); g 104 test/correctness/sliding_reduction.cpp g(x, y) = f(x, y) + f(x, y-1) + f(x, y-2); g 106 test/correctness/sliding_reduction.cpp f.store_root().compute_at(g, y); g 109 test/correctness/sliding_reduction.cpp check(g.realize(2, 10)); g 31 test/correctness/sliding_window.cpp Func f, g; g 34 test/correctness/sliding_window.cpp g(x) = f(x) + f(x-1); g 36 test/correctness/sliding_window.cpp f.store_root().compute_at(g, x); g 38 test/correctness/sliding_window.cpp Buffer<int> im = g.realize(100); g 50 test/correctness/sliding_window.cpp Func f, g, h; g 52 test/correctness/sliding_window.cpp g(x) = f(x) + f(x-1); g 53 test/correctness/sliding_window.cpp h(x) = g(x); g 55 test/correctness/sliding_window.cpp f.store_root().compute_at(g, x); g 56 test/correctness/sliding_window.cpp g.compute_at(h, x); g 68 test/correctness/sliding_window.cpp Func f, g, h; g 71 test/correctness/sliding_window.cpp g(x, c) = f(x + 1, c) - f(x, c); g 72 test/correctness/sliding_window.cpp h(x, c) = g(x, c); g 81 test/correctness/sliding_window.cpp g.compute_at(h, x); g 96 test/correctness/sliding_window.cpp Func f, g; g 100 test/correctness/sliding_window.cpp f.store_root().compute_at(g, y); g 102 test/correctness/sliding_window.cpp g(x, y) = f(x, y) + f(x, y-1); g 104 test/correctness/sliding_window.cpp Buffer<int> im = g.realize(10, 10); g 117 test/correctness/sliding_window.cpp Func f, g; g 121 test/correctness/sliding_window.cpp g(x, y) = f(x-1, y) + f(x, y) + f(x, y-1); g 122 test/correctness/sliding_window.cpp f.store_root().compute_at(g, x); g 124 test/correctness/sliding_window.cpp Buffer<int> im = g.realize(10, 10); g 133 test/correctness/sliding_window.cpp Func f, g; g 139 test/correctness/sliding_window.cpp g(x, y) = f(x+y, x-y) + f((x-2)+y, (x-2)-y) + f(x+(y-2), x-(y-2)); g 140 test/correctness/sliding_window.cpp f.store_root().compute_at(g, x); g 142 test/correctness/sliding_window.cpp Buffer<int> im = g.realize(10, 10); g 151 test/correctness/sliding_window.cpp Func f, g; g 153 test/correctness/sliding_window.cpp g(x, y) = f(x, y) + f(x+1, y) + f(x, y+1) + f(x+1, y+1); g 154 test/correctness/sliding_window.cpp f.store_at(g, y).compute_at(g, x); g 155 test/correctness/sliding_window.cpp g.set_custom_allocator(&my_malloc, &my_free); g 156 test/correctness/sliding_window.cpp Buffer<int> im = g.realize(10, 10); g 94 test/correctness/sort_exprs.cpp Func g; g 95 test/correctness/sort_exprs.cpp g(x) = undef<float>(); g 97 test/correctness/sort_exprs.cpp g(i) = exprs[i]; g 100 test/correctness/sort_exprs.cpp Buffer<float> result = g.realize(N); g 365 test/correctness/specialize.cpp Func f, g, h, out; g 368 test/correctness/specialize.cpp g(x) = f(x); g 369 test/correctness/specialize.cpp h(x) = g(x); g 376 test/correctness/specialize.cpp g.compute_root().vectorize(x, 4); g 13 test/correctness/specialize_to_gpu.cpp Func f, g, h; g 18 test/correctness/specialize_to_gpu.cpp g(x) = f(x * 2); g 19 test/correctness/specialize_to_gpu.cpp h(x) = g(x) - 7; g 24 test/correctness/specialize_to_gpu.cpp g.compute_root().specialize(gpu_g).gpu_tile(x, x, xi, 16); g 51 test/correctness/split_by_non_factor.cpp Func f, g, h; g 52 test/correctness/split_by_non_factor.cpp g(x) = x - 3; g 55 test/correctness/split_by_non_factor.cpp f(x) += g(x) + h(x); g 58 test/correctness/split_by_non_factor.cpp g.compute_at(f, xo); g 14 test/correctness/split_fuse_rvar.cpp Func g; g 15 test/correctness/split_fuse_rvar.cpp g(x, y) = undef<int>(); g 17 test/correctness/split_fuse_rvar.cpp g(r.x, r.y) = f(r.y*4 + r.x); g 20 test/correctness/split_fuse_rvar.cpp g.update(0).fuse(r.x, r.y, rxy).split(rxy, rxyo, rxyi, 2); g 22 test/correctness/split_fuse_rvar.cpp Buffer<int> Rg = g.realize(4, 4); g 41 test/correctness/split_fuse_rvar.cpp Func g; g 42 test/correctness/split_fuse_rvar.cpp g(x) = undef<int>(); g 44 test/correctness/split_fuse_rvar.cpp g(r) = f(r); g 47 test/correctness/split_fuse_rvar.cpp g.update(0).split(r, ro, ri, 2).fuse(ro, ri, roi); g 49 test/correctness/split_fuse_rvar.cpp Buffer<int> Rg = g.realize(16); g 9 test/correctness/split_store_compute.cpp Func f("f"), g("g"), h("h"); g 14 test/correctness/split_store_compute.cpp g(x, y) = 17 * f(x, y); g 15 test/correctness/split_store_compute.cpp h(x, y) = (g(x, y-1) + g(x-1, y) + g(x, y) + g(x+1, y) + g(x, y+1)); g 17 test/correctness/split_store_compute.cpp g.store_root(); g 18 test/correctness/split_store_compute.cpp g.compute_at(h, y); g 20 test/correctness/stack_allocations.cpp Func f, g, h; g 24 test/correctness/stack_allocations.cpp g(x, y) = f(x-1, y+1) * f(x+1, y-1); g 25 test/correctness/stack_allocations.cpp h(x, y) = g(x+1, y+1) + g(x-1, y-1); g 28 test/correctness/stack_allocations.cpp g.compute_at(h, x); g 27 test/correctness/stencil_chain_in_update_definitions.cpp Func g; g 28 test/correctness/stencil_chain_in_update_definitions.cpp g(x, y) = undef<float>(); g 32 test/correctness/stencil_chain_in_update_definitions.cpp g(x, x) = f(x); g 39 test/correctness/stencil_chain_in_update_definitions.cpp g(x, x+1) = g(x, x); g 40 test/correctness/stencil_chain_in_update_definitions.cpp g(x, x-1) = g(x, x); g 42 test/correctness/stencil_chain_in_update_definitions.cpp g(y, y) = (g(y, y) + g(y-1, y) + g(y+1, y))/3.0f; g 45 test/correctness/stencil_chain_in_update_definitions.cpp g.compute_root(); g 49 test/correctness/stencil_chain_in_update_definitions.cpp h(x) = g(x, x); g 71 test/correctness/stencil_chain_in_update_definitions.cpp g.trace_stores(); g 26 test/correctness/storage_folding.cpp Func f, g; g 29 test/correctness/storage_folding.cpp g(x, y, c) = f(x-1, y+1, c) + f(x, y-1, c); g 30 test/correctness/storage_folding.cpp f.store_root().compute_at(g, x); g 34 test/correctness/storage_folding.cpp g.set_custom_allocator(my_malloc, my_free); g 36 test/correctness/storage_folding.cpp Buffer<int> im = g.realize(100, 1000, 3); g 46 test/correctness/storage_folding.cpp Func f, g; g 49 test/correctness/storage_folding.cpp g(x, y, c) = f(x-1, y+1, c) + f(x, y-1, c); g 50 test/correctness/storage_folding.cpp f.store_root().compute_at(g, x); g 51 test/correctness/storage_folding.cpp g.specialize(g.output_buffer().width() > 4).vectorize(x, 4); g 56 test/correctness/storage_folding.cpp g.set_custom_allocator(my_malloc, my_free); g 58 test/correctness/storage_folding.cpp Buffer<int> im = g.realize(100, 1000, 3); g 68 test/correctness/storage_folding.cpp Func f, g; g 71 test/correctness/storage_folding.cpp g(x, y) = f(x-1, y+1) + f(x, y-1); g 72 test/correctness/storage_folding.cpp f.store_root().compute_at(g, y).fold_storage(y, 3); g 73 test/correctness/storage_folding.cpp g.specialize(g.output_buffer().width() > 4).vectorize(x, 4); g 80 test/correctness/storage_folding.cpp g.set_custom_allocator(my_malloc, my_free); g 82 test/correctness/storage_folding.cpp Buffer<int> im = g.realize(100, 1000); g 93 test/correctness/storage_folding.cpp Func f, g; g 95 test/correctness/storage_folding.cpp g(x, y) = x * y; g 96 test/correctness/storage_folding.cpp f(x, y) = g(2*x, 2*y) + g(2*x+1, 2*y+1); g 101 test/correctness/storage_folding.cpp g.compute_at(f, x).store_root(); g 126 test/correctness/storage_folding.cpp Func f, g; g 128 test/correctness/storage_folding.cpp g(x, y) = x * y; g 129 test/correctness/storage_folding.cpp f(x, y) = g(x, 2*y) + g(x+3, 2*y+1); g 135 test/correctness/storage_folding.cpp g.compute_at(f, x).store_root(); g 160 test/correctness/storage_folding.cpp Func f, g; g 162 test/correctness/storage_folding.cpp g(x, y) = x * y; g 163 test/correctness/storage_folding.cpp f(x, y) = g(2*x, y) + g(2*x+1, y+3); g 170 test/correctness/storage_folding.cpp g.compute_at(f, x).store_root(); g 197 test/correctness/storage_folding.cpp Func f, g; g 199 test/correctness/storage_folding.cpp g(x, y) = x * y; g 200 test/correctness/storage_folding.cpp f(x, y) = g(x, y); g 204 test/correctness/storage_folding.cpp g.compute_at(f, yo).store_root(); g 236 test/correctness/storage_folding.cpp Func f, g; g 238 test/correctness/storage_folding.cpp g(x, y) = x * y; g 239 test/correctness/storage_folding.cpp f(x, y) = g(2*x, y) + g(2*x+1, y+2); g 247 test/correctness/storage_folding.cpp g.compute_at(f, x).store_root().fold_storage(y, 3); g 274 test/correctness/storage_folding.cpp Func f, g; g 276 test/correctness/storage_folding.cpp g(x, y) = x * y; g 277 test/correctness/storage_folding.cpp f(x, y) = g(x, y/2) + g(x, y/2+1); g 281 test/correctness/storage_folding.cpp g.compute_at(f, x).store_root().fold_storage(y, 2); g 307 test/correctness/storage_folding.cpp Func f, g; g 310 test/correctness/storage_folding.cpp g(x, y, c) = f(x-1, y+1, c) + f(x, y-1, c); g 311 test/correctness/storage_folding.cpp f.store_root().compute_at(g, y).fold_storage(y, 3); g 316 test/correctness/storage_folding.cpp g.set_custom_allocator(my_malloc, my_free); g 318 test/correctness/storage_folding.cpp Buffer<int> im = g.realize(100, 1000, 3); g 16 test/correctness/strided_load.cpp Func f, g; g 23 test/correctness/strided_load.cpp g(x) = f(2*x); g 24 test/correctness/strided_load.cpp g.compute_root().vectorize(x, 16).bound(x, 0, 425); // 24 * 2 = 48 < 49 g 28 test/correctness/strided_load.cpp g.realize(425); g 107 test/correctness/tracing.cpp Func f("f"), g("g"); g 109 test/correctness/tracing.cpp g(x) = Tuple(sin(x*0.1f), cos(x*0.1f)); g 110 test/correctness/tracing.cpp f(x) = g(x)[0] + g(x+1)[1]; g 116 test/correctness/tracing.cpp g.vectorize(x, 4); g 117 test/correctness/tracing.cpp g.store_root().compute_at(f, x); g 118 test/correctness/tracing.cpp g.trace_stores().trace_loads().trace_realizations(); g 10 test/correctness/tracing_bounds.cpp Func f, g; g 14 test/correctness/tracing_bounds.cpp g(x) = f(f(x)); g 19 test/correctness/tracing_bounds.cpp g.trace_stores(); g 22 test/correctness/tracing_bounds.cpp g.compile_jit(); g 73 test/correctness/tracing_stack.cpp Func f("f"), g("g"), h("h"); g 79 test/correctness/tracing_stack.cpp g(x, y) = f(x, y) + 37; g 80 test/correctness/tracing_stack.cpp g.compute_root().trace_realizations(); g 82 test/correctness/tracing_stack.cpp h(x, y) = g(x, y) + input(x, y); g 7 test/correctness/transitive_bounds.cpp Func f, g; g 10 test/correctness/transitive_bounds.cpp g(x) = f(x); g 12 test/correctness/transitive_bounds.cpp g.bound(x, 0, 4); g 17 test/correctness/transitive_bounds.cpp g.realize(4); g 104 test/correctness/tuple_undef.cpp Func f("f"), g("g"); g 54 test/correctness/tuple_update_ops.cpp Func f("f"), g("g"); g 56 test/correctness/tuple_update_ops.cpp g(i, j) = i + j; g 58 test/correctness/tuple_update_ops.cpp f(x, _) = Tuple(cast<int16_t>(x), cast<int32_t>(g(_))); g 8 test/correctness/two_vector_args.cpp Func f, g; g 11 test/correctness/two_vector_args.cpp g(x, y) = x+y; g 13 test/correctness/two_vector_args.cpp f(x, y) = g(x, x); g 18 test/correctness/uninitialized_read.cpp Func f("f"), g("g"), h("h"); g 28 test/correctness/uninitialized_read.cpp g(x) = f(x) + 1; g 29 test/correctness/uninitialized_read.cpp g.compute_root().vectorize(x, 4); g 32 test/correctness/uninitialized_read.cpp h(x) = g(x) + 2; g 15 test/correctness/unrolled_reduction.cpp Func g("g"); g 18 test/correctness/unrolled_reduction.cpp g(x, y) = 0.0f; g 19 test/correctness/unrolled_reduction.cpp g(r.x, y) += noise(r.x); g 21 test/correctness/unrolled_reduction.cpp f(x, y, z) = g(x, y) + g(x+1, y); g 24 test/correctness/unrolled_reduction.cpp g.compute_at(f, y).update().split(r.x, rxo, rxi, 2).unroll(rxi); g 9 test/correctness/update_chunk.cpp Func f, g; g 14 test/correctness/update_chunk.cpp g(x, y) = 0; g 15 test/correctness/update_chunk.cpp g(x, r) = f(r, x)+1; g 17 test/correctness/update_chunk.cpp f.compute_at(g, r); g 18 test/correctness/update_chunk.cpp g.realize(10, 10); g 8 test/correctness/vector_bounds_inference.cpp Func f("f"), g("g"), h("h"); g 12 test/correctness/vector_bounds_inference.cpp g(x) = h(x-1) + h(x+1); g 13 test/correctness/vector_bounds_inference.cpp f(x, y) = (g(x-1) + g(x+1)) + y; g 16 test/correctness/vector_bounds_inference.cpp g.compute_root().vectorize(x, 4); g 9 test/correctness/vector_extern.cpp Func f, g; g 9 test/correctness/vectorize_mixed_widths.cpp Func f("f"), g("g"); g 12 test/correctness/vectorize_mixed_widths.cpp g(x) = f(x)/2; g 15 test/correctness/vectorize_mixed_widths.cpp f.compute_at(g, x).split(x, xo, xi, 16).vectorize(xi, 8).unroll(xi); g 16 test/correctness/vectorize_mixed_widths.cpp g.compute_root().vectorize(x, 16); g 18 test/correctness/vectorize_mixed_widths.cpp Buffer<int> r = g.realize(16); g 6 test/correctness/vectorize_varying_allocation_size.cpp Func f, g; g 10 test/correctness/vectorize_varying_allocation_size.cpp g(x) = f(x) + f(x*x-20); g 12 test/correctness/vectorize_varying_allocation_size.cpp g.split(x, xo, xi, 4).vectorize(xi); g 13 test/correctness/vectorize_varying_allocation_size.cpp f.compute_at(g, xi); g 18 test/correctness/vectorize_varying_allocation_size.cpp Buffer<int> out = g.realize(100); g 15 test/correctness/vectorized_initialization.cpp Func f, g; g 24 test/correctness/vectorized_initialization.cpp g(x) = f(x); g 25 test/correctness/vectorized_initialization.cpp Buffer<int> result = g.realize(4); g 10 test/correctness/vectorized_load_from_vectorized_allocation.cpp Func f("f"), g("g"); g 13 test/correctness/vectorized_load_from_vectorized_allocation.cpp g(x, y, z) = x; g 17 test/correctness/vectorized_load_from_vectorized_allocation.cpp f(r.x, r.y, r.z) += 2*g(r.x*r.z, r.y, r.z); g 21 test/correctness/vectorized_load_from_vectorized_allocation.cpp g.compute_at(f, r.y); g 22 test/correctness/vectorized_load_from_vectorized_allocation.cpp g.bound_extent(x, size*size); g 36 test/correctness/vectorized_reduction_bug.cpp Func f("f"), g("g"), h("h"); g 42 test/correctness/vectorized_reduction_bug.cpp g(x, y) = 0; g 43 test/correctness/vectorized_reduction_bug.cpp g(x, 0) = sum(h(x, RDom(0, 120))); g 46 test/correctness/vectorized_reduction_bug.cpp f(y, x) = g(x, y); g 51 test/correctness/vectorized_reduction_bug.cpp g.compute_at(f, x_outer); g 52 test/correctness/vectorized_reduction_bug.cpp g.update(0).vectorize(x); g 78 test/correctness/widening_reduction.cpp Func g; g 79 test/correctness/widening_reduction.cpp g(x, y) = u8_sat((f(x, y)[0] + f(x, y)[1]) / 16); g 84 test/correctness/widening_reduction.cpp g.gpu_tile(x, y, xi, yi, 16, 16); g 86 test/correctness/widening_reduction.cpp g.hexagon().vectorize(x, 128); g 88 test/correctness/widening_reduction.cpp g.vectorize(x, target.natural_vector_size<uint8_t>()); g 92 test/correctness/widening_reduction.cpp Buffer<uint8_t> out = g.realize(W, H, target); g 17 test/correctness/wrap.cpp Func f("f"), g("g"); g 19 test/correctness/wrap.cpp g(x, y) = f(x, y); g 23 test/correctness/wrap.cpp Func wrapper = f.in(g); g 25 test/correctness/wrap.cpp Func temp = f.in(g); g 34 test/correctness/wrap.cpp Func f("f"), g("g"); g 36 test/correctness/wrap.cpp g(x, y) = f(x, y); g 48 test/correctness/wrap.cpp Func d("d"), e("e"), f("f"), g("g"), h("h"); g 52 test/correctness/wrap.cpp g(x, y) = d(x, y); g 55 test/correctness/wrap.cpp Func wrapper1 = d.in({e, f, g}); g 56 test/correctness/wrap.cpp Func wrapper2 = d.in({g, f, e}); g 67 test/correctness/wrap.cpp Func f("f"), g("g"); g 71 test/correctness/wrap.cpp g(x, y) = f(x); g 73 test/correctness/wrap.cpp Func wrapper = f.in(g).compute_root(); g 78 test/correctness/wrap.cpp Module m = g.compile_to_module({}); g 83 test/correctness/wrap.cpp {g.name(), {wrapper.name()}}, g 91 test/correctness/wrap.cpp Buffer<int> im = g.realize(200, 200); g 183 test/correctness/wrap.cpp Func f("f"), g("g"), h("h"), i("i"); g 187 test/correctness/wrap.cpp g(x, y) = f(x, y); g 188 test/correctness/wrap.cpp h(x, y) = g(x, y) + f(x, y); g 194 test/correctness/wrap.cpp g.compute_at(h, yi); g 205 test/correctness/wrap.cpp {h.name(), {g.name(), wrapper.name()}}, g 206 test/correctness/wrap.cpp {g.name(), {wrapper.name()}}, g 223 test/correctness/wrap.cpp Func f("f"), g("g"); g 227 test/correctness/wrap.cpp g(x, y) = f(x, y); g 229 test/correctness/wrap.cpp Func wrapper = f.in(g); g 235 test/correctness/wrap.cpp g(r.x, r.y) += 2*f(r.x, r.y); g 241 test/correctness/wrap.cpp g.specialize(param).vectorize(x, 8).unroll(x, 2).split(x, x, xi, 4).parallel(x); g 242 test/correctness/wrap.cpp g.update(0).split(r.x, rxo, rxi, 2).unroll(rxi); g 252 test/correctness/wrap.cpp Module m = g.compile_to_module({g.infer_arguments()}); g 257 test/correctness/wrap.cpp {g.name(), {wrapper.name(), g.name()}}, g 265 test/correctness/wrap.cpp Buffer<int> im = g.realize(200, 200); g 280 test/correctness/wrap.cpp Module m = g.compile_to_module({g.infer_arguments()}); g 285 test/correctness/wrap.cpp {g.name(), {wrapper.name(), g.name()}}, g 293 test/correctness/wrap.cpp Buffer<int> im = g.realize(200, 200); g 306 test/correctness/wrap.cpp Func f("f"), g("g"), result("result"); g 310 test/correctness/wrap.cpp g(x, y) = 10; g 311 test/correctness/wrap.cpp g(x, y) += 2 * f(x, x); g 312 test/correctness/wrap.cpp g(x, y) += 3 * f(y, y); g 316 test/correctness/wrap.cpp Func wrapper = g.in().compute_root(); g 317 test/correctness/wrap.cpp g.compute_at(wrapper, x); g 328 test/correctness/wrap.cpp {g.name(), {f.name(), g.name()}}, g 329 test/correctness/wrap.cpp {wrapper.name(), {g.name()}}, g 345 test/correctness/wrap.cpp Func f("f"), g("g"), result("result"); g 349 test/correctness/wrap.cpp g(x, y) = f(x); g 350 test/correctness/wrap.cpp result(x, y) = f(x) + g(x, y); g 352 test/correctness/wrap.cpp Func f_in_g = f.in(g).compute_at(g, x); g 355 test/correctness/wrap.cpp g.compute_at(result, y); g 365 test/correctness/wrap.cpp {result.name(), {g.name(), f_wrapper.name()}}, g 366 test/correctness/wrap.cpp {g.name(), {f_in_g.name()}}, g 385 test/correctness/wrap.cpp Func e("e"), f("f"), g("g"), h("h"); g 390 test/correctness/wrap.cpp g(x, y) = f(x, y); g 391 test/correctness/wrap.cpp h(x, y) = g(x, y); g 395 test/correctness/wrap.cpp f.compute_at(g, y).vectorize(x, 8); g 396 test/correctness/wrap.cpp g.compute_root(); g 398 test/correctness/wrap.cpp Func g_in_h = g.in(h).compute_root(); g 411 test/correctness/wrap.cpp {g_in_h.name(), {g.name()}}, g 412 test/correctness/wrap.cpp {g.name(), {f.name()}}, g 430 test/correctness/wrap.cpp Func e("e"), f("f"), g("g"), h("h"); g 435 test/correctness/wrap.cpp g(x, y) = f(x, y) + e(x, y); g 436 test/correctness/wrap.cpp Func f_in_g = f.in(g).compute_root(); g 438 test/correctness/wrap.cpp h(x, y) = g(x, y) + f(x, y) + f_in_f_in_g(x, y); g 442 test/correctness/wrap.cpp g.compute_root(); g 444 test/correctness/wrap.cpp Func g_in_h = g.in(h).compute_root(); g 454 test/correctness/wrap.cpp {g_in_h.name(), {g.name()}}, g 455 test/correctness/wrap.cpp {g.name(), {e.name(), f_in_g.name()}}, g 474 test/correctness/wrap.cpp Func f("f"), g("g"), h("h"); g 478 test/correctness/wrap.cpp g(x, y) = 10; g 483 test/correctness/wrap.cpp g(r.x, r.y) += h(r.x, r.y); g 485 test/correctness/wrap.cpp Func h_wrapper = h.in().store_root().compute_at(g, r.y); g 486 test/correctness/wrap.cpp Func f_in_g = f.in(g).compute_at(g, r.x); g 493 test/correctness/wrap.cpp Module m = g.compile_to_module({}); g 498 test/correctness/wrap.cpp {g.name(), {g.name(), f_in_g.name(), h_wrapper.name()}}, g 508 test/correctness/wrap.cpp Buffer<int> im = g.realize(200, 200); g 557 test/correctness/wrap.cpp Func f("f"), f_in_g_in_g, f_in_g, f_in_g_in_g_in_h, f_in_g_in_g_in_h_in_h, g("g"), h("h"); g 563 test/correctness/wrap.cpp g(x, y) = f(y, x); g 566 test/correctness/wrap.cpp g.compute_root().tile(x, y, xi, yi, 8, 8).vectorize(xi).unroll(yi); g 568 test/correctness/wrap.cpp f_in_g = f.in(g).compute_root().tile(x, y, xi, yi, 8, 8).vectorize(xi).unroll(yi); g 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); g 578 test/correctness/wrap.cpp Module m = g.compile_to_module({}); g 583 test/correctness/wrap.cpp {g.name(), {f_in_g_in_g.name()}}, g 592 test/correctness/wrap.cpp Buffer<int> im = g.realize(1024, 1024); g 7 test/error/bad_compute_at.cpp Func f("f"), g("g"), h("h"), junk1, junk2, junk3; g 11 test/error/bad_compute_at.cpp g(x) = f(x); g 15 test/error/bad_compute_at.cpp h(x, y) = g(x) + f(x) + junk1(x) + junk2(x) + junk3(x, y); g 17 test/error/bad_compute_at.cpp g.compute_at(h, y); g 9 test/error/bad_fold.cpp Func f, g; g 12 test/error/bad_fold.cpp g(x, y) = f(x-1, y+1) + f(x, y-1); g 13 test/error/bad_fold.cpp f.store_root().compute_at(g, y).fold_storage(y, 2); g 15 test/error/bad_fold.cpp Buffer<int> im = g.realize(100, 1000); g 7 test/error/bad_schedule.cpp Func f, g; g 11 test/error/bad_schedule.cpp g(x) = f(x); g 16 test/error/bad_schedule.cpp g.realize(10); g 7 test/error/bad_store_at.cpp Func f("f"), g("g"), h("h"); g 11 test/error/bad_store_at.cpp g(x) = f(x); g 12 test/error/bad_store_at.cpp h(x, y) = g(x); g 14 test/error/bad_store_at.cpp g.compute_at(h, y); g 7 test/error/define_after_realize.cpp Func f, g; g 7 test/error/define_after_use.cpp Func f, g; g 11 test/error/define_after_use.cpp g(x) = f(x) + 1; g 7 test/error/expanding_reduction.cpp Func f, g; g 24 test/error/expanding_reduction.cpp g(x, y) = f(x, y); g 26 test/error/expanding_reduction.cpp g.infer_input_bounds(100, 100); g 26 test/error/five_d_gpu_buffer.cpp Func g; g 27 test/error/five_d_gpu_buffer.cpp g(v0) = f(v0 % 2, (v0 / 2) % 2, (v0 / 4) % 2, (v0 / 8) % 2, (v0 / 16) % 2); g 29 test/error/five_d_gpu_buffer.cpp Buffer<int> result = g.realize(32); g 13 test/error/float_arg.cpp Func g; g 14 test/error/float_arg.cpp g(x) = f(f(x, 3) * 17.0f, 3); g 9 test/error/implicit_args.cpp Func f("f"), g("g"), h("h"); g 11 test/error/implicit_args.cpp g(x, y) = x + y; g 12 test/error/implicit_args.cpp g.compute_root(); g 20 test/error/implicit_args.cpp f(x, _) = g(_) + 2; g 9 test/error/memoize_different_compute_store.cpp Func f, g; g 13 test/error/memoize_different_compute_store.cpp g(x, y) = f(x, y) + f(x - 1, y) + f(x + 1, y); g 15 test/error/memoize_different_compute_store.cpp g.split(y, y, _, 16); g 17 test/error/memoize_different_compute_store.cpp f.compute_at(g, y).memoize(); g 20 test/error/memoize_different_compute_store.cpp Buffer<uint8_t> out = g.realize(128, 128); g 8 test/error/race_condition.cpp Func f, g; g 7 test/error/reduction_bounds.cpp Func f("f"), g("g"); g 13 test/error/reduction_bounds.cpp g(x) = 0; g 14 test/error/reduction_bounds.cpp g(x) = f(g(x-1)) + r; g 16 test/error/reduction_bounds.cpp f.compute_at(g, r.x); g 20 test/error/reduction_bounds.cpp g.realize(100); g 7 test/error/rfactor_inner_dim_non_commutative.cpp Func f("f"), g("g"); g 18 test/error/rfactor_inner_dim_non_commutative.cpp g(x, y) = 40; g 19 test/error/rfactor_inner_dim_non_commutative.cpp g(x, y) -= f(r.x, r.y); g 25 test/error/rfactor_inner_dim_non_commutative.cpp g.update(0).rfactor(r.x, u); g 9 test/error/tuple_arg_select_undef.cpp Func f("f"), g("g"); g 14 test/error/undefined_rdom_dimension.cpp Func f("f"), g("g"), h("h"); g 18 test/error/undefined_rdom_dimension.cpp g(x, y, c) = 42; g 20 test/error/undefined_rdom_dimension.cpp f(x, y, c) = g(x, y, c); g 7 test/error/wrap_frozen.cpp Func f("f"), g("g"); g 11 test/error/wrap_frozen.cpp g(x) = f(x); g 12 test/error/wrap_frozen.cpp Func wrapper = f.in(g); g 12 test/generator/argvcall_generator.cpp Func f("f"), g("g"); g 15 test/generator/argvcall_generator.cpp g(x, y, c) = cast<int32_t>(f(x, y) * c * f1 / f2); g 17 test/generator/argvcall_generator.cpp g.bound(c, 0, 3).reorder(c, x, y).unroll(c); g 19 test/generator/argvcall_generator.cpp g.vectorize(x, natural_vector_size<float>()); g 21 test/generator/argvcall_generator.cpp return g; g 25 test/generator/cleanup_on_error_generator.cpp Func g; g 26 test/generator/cleanup_on_error_generator.cpp g(x) = f(2*x) + f(2*x+1); g 28 test/generator/cleanup_on_error_generator.cpp g.compute_root(); g 31 test/generator/cleanup_on_error_generator.cpp h(x) = g(x) + 1; g 19 test/generator/cxx_mangling_define_extern_generator.cpp Func g("g"); g 20 test/generator/cxx_mangling_define_extern_generator.cpp g(x) = input(x) + 42; g 26 test/generator/cxx_mangling_define_extern_generator.cpp args.push_back(g); g 51 test/generator/cxx_mangling_define_extern_generator.cpp g.compute_root(); g 13 test/generator/old_buffer_t_generator.cpp Func f, g; g 23 test/generator/old_buffer_t_generator.cpp g.define_extern("extern_stage", {in2, f}, Int(32), 2, g 26 test/generator/old_buffer_t_generator.cpp return g; g 12 test/generator/user_context_generator.cpp Func g; g 13 test/generator/user_context_generator.cpp g(x, y) = input(x, y) * 2; g 14 test/generator/user_context_generator.cpp g.compute_root(); g 17 test/generator/user_context_generator.cpp f(x, y) = g(x, y); g 12 test/generator/user_context_insanity_generator.cpp Func g; g 13 test/generator/user_context_insanity_generator.cpp g(x, y) = input(x, y) * 2; g 14 test/generator/user_context_insanity_generator.cpp g.compute_root(); g 17 test/generator/user_context_insanity_generator.cpp f(x, y) = g(x, y); g 24 test/opengl/conv_select.cpp Func f, g; g 31 test/opengl/conv_select.cpp g(x, y, c) = select(c == 0, R, G); g 34 test/opengl/conv_select.cpp g.bound(c, 0, 2).glsl(x, y, c); g 37 test/opengl/conv_select.cpp Buffer<float> result = g.realize(width, height, res_channels, target); g 18 test/opengl/copy_pixels.cpp Func g; g 19 test/opengl/copy_pixels.cpp g(x, y, c) = input(x, y, c); g 22 test/opengl/copy_pixels.cpp g.bound(c, 0, 3); g 23 test/opengl/copy_pixels.cpp g.glsl(x, y, c); g 24 test/opengl/copy_pixels.cpp g.realize(out, target); g 19 test/opengl/copy_to_device.cpp Func g, h; g 24 test/opengl/copy_to_device.cpp g(x, y, c) = h(x, y, c); g 25 test/opengl/copy_to_device.cpp g.bound(c, 0, 3); g 26 test/opengl/copy_to_device.cpp g.glsl(x, y, c); g 29 test/opengl/copy_to_device.cpp g.realize(out, target); g 22 test/opengl/float_texture.cpp Func g; g 23 test/opengl/float_texture.cpp g(x, y, c) = input(x, y, c); g 26 test/opengl/float_texture.cpp g.bound(c, 0, 3); g 27 test/opengl/float_texture.cpp g.glsl(x, y, c); g 28 test/opengl/float_texture.cpp g.realize(out, target); g 13 test/opengl/multiple_stages.cpp Func f, g, h; g 15 test/opengl/multiple_stages.cpp g(x, y, c) = cast<uint8_t>(x); g 16 test/opengl/multiple_stages.cpp h(x, y, c) = 1 + g(x, y, c); g 20 test/opengl/multiple_stages.cpp g.bound(c, 0, 3).compute_root().glsl(x, y, c); g 41 test/opengl/rewrap_texture.cpp Func g; g 42 test/opengl/rewrap_texture.cpp g(x, y, c) = input(x, y, c); g 43 test/opengl/rewrap_texture.cpp g.bound(c, 0, 3); g 44 test/opengl/rewrap_texture.cpp g.glsl(x, y, c); g 46 test/opengl/rewrap_texture.cpp g.realize(out1, target); // run once to initialize OpenGL g 59 test/opengl/rewrap_texture.cpp g.realize(out2, target); g 64 test/opengl/rewrap_texture.cpp g.realize(out3, target); g 311 test/opengl/save_state.cpp Func g; g 312 test/opengl/save_state.cpp g(x, y, c) = input(x, y, c); g 313 test/opengl/save_state.cpp g.bound(c, 0, 3); g 314 test/opengl/save_state.cpp g.glsl(x, y, c); g 315 test/opengl/save_state.cpp g.realize(out, target); // let Halide initialize OpenGL g 318 test/opengl/save_state.cpp g.realize(out, target); g 326 test/opengl/save_state.cpp g.realize(out, target); g 32 test/opengl/special_funcs.cpp bool test_exact(Expr r, Expr g, Expr b) { g 34 test/opengl/special_funcs.cpp c == T(1), g, g 63 test/opengl/special_funcs.cpp bool test_approx(Expr r, Expr g, Expr b, double rms_error) { g 64 test/opengl/special_funcs.cpp Expr e = cast<T>(select(c == 0, r, c == 1, g, b)); g 22 test/opengl/sum_reduction.cpp Func g; g 24 test/opengl/sum_reduction.cpp g(x, y, c) = cast<float>(sum(input(coordx, y, c)) / sum(r) * 255.0f); g 27 test/opengl/sum_reduction.cpp g.bound(c, 0, 4).glsl(x, y, c); g 30 test/opengl/sum_reduction.cpp Buffer<float> result = g.realize(width, height, channels, target); g 22 test/opengl/sumcolor_reduction.cpp Func g; g 24 test/opengl/sumcolor_reduction.cpp g(x, y, c) = sum(input(x, y, r)); g 27 test/opengl/sumcolor_reduction.cpp g.bound(c, 0, 3).glsl(x, y, c); g 30 test/opengl/sumcolor_reduction.cpp Buffer<float> result = g.realize(10, 10, 3, target); g 18 test/opengl/tuples.cpp Func g; g 19 test/opengl/tuples.cpp g(x, y, c) = { input(x, y, c), input(x, y, c) / 2 }; g 25 test/opengl/tuples.cpp h(x, y, c) = min(g(x, y, c)[0], g(x, y, c)[1]); g 28 test/opengl/tuples.cpp g.compute_root(); g 21 test/performance/boundary_conditions.cpp Func g(name); g 23 test/performance/boundary_conditions.cpp g(x, y) = f(x - 1, y - 1) + f(x, y) + f(x + 1, y + 1); g 26 test/performance/boundary_conditions.cpp g.gpu_tile(x, y, xo, yo, xi, yi, 8, 8); g 28 test/performance/boundary_conditions.cpp g.vectorize(x, 4); g 31 test/performance/boundary_conditions.cpp Buffer<float> out = g.realize(W, H); g 35 test/performance/boundary_conditions.cpp g.realize(out); g 46 test/performance/boundary_conditions.cpp Func g(name); g 49 test/performance/boundary_conditions.cpp g(x, y) = sum(f(x + r.x, y + r.y)); g 52 test/performance/boundary_conditions.cpp g.gpu_tile(x, y, xo, yo, xi, yi, 8, 8); g 54 test/performance/boundary_conditions.cpp g.tile(x, y, xi, yi, 8, 8).vectorize(xi, 4); g 57 test/performance/boundary_conditions.cpp Buffer<float> out = g.realize(W, H); g 61 test/performance/boundary_conditions.cpp g.realize(out); g 68 test/performance/clamped_vector_load.cpp Func g; g 69 test/performance/clamped_vector_load.cpp g(x, y) = input(clamp(x, MIN, MAX), y); g 72 test/performance/clamped_vector_load.cpp f(x, y) = g(x, y) * 3 + g(x+1, y); g 82 test/performance/clamped_vector_load.cpp Func g; g 83 test/performance/clamped_vector_load.cpp g(x, y) = input(clamp(x, MIN, MAX), y); g 86 test/performance/clamped_vector_load.cpp f(x, y) = g(x, y) * 3 + g(x+1, y); g 89 test/performance/clamped_vector_load.cpp g.compute_at(f, x); g 96 test/performance/clamped_vector_load.cpp Func g; g 97 test/performance/clamped_vector_load.cpp g(x, y) = input(clamp(x, MIN, MAX), y); g 100 test/performance/clamped_vector_load.cpp f(x, y) = g(x, y) * 3 + g(x+1, y); g 103 test/performance/clamped_vector_load.cpp g.compute_at(f, y); g 11 test/performance/const_division.cpp Func f, g, h; g 46 test/performance/const_division.cpp g(x, y) = input(x, y) / cast<T>(y + min_val); g 55 test/performance/const_division.cpp g(x, y) = input(x, y) % cast<T>(y + min_val); g 70 test/performance/const_division.cpp g.compile_jit(); g 73 test/performance/const_division.cpp Buffer<T> correct = g.realize(input.width(), num_vals); g 74 test/performance/const_division.cpp double t_correct = benchmark(5, 200, [&]() { g.realize(correct); }); g 23 test/performance/fast_pow.cpp Func f, g, h; g 30 test/performance/fast_pow.cpp g(x, y) = sum(pow((x+1)/512.0f, (y+1+s)/512.0f)); g 33 test/performance/fast_pow.cpp g.vectorize(x, 8); g 43 test/performance/fast_pow.cpp g.realize(fast_result); g 54 test/performance/fast_pow.cpp double t2 = 1e3 * benchmark(trials, iterations, [&]() { g.realize(timing_scratch); }); g 13 test/performance/parallel_performance.cpp Func f, g; g 18 test/performance/parallel_performance.cpp g(x, y) = math; g 27 test/performance/parallel_performance.cpp Buffer<float> img = g.realize(W, H); g 30 test/performance/parallel_performance.cpp double serialTime = benchmark(1, 1, [&]() { g.realize(img); }); g 38 test/performance/vectorize.cpp Func f, g; g 50 test/performance/vectorize.cpp g(x, y) = e; g 56 test/performance/vectorize.cpp g.reorder(y, x); g 58 test/performance/vectorize.cpp Buffer<A> outputg = g.realize(W, H); g 62 test/performance/vectorize.cpp g.realize(outputg); g 31 test/performance/vectorize_pred.cpp Func f, g; g 47 test/performance/vectorize_pred.cpp g(x, y) = undef<A>(); g 48 test/performance/vectorize_pred.cpp g(r.x, r.y) = e; g 51 test/performance/vectorize_pred.cpp Buffer<A> outputg = g.realize(W, H); g 55 test/performance/vectorize_pred.cpp g.realize(outputg); g 7 test/warning/double_vectorize.cpp Func f, g; g 10 test/warning/double_vectorize.cpp g(x, y) = f(x, y) + f(x + 1, y); g 14 test/warning/double_vectorize.cpp g.split(x, x, xi, 8).vectorize(xi); g 15 test/warning/double_vectorize.cpp f.compute_at(g, xi).vectorize(x); g 17 test/warning/double_vectorize.cpp g.realize(16, 16); g 7 test/warning/vectorize_size_one.cpp Func f, g; g 10 test/warning/vectorize_size_one.cpp g(x, y) = f(x, y); g 15 test/warning/vectorize_size_one.cpp f.compute_at(g, x).vectorize(x); g 17 test/warning/vectorize_size_one.cpp g.realize(16, 16); g 87 tutorial/lesson_04_debugging_2.cpp Func g; g 88 tutorial/lesson_04_debugging_2.cpp g(x, y) = sin(x) + print(cos(y)); g 91 tutorial/lesson_04_debugging_2.cpp g.realize(4, 4); g 112 tutorial/lesson_04_debugging_2.cpp Func g; g 113 tutorial/lesson_04_debugging_2.cpp g(x, y) = sin(x) + e; g 114 tutorial/lesson_04_debugging_2.cpp g.realize(4, 4); g 137 tutorial/lesson_04_debugging_2.cpp Func g; g 140 tutorial/lesson_04_debugging_2.cpp g(x, y) = sin(x) + e; g 142 tutorial/lesson_04_debugging_2.cpp g.realize(4, 4); g 100 tutorial/lesson_09_update_definitions.cpp Func g("g"); g 101 tutorial/lesson_09_update_definitions.cpp g(x, y) = x + y; // Pure definition g 102 tutorial/lesson_09_update_definitions.cpp g(2, 1) = 42; // First update definition g 103 tutorial/lesson_09_update_definitions.cpp g(x, 0) = g(x, 1); // Second update definition g 105 tutorial/lesson_09_update_definitions.cpp g.trace_loads(); g 106 tutorial/lesson_09_update_definitions.cpp g.trace_stores(); g 108 tutorial/lesson_09_update_definitions.cpp g.realize(4, 4); g 157 tutorial/lesson_17_predicated_rdom.cpp Func f("f"), g("g"); g 160 tutorial/lesson_17_predicated_rdom.cpp g(x, y) = x + y; g 173 tutorial/lesson_17_predicated_rdom.cpp g(r2.x, r2.y) += 17; g 175 tutorial/lesson_17_predicated_rdom.cpp Buffer<int> halide_result_g = g.realize(5, 5); g 594 util/HalideTraceViz.cpp int g = atoi(argv[++i]); g 596 util/HalideTraceViz.cpp config.uninitialized_memory_color = (255 << 24) | ((b & 255) << 16) | ((g & 255) << 8) | (r & 255);