p 82 apps/HelloAndroid/src/com/example/hellohalide/CameraPreview.java Camera.Parameters p = mCamera.getParameters(); p 83 apps/HelloAndroid/src/com/example/hellohalide/CameraPreview.java Camera.Size s = p.getPreviewSize(); p 85 apps/HelloAndroid/src/com/example/hellohalide/CameraPreview.java p.setPreviewFormat(ImageFormat.YV12); p 95 apps/HelloAndroid/src/com/example/hellohalide/CameraPreview.java mCamera.setParameters(p); p 58 apps/fft/fft.cpp int p = 1; p 60 apps/fft/fft.cpp p *= R[i]; p 62 apps/fft/fft.cpp return p; p 83 apps/hexagon_benchmarks/process.cpp for (PipelineDescriptorBase *p : pipelines) { p 84 apps/hexagon_benchmarks/process.cpp if (!p->defined()) { p 87 apps/hexagon_benchmarks/process.cpp p->init(); p 88 apps/hexagon_benchmarks/process.cpp printf ("Running %s...\n", p->name()); p 96 apps/hexagon_benchmarks/process.cpp int result = p->run(m); p 101 apps/hexagon_benchmarks/process.cpp printf("Done, time (%s): %g s %s\n", p->name(), time, to_string(m)); p 108 apps/hexagon_benchmarks/process.cpp if (!p->verify(W, H)) { p 111 apps/hexagon_benchmarks/process.cpp p->finalize(); p 17 python_bindings/python/Argument.cpp p::class_<Argument>("Argument", p 20 python_bindings/python/Argument.cpp p::init<>(p::arg("self"))); p 23 python_bindings/python/Argument.cpp .def(p::init<std::string, Argument::Kind, h::Type, uint8_t, h::Expr, h::Expr, h::Expr>( p 24 python_bindings/python/Argument.cpp (p::arg("self"), p::arg("name"), p::arg("kind"), p::arg("type"), p::arg("dimensions"), p 25 python_bindings/python/Argument.cpp p::arg("default"), p::arg("min"), p::arg("max")))) p 26 python_bindings/python/Argument.cpp .def(p::init<std::string, Argument::Kind, h::Type, uint8_t, h::Expr>( p 27 python_bindings/python/Argument.cpp (p::arg("self"), p::arg("name"), p::arg("kind"), p::arg("type"), p::arg("dimensions"), p 28 python_bindings/python/Argument.cpp p::arg("default")))) p 29 python_bindings/python/Argument.cpp .def(p::init<std::string, Argument::Kind, h::Type, uint8_t>( p 30 python_bindings/python/Argument.cpp (p::arg("self"), p::arg("name"), p::arg("kind"), p::arg("type"), p::arg("dimensions")))); p 39 python_bindings/python/Argument.cpp p::enum_<Argument::Kind>("ArgumentKind") p 76 python_bindings/python/Argument.cpp .def("is_buffer", &Argument::is_buffer, p::arg("self"), p 79 python_bindings/python/Argument.cpp .def("is_scalar", &Argument::is_scalar, p::arg("self")) p 80 python_bindings/python/Argument.cpp .def("is_input", &Argument::is_input, p::arg("self")) p 81 python_bindings/python/Argument.cpp .def("is_output", &Argument::is_output, p::arg("self")); p 18 python_bindings/python/BoundaryConditions.cpp inline std::pair<T, S> to_pair(const p::object &iterable) { p 19 python_bindings/python/BoundaryConditions.cpp return std::pair<T, S>(p::extract<T>(iterable[0]), p::extract<T>(iterable[1])); p 23 python_bindings/python/BoundaryConditions.cpp inline std::vector<T> to_vector(const p::object &iterable) { p 24 python_bindings/python/BoundaryConditions.cpp return std::vector<T>(p::stl_input_iterator<T>(iterable), p::stl_input_iterator<T>()); p 27 python_bindings/python/BoundaryConditions.cpp std::vector<std::pair<h::Expr, h::Expr>> inline pyobject_to_bounds(const p::object &pybounds) { p 28 python_bindings/python/BoundaryConditions.cpp std::vector<p::object> intermediate = to_vector<p::object>(pybounds); p 41 python_bindings/python/BoundaryConditions.cpp h::Func constant_exterior_bounds(h::Func func, h::Expr value, p::object bounds_) { p 48 python_bindings/python/BoundaryConditions.cpp p::def("constant_exterior", &constant_exterior0<h::Buffer<T>>, p::args("source", "value")); p 67 python_bindings/python/BoundaryConditions.cpp h::Func repeat_edge_bounds(h::Func func, p::object bounds_) { p 74 python_bindings/python/BoundaryConditions.cpp p::def("repeat_edge", &repeat_edge0<h::Buffer<T>>, p::args("source")); p 93 python_bindings/python/BoundaryConditions.cpp h::Func repeat_image_bounds(h::Func func, p::object bounds_) { p 100 python_bindings/python/BoundaryConditions.cpp p::def("repeat_image", &repeat_image0<h::Buffer<T>>, p::args("source")); p 119 python_bindings/python/BoundaryConditions.cpp h::Func mirror_image_bounds(h::Func func, p::object bounds_) { p 126 python_bindings/python/BoundaryConditions.cpp p::def("mirror_image", &mirror_image0<h::Buffer<T>>, p::args("source")); p 145 python_bindings/python/BoundaryConditions.cpp h::Func mirror_interior_bounds(h::Func func, p::object bounds_) { p 152 python_bindings/python/BoundaryConditions.cpp p::def("mirror_interior", &mirror_interior0<h::Buffer<T>>, p::args("source")); p 167 python_bindings/python/BoundaryConditions.cpp p::def("constant_exterior", &constant_exterior0<h::ImageParam>, p::args("source", "value"), p 183 python_bindings/python/BoundaryConditions.cpp p::def("constant_exterior", &constant_exterior_bounds, p::args("source", "value", "bounds")); p 187 python_bindings/python/BoundaryConditions.cpp p::def("repeat_edge", &repeat_edge0<h::ImageParam>, p::args("source"), p 200 python_bindings/python/BoundaryConditions.cpp p::def("repeat_edge", &repeat_edge_bounds, p::args("source", "bounds")); p 204 python_bindings/python/BoundaryConditions.cpp p::def("repeat_image", &repeat_image0<h::ImageParam>, p::args("source"), p 217 python_bindings/python/BoundaryConditions.cpp p::def("repeat_image", &repeat_image_bounds, p::args("source", "bounds")); p 221 python_bindings/python/BoundaryConditions.cpp p::def("mirror_image", &mirror_image0<h::ImageParam>, p::args("source"), p 235 python_bindings/python/BoundaryConditions.cpp p::def("mirror_image", &mirror_image_bounds, p::args("source", "bounds")); p 239 python_bindings/python/BoundaryConditions.cpp p::def("mirror_interior", &mirror_interior0<h::ImageParam>, p::args("source"), p 254 python_bindings/python/BoundaryConditions.cpp p::def("mirror_interior", &mirror_interior_bounds, p::args("source", "bounds")); p 44 python_bindings/python/Error.cpp p::register_exception_translator<h::Error>(&translate_error); p 45 python_bindings/python/Error.cpp p::register_exception_translator<h::RuntimeError>(&translate_runtime_error); p 46 python_bindings/python/Error.cpp p::register_exception_translator<h::CompileError>(&translate_compile_error); p 47 python_bindings/python/Error.cpp p::register_exception_translator<h::InternalError>(&translate_internal_error); p 18 python_bindings/python/Expr.cpp p::object expr_vector_to_python_tuple(const std::vector<h::Expr> &t) { p 20 python_bindings/python/Expr.cpp return p::object(t[0]); p 22 python_bindings/python/Expr.cpp p::list elts; p 26 python_bindings/python/Expr.cpp return p::tuple(elts); p 30 python_bindings/python/Expr.cpp std::vector<h::Expr> python_tuple_to_expr_vector(const p::object &obj) { p 31 python_bindings/python/Expr.cpp p::extract<h::Expr> expr_extract(obj); p 55 python_bindings/python/Expr.cpp auto expr_class = p::class_<Expr>("Expr", p 76 python_bindings/python/Expr.cpp .def(p::init<const h::Internal::BaseExprNode *>(p::arg("self"))) p 77 python_bindings/python/Expr.cpp .def(p::init<double>(p::arg("self"), "Make an expression representing a const 32-bit float double. " p 79 python_bindings/python/Expr.cpp .def(p::init<float>(p::arg("self"), "Make an expression representing a const 32-bit float (i.e. a FloatImm)")) p 80 python_bindings/python/Expr.cpp .def(p::init<int>(p::arg("self"), "Make an expression representing a const 32-bit int (i.e. an IntImm)")) p 81 python_bindings/python/Expr.cpp .def(p::init<std::string>(p::arg("self"), "Make an expression representing a const string (i.e. a StringImm)")) p 83 python_bindings/python/Expr.cpp p::make_constructor(&expr_from_var_constructor, p::default_call_policies(), p 84 python_bindings/python/Expr.cpp p::arg("var")), p 87 python_bindings/python/Expr.cpp .def("type", &Expr::type, p::arg("self"), p 89 python_bindings/python/Expr.cpp .def("__repr__", &expr_repr, p::arg("self")); p 96 python_bindings/python/Expr.cpp p::implicitly_convertible<int, h::Expr>(); p 97 python_bindings/python/Expr.cpp p::implicitly_convertible<float, h::Expr>(); p 98 python_bindings/python/Expr.cpp p::implicitly_convertible<double, h::Expr>(); p 100 python_bindings/python/Expr.cpp p::enum_<h::DeviceAPI>("DeviceAPI", p 24 python_bindings/python/Func.cpp p::object realization_to_python_object(const h::Realization &r) { p 28 python_bindings/python/Func.cpp p::list elts; p 32 python_bindings/python/Func.cpp return p::tuple(elts); p 36 python_bindings/python/Func.cpp h::Realization python_object_to_realization(p::object obj) { p 38 python_bindings/python/Func.cpp p::extract<p::tuple> tuple_extract(obj); p 40 python_bindings/python/Func.cpp p::tuple tup = tuple_extract(); p 41 python_bindings/python/Func.cpp for (ssize_t i = 0; i < p::len(tup); i++) { p 51 python_bindings/python/Func.cpp p::object func_realize(h::Func &f, Args... args) { p 61 python_bindings/python/Func.cpp void func_realize_tuple(h::Func &f, p::tuple obj, Args... args) { p 76 python_bindings/python/Func.cpp p::list args, p 86 python_bindings/python/Func.cpp p::list args, p 96 python_bindings/python/Func.cpp p::list args, p 106 python_bindings/python/Func.cpp p::list args, p 116 python_bindings/python/Func.cpp p::list args, p 126 python_bindings/python/Func.cpp p::list args, p 137 python_bindings/python/Func.cpp p::list args, p 165 python_bindings/python/Func.cpp h::FuncRef func_getitem_operator(h::Func &func, p::object arg) { p 169 python_bindings/python/Func.cpp h::Stage func_setitem_operator(h::Func &func, p::object lhs, p::object rhs) { p 183 python_bindings/python/Func.cpp p::list params, p 192 python_bindings/python/Func.cpp p::list params, p 193 python_bindings/python/Func.cpp p::list types, p 200 python_bindings/python/Func.cpp p::tuple func_output_types(h::Func &func) { p 201 python_bindings/python/Func.cpp p::list elts; p 205 python_bindings/python/Func.cpp return p::tuple(elts); p 213 python_bindings/python/Func.cpp p::enum_<h::StmtOutputFormat>("StmtOutputFormat") p 219 python_bindings/python/Func.cpp p::class_<Func>("Func", p 230 python_bindings/python/Func.cpp p::init<>(p::arg("self"))) p 231 python_bindings/python/Func.cpp .def(p::init<std::string>(p::arg("self"))) p 232 python_bindings/python/Func.cpp .def(p::init<h::Expr>(p::arg("self"))); p 236 python_bindings/python/Func.cpp p::return_internal_reference<1>(), p 253 python_bindings/python/Func.cpp p::args("self"), p 256 python_bindings/python/Func.cpp p::args("self", "target"), p 259 python_bindings/python/Func.cpp p::args("self", "x"), p 262 python_bindings/python/Func.cpp p::args("self", "x", "target"), p 265 python_bindings/python/Func.cpp p::args("self", "x", "y"), p 268 python_bindings/python/Func.cpp p::args("self", "x", "y", "target"), p 271 python_bindings/python/Func.cpp p::args("self", "x", "y", "z"), p 274 python_bindings/python/Func.cpp p::args("self", "x", "y", "z", "target"), p 277 python_bindings/python/Func.cpp p::args("self", "x", "y", "z", "w"), p 280 python_bindings/python/Func.cpp p::args("self", "x", "y", "z", "w", "target"), p 283 python_bindings/python/Func.cpp p::args("self", "output"), p 286 python_bindings/python/Func.cpp p::args("self", "output", "target"), p 289 python_bindings/python/Func.cpp p::args("self", "output"), p 292 python_bindings/python/Func.cpp p::args("self", "output", "target"), p 295 python_bindings/python/Func.cpp p::args("self", "output"), p 298 python_bindings/python/Func.cpp p::args("self", "output", "target"), p 301 python_bindings/python/Func.cpp p::args("self", "output"), p 304 python_bindings/python/Func.cpp p::args("self", "output", "target"), p 307 python_bindings/python/Func.cpp p::args("self", "output"), p 310 python_bindings/python/Func.cpp p::args("self", "output", "target"), p 313 python_bindings/python/Func.cpp p::args("self", "output"), p 316 python_bindings/python/Func.cpp p::args("self", "output", "target"), p 319 python_bindings/python/Func.cpp p::args("self", "output"), p 322 python_bindings/python/Func.cpp p::args("self", "output", "target"), p 325 python_bindings/python/Func.cpp p::args("self", "output"), p 328 python_bindings/python/Func.cpp p::args("self", "output", "target"), p 331 python_bindings/python/Func.cpp p::args("self", "output"), p 334 python_bindings/python/Func.cpp p::args("self", "output", "target"), p 339 python_bindings/python/Func.cpp p::args("self", "filename", "args", "fn_name", "target"), p 347 python_bindings/python/Func.cpp p::args("self", "filename", "args", "fn_name", "target"), p 356 python_bindings/python/Func.cpp p::args("self", "filename", "args", "fn_name", "target"), p 367 python_bindings/python/Func.cpp p::args("self", "filename", "args", "fn_name", "target"), p 376 python_bindings/python/Func.cpp p::args("self", "filename", "args", "fn_name", "target"), p 385 python_bindings/python/Func.cpp p::args("self", "filename_prefix", "args", "fn_name", "target"), p 389 python_bindings/python/Func.cpp func_class.def("compile_jit", &func_compile_jit1, p::args("self", "target"), p 396 python_bindings/python/Func.cpp .def("compile_jit", &func_compile_jit0, p::arg("self")); p 398 python_bindings/python/Func.cpp func_class.def("debug_to_file", &Func::debug_to_file, p::args("self", "filename"), p 408 python_bindings/python/Func.cpp p::args("self", "filename", "args", "fmt", "target"), p 412 python_bindings/python/Func.cpp func_class.def("print_loop_nest", &Func::print_loop_nest, p::arg("self"), p 416 python_bindings/python/Func.cpp func_class.def("name", &Func::name, p::arg("self"), p 417 python_bindings/python/Func.cpp p::return_value_policy<p::copy_const_reference>(), p 420 python_bindings/python/Func.cpp func_class.def("args", &Func::args, p::arg("self"), p 423 python_bindings/python/Func.cpp func_class.def("value", &Func::value, p::arg("self"), p 428 python_bindings/python/Func.cpp func_class.def("values", &Func::values, p::arg("self"), p 433 python_bindings/python/Func.cpp func_class.def("defined", &Func::defined, p::arg("self"), p 436 python_bindings/python/Func.cpp func_class.def("update_args", &Func::update_args, (p::arg("self"), p::arg("idx") = 0), p 437 python_bindings/python/Func.cpp p::return_value_policy<p::copy_const_reference>(), p 443 python_bindings/python/Func.cpp func_class.def("update_value", &Func::update_value, (p::arg("self"), p::arg("idx") = 0), p 449 python_bindings/python/Func.cpp func_class.def("update_values", &Func::update_values, (p::arg("self"), p::arg("idx") = 0), p 455 python_bindings/python/Func.cpp func_class.def("rvars", &Func::rvars, (p::arg("self"), p::arg("idx") = 0), p 459 python_bindings/python/Func.cpp .def("has_update_definition", &Func::has_update_definition, p::arg("self"), p 461 python_bindings/python/Func.cpp .def("num_update_definitions", &Func::num_update_definitions, p::arg("self"), p 464 python_bindings/python/Func.cpp func_class.def("is_extern", &Func::is_extern, p::arg("self"), p 469 python_bindings/python/Func.cpp p::args("self", "function_name", "params", "output_type", "dimensionality"), p 475 python_bindings/python/Func.cpp p::args("self", "function_name", "params", "output_types", "dimensionality")); p 477 python_bindings/python/Func.cpp func_class.def("output_types", &func_output_types, p::arg("self"), p 480 python_bindings/python/Func.cpp func_class.def("outputs", &Func::outputs, p::arg("self"), p 484 python_bindings/python/Func.cpp func_class.def("extern_function_name", &Func::extern_function_name, p::arg("self"), p 485 python_bindings/python/Func.cpp p::return_value_policy<p::copy_const_reference>(), p 488 python_bindings/python/Func.cpp func_class.def("dimensions", &Func::dimensions, p::arg("self"), p 511 python_bindings/python/Func.cpp func_class.def("split", &func_split<Func>, p::args("self", "old", "outer", "inner", "factor"), p 512 python_bindings/python/Func.cpp p::return_internal_reference<1>(), p 518 python_bindings/python/Func.cpp .def("fuse", &Func::fuse, p::args("self", "inner", "outer", "fused"), p 519 python_bindings/python/Func.cpp p::return_internal_reference<1>(), p 523 python_bindings/python/Func.cpp .def("serial", &Func::serial, p::args("self", "var"), p 524 python_bindings/python/Func.cpp p::return_internal_reference<1>(), p 527 python_bindings/python/Func.cpp func_class.def("parallel", &func_parallel0<Func>, p::args("self", "var"), p 528 python_bindings/python/Func.cpp p::return_internal_reference<1>(), p 530 python_bindings/python/Func.cpp .def("parallel", &func_parallel1<Func>, p::args("self", "var", "factor"), p 531 python_bindings/python/Func.cpp p::return_internal_reference<1>()); p 533 python_bindings/python/Func.cpp func_class.def("vectorize", &func_vectorize1<Func>, p::args("self", "var", "factor"), p 534 python_bindings/python/Func.cpp p::return_internal_reference<1>(), p 540 python_bindings/python/Func.cpp .def("vectorize", &func_vectorize0<Func>, p::args("self", "var"), p 541 python_bindings/python/Func.cpp p::return_internal_reference<1>()); p 543 python_bindings/python/Func.cpp func_class.def("unroll", &func_unroll1<Func>, p::args("self", "var", "factor"), p 544 python_bindings/python/Func.cpp p::return_internal_reference<1>(), p 549 python_bindings/python/Func.cpp .def("unroll", &func_unroll0<Func>, p::args("self", "var"), p 550 python_bindings/python/Func.cpp p::return_internal_reference<1>()); p 552 python_bindings/python/Func.cpp func_class.def("bound", &Func::bound, p::args("self", "var", "min", "extent"), p 553 python_bindings/python/Func.cpp p::return_internal_reference<1>(), p 563 python_bindings/python/Func.cpp func_class.def("tile", &func_tile0<Func>, p::args("self", "x", "y", "xo", "yo", "xi", "yi", "xfactor", "yfactor"), p 564 python_bindings/python/Func.cpp p::return_internal_reference<1>(), p 569 python_bindings/python/Func.cpp func_class.def("tile", &func_tile1<Func>, p::args("self", "x", "y", "xi", "yi", "xfactor", "yfactor"), p 570 python_bindings/python/Func.cpp p::return_internal_reference<1>(), p 573 python_bindings/python/Func.cpp func_class.def("reorder", &func_reorder0<Func, p::tuple>, p::args("self", "vars"), p 574 python_bindings/python/Func.cpp p::return_internal_reference<1>(), p 577 python_bindings/python/Func.cpp .def("reorder", &func_reorder0<Func, p::list>, p::args("self", "vars"), p 578 python_bindings/python/Func.cpp p::return_internal_reference<1>(), p 581 python_bindings/python/Func.cpp .def("reorder", &func_reorder1<Func>, (p::arg("self"), p::arg("v0"), p::arg("v1") = p::object(), p 582 python_bindings/python/Func.cpp p::arg("v2") = p::object(), p::arg("v3") = p::object(), p 583 python_bindings/python/Func.cpp p::arg("v4") = p::object(), p::arg("v5") = p::object()), p 584 python_bindings/python/Func.cpp p::return_internal_reference<1>(), p 588 python_bindings/python/Func.cpp func_class.def("rename", &Func::rename, p::args("self", "old_name", "new_name"), p 589 python_bindings/python/Func.cpp p::return_internal_reference<1>(), p 606 python_bindings/python/Func.cpp func_class.def("reorder_storage", &func_reorder_storage0<Func, p::tuple>, p::args("self", "dims"), p 607 python_bindings/python/Func.cpp p::return_internal_reference<1>(), reorder_storage_doc.c_str()) p 608 python_bindings/python/Func.cpp .def("reorder_storage", &func_reorder_storage0<Func, p::list>, p::args("self", "dims"), p 609 python_bindings/python/Func.cpp p::return_internal_reference<1>(), reorder_storage_doc.c_str()) p 610 python_bindings/python/Func.cpp .def("reorder_storage", &func_reorder_storage1<Func>, (p::arg("self"), p::arg("v0"), p::arg("v1"), p 611 python_bindings/python/Func.cpp p::arg("v2") = p::object(), p::arg("v3") = p::object(), p 612 python_bindings/python/Func.cpp p::arg("v4") = p::object(), p::arg("v5") = p::object()), p 613 python_bindings/python/Func.cpp p::return_internal_reference<1>(), reorder_storage_doc.c_str()); p 615 python_bindings/python/Func.cpp func_class.def("compute_at", &func_compute_at0, p::args("self", "f", "var"), p 616 python_bindings/python/Func.cpp p::return_internal_reference<1>(), p 619 python_bindings/python/Func.cpp .def("compute_at", &func_compute_at1, p::args("self", "f", "var"), p 620 python_bindings/python/Func.cpp p::return_internal_reference<1>()); p 622 python_bindings/python/Func.cpp func_class.def("compute_root", &Func::compute_root, p::arg("self"), p 623 python_bindings/python/Func.cpp p::return_internal_reference<1>(), p 626 python_bindings/python/Func.cpp func_class.def("store_at", &func_store_at0, p::args("self", "f", "var"), p 627 python_bindings/python/Func.cpp p::return_internal_reference<1>(), p 633 python_bindings/python/Func.cpp .def("store_at", &func_store_at1, p::args("self", "f", "var"), p 634 python_bindings/python/Func.cpp p::return_internal_reference<1>()); p 636 python_bindings/python/Func.cpp func_class.def("store_root", &Func::store_root, p::arg("self"), p 637 python_bindings/python/Func.cpp p::return_internal_reference<1>(), p 640 python_bindings/python/Func.cpp func_class.def("compute_inline", &Func::compute_inline, p::arg("self"), p 641 python_bindings/python/Func.cpp p::return_internal_reference<1>(), p 647 python_bindings/python/Func.cpp func_class.def("update", &Func::update, (p::arg("self"), p::arg("idx") = 0), p 652 python_bindings/python/Func.cpp func_class.def("function", &Func::function, p::arg("self"), p 655 python_bindings/python/Func.cpp .def("trace_loads", &Func::trace_loads, p::arg("self"), p 656 python_bindings/python/Func.cpp p::return_internal_reference<1>(), p 659 python_bindings/python/Func.cpp .def("trace_stores", &Func::trace_stores, p::arg("self"), p 660 python_bindings/python/Func.cpp p::return_internal_reference<1>(), p 663 python_bindings/python/Func.cpp .def("trace_realizations", &Func::trace_realizations, p::arg("self"), p 664 python_bindings/python/Func.cpp p::return_internal_reference<1>(), p 667 python_bindings/python/Func.cpp func_class.def("specialize", &Func::specialize, p::args("self", "condition"), p 673 python_bindings/python/Func.cpp func_class.def("__repr__", &func_repr, p::arg("self")); p 46 python_bindings/python/Func_Ref.cpp p::class_<FuncTupleElementRef>("FuncTupleElementRef", p 51 python_bindings/python/Func_Ref.cpp p::no_init) p 59 python_bindings/python/Func_Ref.cpp .def("__iadd__", &iadd_func<FuncTupleElementRef &, h::Expr>, p::args("self", "expr"), p 60 python_bindings/python/Func_Ref.cpp p::return_internal_reference<1>(), p 65 python_bindings/python/Func_Ref.cpp .def("__isub__", &isub_func<FuncTupleElementRef &, h::Expr>, p::args("self", "expr"), p 66 python_bindings/python/Func_Ref.cpp p::return_internal_reference<1>(), p 72 python_bindings/python/Func_Ref.cpp .def("__imul__", &imul_func<FuncTupleElementRef &, h::Expr>, p::args("self", "expr"), p 73 python_bindings/python/Func_Ref.cpp p::return_internal_reference<1>(), p 79 python_bindings/python/Func_Ref.cpp .def("__idiv__", &idiv_func<FuncTupleElementRef &, h::Expr>, p::args("self", "expr"), p 80 python_bindings/python/Func_Ref.cpp p::return_internal_reference<1>(), p 110 python_bindings/python/Func_Ref.cpp p::implicitly_convertible<FuncTupleElementRef, h::Expr>(); p 119 python_bindings/python/Func_Ref.cpp p::class_<FuncRef>("FuncRef", p 124 python_bindings/python/Func_Ref.cpp p::no_init) p 136 python_bindings/python/Func_Ref.cpp .def("__iadd__", &iadd_func<FuncRef &, h::Expr>, p::args("self", "expr"), p 137 python_bindings/python/Func_Ref.cpp p::return_internal_reference<1>(), p 142 python_bindings/python/Func_Ref.cpp .def("__isub__", &isub_func<FuncRef &, h::Expr>, p::args("self", "expr"), p 143 python_bindings/python/Func_Ref.cpp p::return_internal_reference<1>(), p 148 python_bindings/python/Func_Ref.cpp .def("__imul__", &imul_func<FuncRef &, h::Expr>, p::args("self", "expr"), p 149 python_bindings/python/Func_Ref.cpp p::return_internal_reference<1>(), p 154 python_bindings/python/Func_Ref.cpp .def("__idiv__", &idiv_func<FuncRef &, h::Expr>, p::args("self", "expr"), p 155 python_bindings/python/Func_Ref.cpp p::return_internal_reference<1>(), p 191 python_bindings/python/Func_Ref.cpp p::implicitly_convertible<FuncRef, h::Expr>(); p 199 python_bindings/python/Func_Ref.cpp p::class_<h::Internal::Function>("InternalFunction", p::no_init); p 24 python_bindings/python/Func_Stage.cpp p::class_<Stage>("Stage", p::no_init) p 27 python_bindings/python/Func_Stage.cpp .def("dump_argument_list", &Stage::dump_argument_list, p::arg("self"), p 31 python_bindings/python/Func_Stage.cpp .def("name", &Stage::name, p::arg("self"), p 32 python_bindings/python/Func_Stage.cpp p::return_value_policy<p::copy_const_reference>(), p 34 python_bindings/python/Func_Stage.cpp .def("allow_race_conditions", &Stage::allow_race_conditions, p::arg("self"), p 35 python_bindings/python/Func_Stage.cpp p::return_internal_reference<1>()); p 41 python_bindings/python/Func_Stage.cpp .def("split", &func_split<Stage>, p::args("self", "old", "outer", "inner", "factor"), p 42 python_bindings/python/Func_Stage.cpp p::return_internal_reference<1>(), p 48 python_bindings/python/Func_Stage.cpp .def("fuse", &Stage::fuse, p::args("self", "inner", "outer", "fused"), p 49 python_bindings/python/Func_Stage.cpp p::return_internal_reference<1>(), p 53 python_bindings/python/Func_Stage.cpp .def("serial", &Stage::serial, p::args("self", "var"), p 54 python_bindings/python/Func_Stage.cpp p::return_internal_reference<1>(), p 57 python_bindings/python/Func_Stage.cpp stage_class.def("parallel", &func_parallel0<Stage>, p::args("self", "var"), p 58 python_bindings/python/Func_Stage.cpp p::return_internal_reference<1>(), p 60 python_bindings/python/Func_Stage.cpp .def("parallel", &func_parallel1<Stage>, p::args("self", "var", "factor"), p 61 python_bindings/python/Func_Stage.cpp p::return_internal_reference<1>()); p 63 python_bindings/python/Func_Stage.cpp stage_class.def("vectorize", &func_vectorize1<Stage>, p::args("self", "var", "factor"), p 64 python_bindings/python/Func_Stage.cpp p::return_internal_reference<1>(), p 70 python_bindings/python/Func_Stage.cpp .def("vectorize", &func_vectorize0<Stage>, p::args("self", "var"), p 71 python_bindings/python/Func_Stage.cpp p::return_internal_reference<1>()); p 73 python_bindings/python/Func_Stage.cpp stage_class.def("unroll", &func_unroll1<Stage>, p::args("self", "var", "factor"), p 74 python_bindings/python/Func_Stage.cpp p::return_internal_reference<1>(), p 79 python_bindings/python/Func_Stage.cpp .def("unroll", &func_unroll0<Stage>, p::args("self", "var"), p 80 python_bindings/python/Func_Stage.cpp p::return_internal_reference<1>()); p 82 python_bindings/python/Func_Stage.cpp stage_class.def("tile", &func_tile0<Stage>, p::args("self", "x", "y", "xo", "yo", "xi", "yi", "xfactor", "yfactor"), p 83 python_bindings/python/Func_Stage.cpp p::return_internal_reference<1>(), p 87 python_bindings/python/Func_Stage.cpp .def("tile", &func_tile1<Stage>, p::args("self", "x", "y", "xi", "yi", "xfactor", "yfactor"), p 88 python_bindings/python/Func_Stage.cpp p::return_internal_reference<1>(), p 91 python_bindings/python/Func_Stage.cpp stage_class.def("reorder", &func_reorder0<Stage, p::tuple>, p::args("self", "vars"), p 92 python_bindings/python/Func_Stage.cpp p::return_internal_reference<1>(), p 95 python_bindings/python/Func_Stage.cpp .def("reorder", &func_reorder0<Stage, p::list>, p::args("self", "vars"), p 96 python_bindings/python/Func_Stage.cpp p::return_internal_reference<1>(), p 99 python_bindings/python/Func_Stage.cpp .def("reorder", &func_reorder1<Stage>, (p::arg("self"), p::arg("v0"), p::arg("v1") = p::object(), p 100 python_bindings/python/Func_Stage.cpp p::arg("v2") = p::object(), p::arg("v3") = p::object(), p 101 python_bindings/python/Func_Stage.cpp p::arg("v4") = p::object(), p::arg("v5") = p::object()), p 102 python_bindings/python/Func_Stage.cpp p::return_internal_reference<1>(), p 106 python_bindings/python/Func_Stage.cpp stage_class.def("rename", &Stage::rename, p::args("self", "old_name", "new_name"), p 107 python_bindings/python/Func_Stage.cpp p::return_internal_reference<1>(), p 110 python_bindings/python/Func_Stage.cpp stage_class.def("specialize", &Stage::specialize, p::args("self", "condition"), p 17 python_bindings/python/Func_VarOrRVar.cpp p::class_<VarOrRVar>("VarOrRVar", p 20 python_bindings/python/Func_VarOrRVar.cpp p::init<std::string, bool>(p::args("self", "n", "r"))) p 21 python_bindings/python/Func_VarOrRVar.cpp .def(p::init<h::Var>(p::args("self", "v"))) p 22 python_bindings/python/Func_VarOrRVar.cpp .def(p::init<h::RVar>(p::args("self", "r"))) p 23 python_bindings/python/Func_VarOrRVar.cpp .def(p::init<h::RDom>(p::args("self", "r"))) p 24 python_bindings/python/Func_VarOrRVar.cpp .def("name", &VarOrRVar::name, p::arg("self"), p::return_value_policy<p::copy_const_reference>()) p 29 python_bindings/python/Func_VarOrRVar.cpp p::implicitly_convertible<h::Var, VarOrRVar>(); p 30 python_bindings/python/Func_VarOrRVar.cpp p::implicitly_convertible<h::RVar, VarOrRVar>(); p 31 python_bindings/python/Func_VarOrRVar.cpp p::implicitly_convertible<h::RDom, VarOrRVar>(); p 11 python_bindings/python/Func_gpu.cpp void defineFuncGpuMethods(p::class_<h::Func> &func_class) { p 15 python_bindings/python/Function.cpp p::class_<ExternFuncArgument>("ExternFuncArgument", p 18 python_bindings/python/Function.cpp p::no_init) p 19 python_bindings/python/Function.cpp .def(p::init<h::Buffer<>>(p::args("self", "b"))) p 20 python_bindings/python/Function.cpp .def(p::init<h::Expr>(p::args("self", "e"))) p 21 python_bindings/python/Function.cpp .def(p::init<int>(p::args("self", "e"))) p 22 python_bindings/python/Function.cpp .def(p::init<float>(p::args("self", "e"))) p 152 python_bindings/python/IROperator.cpp h::Expr print_when0(h::Expr condition, p::tuple values_passed) { p 153 python_bindings/python/IROperator.cpp const size_t num_values = p::len(values_passed); p 158 python_bindings/python/IROperator.cpp p::object o = values_passed[i]; p 159 python_bindings/python/IROperator.cpp p::extract<h::Expr &> expr_extract(o); p 165 python_bindings/python/IROperator.cpp p::object o = values_passed[j]; p 166 python_bindings/python/IROperator.cpp const std::string o_str = p::extract<std::string>(p::str(o)); p 211 python_bindings/python/IROperator.cpp p::def("max", max_exprs, p 212 python_bindings/python/IROperator.cpp p::args("a", "b"), p 218 python_bindings/python/IROperator.cpp p::def("max", max_expr_int, p 219 python_bindings/python/IROperator.cpp p::args("a", "b"), p 226 python_bindings/python/IROperator.cpp p::def("max", max_int_expr, p 227 python_bindings/python/IROperator.cpp p::args("a", "b"), p 234 python_bindings/python/IROperator.cpp p::def("min", min_exprs, p 235 python_bindings/python/IROperator.cpp p::args("a", "b"), p 241 python_bindings/python/IROperator.cpp p::def("min", min_expr_int, p 242 python_bindings/python/IROperator.cpp p::args("a", "b"), p 249 python_bindings/python/IROperator.cpp p::def("min", min_int_expr, p 250 python_bindings/python/IROperator.cpp p::args("a", "b"), p 257 python_bindings/python/IROperator.cpp p::def("clamp", &h::clamp, p 258 python_bindings/python/IROperator.cpp p::args("a", "min_val", "max_val"), p 262 python_bindings/python/IROperator.cpp p::def("abs", &h::abs, p::args("a"), p 268 python_bindings/python/IROperator.cpp p::def("absd", &h::absd, p::args("a", "b"), p 274 python_bindings/python/IROperator.cpp p::def("select", &select0, p::args("condition", "true_value", "false_value"), p 280 python_bindings/python/IROperator.cpp p::def("select", &select1, p::args("c1", "v1", "c2", "v2", "default_val"), p 286 python_bindings/python/IROperator.cpp p::def("select", &select2, p::args( p 292 python_bindings/python/IROperator.cpp p::def("select", &select3, p::args( p 299 python_bindings/python/IROperator.cpp p::def("select", &select4, p::args( p 307 python_bindings/python/IROperator.cpp p::def("select", &select5, p::args( p 316 python_bindings/python/IROperator.cpp p::def("select", &select6, p::args( p 365 python_bindings/python/IROperator.cpp p::def("sin", &h::sin, p::args("x"), p 369 python_bindings/python/IROperator.cpp p::def("asin", &h::asin, p::args("x"), p 373 python_bindings/python/IROperator.cpp p::def("cos", &h::cos, p::args("x"), p 377 python_bindings/python/IROperator.cpp p::def("acos", &h::acos, p::args("x"), p 381 python_bindings/python/IROperator.cpp p::def("tan", &h::tan, p::args("x"), p 385 python_bindings/python/IROperator.cpp p::def("atan", &h::atan, p::args("x"), p 389 python_bindings/python/IROperator.cpp p::def("atan", &h::atan2, p::args("x", "y"), p 393 python_bindings/python/IROperator.cpp p::def("atan2", &h::atan2, p::args("x", "y"), p 399 python_bindings/python/IROperator.cpp p::def("sinh", &h::sinh, p::args("x"), p 403 python_bindings/python/IROperator.cpp p::def("asinh", &h::asinh, p::args("x"), p 407 python_bindings/python/IROperator.cpp p::def("cosh", &h::cosh, p::args("x"), p 411 python_bindings/python/IROperator.cpp p::def("acosh", &h::acosh, p::args("x"), p 415 python_bindings/python/IROperator.cpp p::def("tanh", &h::tanh, p::args("x"), p 419 python_bindings/python/IROperator.cpp p::def("atanh", &h::atanh, p::args("x"), p 424 python_bindings/python/IROperator.cpp p::def("sqrt", &h::sqrt, p::args("x"), p 429 python_bindings/python/IROperator.cpp p::def("hypot", &h::hypot, p::args("x"), p 435 python_bindings/python/IROperator.cpp p::def("exp", &h::exp, p::args("x"), p 444 python_bindings/python/IROperator.cpp p::def("log", &h::log, p::args("x"), p 453 python_bindings/python/IROperator.cpp p::def("pow", &h::pow, p::args("x"), p 461 python_bindings/python/IROperator.cpp p::def("erf", &h::erf, p::args("x"), p 466 python_bindings/python/IROperator.cpp p::def("fast_log", &h::fast_log, p::args("x"), p 471 python_bindings/python/IROperator.cpp p::def("fast_exp", &h::fast_exp, p::args("x"), p 477 python_bindings/python/IROperator.cpp p::def("fast_pow", &h::fast_pow, p::args("x"), p 483 python_bindings/python/IROperator.cpp p::def("fast_inverse", &h::fast_inverse, p::args("x"), p 488 python_bindings/python/IROperator.cpp p::def("fast_inverse_sqrt", &h::fast_inverse_sqrt, p::args("x"), p 493 python_bindings/python/IROperator.cpp p::def("floor", &h::floor, p::args("x"), p 499 python_bindings/python/IROperator.cpp p::def("ceil", &h::ceil, p::args("x"), p 505 python_bindings/python/IROperator.cpp p::def("round", &h::round, p::args("x"), p 511 python_bindings/python/IROperator.cpp p::def("trunc", &h::trunc, p::args("x"), p 517 python_bindings/python/IROperator.cpp p::def("fract", &h::fract, p::args("x"), p 523 python_bindings/python/IROperator.cpp p::def("is_nan", &h::is_nan, p::args("x"), p 527 python_bindings/python/IROperator.cpp p::def("reinterpret", &reinterpret0, p::args("t, e"), p 530 python_bindings/python/IROperator.cpp p::def("cast", &cast0, p::args("t", "e"), p 533 python_bindings/python/IROperator.cpp p::def("print_when", &print_when0, (p::arg("condition"), p::arg("values")), p 536 python_bindings/python/IROperator.cpp p::def("lerp", &h::lerp, p::args("zero_val", "one_val", "weight"), p 576 python_bindings/python/IROperator.cpp p::def("popcount", &h::popcount, p::args("x"), p 579 python_bindings/python/IROperator.cpp p::def("count_leading_zeros", &h::count_leading_zeros, p::args("x"), p 583 python_bindings/python/IROperator.cpp p::def("count_trailing_zeros", &h::count_trailing_zeros, p::args("x"), p 587 python_bindings/python/IROperator.cpp p::def("random_float", &random_float1, p::args("seed"), p 615 python_bindings/python/IROperator.cpp p::def("random_float", &random_float0); // no args p 617 python_bindings/python/IROperator.cpp p::def("random_int", &random_int1, p::args("seed"), p 620 python_bindings/python/IROperator.cpp p::def("random_int", &random_int0); // no args p 622 python_bindings/python/IROperator.cpp p::def("undef", &undef0, p::args("type"), p 641 python_bindings/python/IROperator.cpp p::def("memoize_tag", &memoize_tag0, p::args("result", "cache_key_values"), p 673 python_bindings/python/IROperator.cpp p::def("likely", &h::likely, p::args("e"), p 47 python_bindings/python/Image.cpp h::Expr buffer_call_operator_tuple(h::Buffer<T> &that, p::tuple &args_passed) { p 49 python_bindings/python/Image.cpp for (ssize_t i = 0; i < p::len(args_passed); i++) { p 50 python_bindings/python/Image.cpp expr_args.push_back(p::extract<h::Expr>(args_passed[i])); p 76 python_bindings/python/Image.cpp T buffer_to_setitem_operator4(h::Buffer<T> &that, p::tuple &args_passed, T value) { p 78 python_bindings/python/Image.cpp const size_t args_len = p::len(args_passed); p 80 python_bindings/python/Image.cpp p::object o = args_passed[i]; p 81 python_bindings/python/Image.cpp p::extract<int> int32_extract(o); p 90 python_bindings/python/Image.cpp p::object o = args_passed[j]; p 91 python_bindings/python/Image.cpp const std::string o_str = p::extract<std::string>(p::str(o)); p 170 python_bindings/python/Image.cpp auto call_policies = p::default_call_policies(); p 172 python_bindings/python/Image.cpp return p::make_function(return_type_func, call_policies, p::arg("self"), func_sig()); p 248 python_bindings/python/Image.cpp p::class_<Buffer<T>>( p 257 python_bindings/python/Image.cpp p::init<>(p::arg("self"), "Construct an undefined buffer handle")); p 261 python_bindings/python/Image.cpp .def(p::init<int>( p 262 python_bindings/python/Image.cpp p::args("self", "x"), p 265 python_bindings/python/Image.cpp .def(p::init<int, int>( p 266 python_bindings/python/Image.cpp p::args("self", "x", "y"), p 269 python_bindings/python/Image.cpp .def(p::init<int, int, int>( p 270 python_bindings/python/Image.cpp p::args("self", "x", "y", "z"), p 273 python_bindings/python/Image.cpp .def(p::init<int, int, int, int>( p 274 python_bindings/python/Image.cpp p::args("self", "x", "y", "z", "w"), p 277 python_bindings/python/Image.cpp .def(p::init<h::Realization &>( p 278 python_bindings/python/Image.cpp p::args("self", "r"), p 281 python_bindings/python/Image.cpp .def(p::init<halide_buffer_t>( p 282 python_bindings/python/Image.cpp p::args("self", "b"), p 286 python_bindings/python/Image.cpp .def("__repr__", buffer_repr<T>, p::arg("self")); p 289 python_bindings/python/Image.cpp .def("data", buffer_data<T>, p::arg("self"), p 290 python_bindings/python/Image.cpp p::return_value_policy<p::return_opaque_pointer>(), // not sure this will do what we want p 293 python_bindings/python/Image.cpp .def("copy_to_host", buffer_copy_to_host<T>, p::arg("self"), p 296 python_bindings/python/Image.cpp (p::arg("self"), p::arg("dirty") = true), p 300 python_bindings/python/Image.cpp .def("channels", buffer_channels<T>, p::arg("self"), p 304 python_bindings/python/Image.cpp .def("dimensions", buffer_dimensions<T>, p::arg("self"), p 306 python_bindings/python/Image.cpp .def("stride", buffer_stride<T>, p::args("self", "dim"), p 311 python_bindings/python/Image.cpp .def("extent", buffer_extent<T>, p::args("self", "dim"), p 313 python_bindings/python/Image.cpp .def("min", buffer_min<T>, p::args("self", "dim"), p 320 python_bindings/python/Image.cpp p::args("self", "m0"), p 323 python_bindings/python/Image.cpp p::args("self", "m0", "m1"), p 326 python_bindings/python/Image.cpp p::args("self", "m0", "m1", "m2"), p 329 python_bindings/python/Image.cpp p::args("self", "m0", "m1", "m2", "m3"), p 333 python_bindings/python/Image.cpp .def("width", buffer_width<T>, p::arg("self"), p 337 python_bindings/python/Image.cpp .def("height", buffer_height<T>, p::arg("self"), p 341 python_bindings/python/Image.cpp .def("left", buffer_left<T>, p::arg("self"), p 345 python_bindings/python/Image.cpp .def("right", buffer_right<T>, p::arg("self"), p 349 python_bindings/python/Image.cpp .def("top", buffer_top<T>, p::arg("self"), p 353 python_bindings/python/Image.cpp .def("bottom", buffer_bottom<T>, p::arg("self"), p 364 python_bindings/python/Image.cpp p::args("self", "x"), p 368 python_bindings/python/Image.cpp p::args("self", "x", "y"), p 372 python_bindings/python/Image.cpp p::args("self", "x", "y", "z"), p 375 python_bindings/python/Image.cpp p::args("self", "x", "y", "z", "w"), p 378 python_bindings/python/Image.cpp p::args("self", "tuple"), p 382 python_bindings/python/Image.cpp p::arg("self"), p 385 python_bindings/python/Image.cpp p::args("self", "x"), p 388 python_bindings/python/Image.cpp p::args("self", "x", "y"), p 391 python_bindings/python/Image.cpp p::args("self", "x", "y", "z"), p 394 python_bindings/python/Image.cpp p::args("self", "x", "y", "z", "w"), p 397 python_bindings/python/Image.cpp .def("__setitem__", buffer_to_setitem_operator0<T>, p::args("self", "x", "value"), p 399 python_bindings/python/Image.cpp .def("__setitem__", buffer_to_setitem_operator1<T>, p::args("self", "x", "y", "value"), p 401 python_bindings/python/Image.cpp .def("__setitem__", buffer_to_setitem_operator2<T>, p::args("self", "x", "y", "z", "value"), p 403 python_bindings/python/Image.cpp .def("__setitem__", buffer_to_setitem_operator3<T>, p::args("self", "x", "y", "z", "w", "value"), p 405 python_bindings/python/Image.cpp .def("__setitem__", buffer_to_setitem_operator4<T>, p::args("self", "tuple", "value"), p 409 python_bindings/python/Image.cpp p::implicitly_convertible<Buffer<T>, h::Argument>(); p 414 python_bindings/python/Image.cpp p::object buffer_to_python_object(const h::Buffer<> &im) { p 417 python_bindings/python/Image.cpp p::manage_new_object::apply<h::Buffer<uint8_t> *>::type converter; p 420 python_bindings/python/Image.cpp p::manage_new_object::apply<h::Buffer<uint16_t> *>::type converter; p 423 python_bindings/python/Image.cpp p::manage_new_object::apply<h::Buffer<uint32_t> *>::type converter; p 426 python_bindings/python/Image.cpp p::manage_new_object::apply<h::Buffer<int8_t> *>::type converter; p 429 python_bindings/python/Image.cpp p::manage_new_object::apply<h::Buffer<int16_t> *>::type converter; p 432 python_bindings/python/Image.cpp p::manage_new_object::apply<h::Buffer<int32_t> *>::type converter; p 435 python_bindings/python/Image.cpp p::manage_new_object::apply<h::Buffer<float> *>::type converter; p 438 python_bindings/python/Image.cpp p::manage_new_object::apply<h::Buffer<double> *>::type converter; p 444 python_bindings/python/Image.cpp return p::object(p::handle<>(obj)); p 447 python_bindings/python/Image.cpp h::Buffer<> python_object_to_buffer(p::object obj) { p 448 python_bindings/python/Image.cpp p::extract<h::Buffer<uint8_t>> buffer_extract_uint8(obj); p 449 python_bindings/python/Image.cpp p::extract<h::Buffer<uint16_t>> buffer_extract_uint16(obj); p 450 python_bindings/python/Image.cpp p::extract<h::Buffer<uint32_t>> buffer_extract_uint32(obj); p 451 python_bindings/python/Image.cpp p::extract<h::Buffer<int8_t>> buffer_extract_int8(obj); p 452 python_bindings/python/Image.cpp p::extract<h::Buffer<int16_t>> buffer_extract_int16(obj); p 453 python_bindings/python/Image.cpp p::extract<h::Buffer<int32_t>> buffer_extract_int32(obj); p 454 python_bindings/python/Image.cpp p::extract<h::Buffer<float>> buffer_extract_float(obj); p 455 python_bindings/python/Image.cpp p::extract<h::Buffer<double>> buffer_extract_double(obj); p 508 python_bindings/python/Image.cpp p::object ndarray_to_buffer(bn::ndarray &array) { p 523 python_bindings/python/Image.cpp bn::ndarray buffer_to_ndarray(p::object buffer_object) { p 549 python_bindings/python/Image.cpp static p::object create_buffer_object(Args... args) { p 551 python_bindings/python/Image.cpp typedef typename p::manage_new_object::apply<BufferType *>::type converter_t; p 554 python_bindings/python/Image.cpp return p::object(p::handle<>(obj)); p 558 python_bindings/python/Image.cpp static p::object create_buffer_impl(h::Type t, Args... args) { p 568 python_bindings/python/Image.cpp return p::object(); p 571 python_bindings/python/Image.cpp static p::object create_buffer0(h::Type type) { p 575 python_bindings/python/Image.cpp static p::object create_buffer1(h::Type type, int x) { p 579 python_bindings/python/Image.cpp static p::object create_buffer2(h::Type type, int x, int y) { p 583 python_bindings/python/Image.cpp static p::object create_buffer3(h::Type type, int x, int y, int z) { p 587 python_bindings/python/Image.cpp static p::object create_buffer4(h::Type type, int x, int y, int z, int w) { p 591 python_bindings/python/Image.cpp static p::object create_buffer_from_realization(h::Type type, h::Realization &r) { p 595 python_bindings/python/Image.cpp static p::object create_buffer_from_buffer(halide_buffer_t b) { p 613 python_bindings/python/Image.cpp p::def("Buffer", &BufferFactory::create_buffer0, p 614 python_bindings/python/Image.cpp p::args("type"), p 616 python_bindings/python/Image.cpp p::def("Buffer", &BufferFactory::create_buffer1, p 617 python_bindings/python/Image.cpp p::args("type", "x"), p 619 python_bindings/python/Image.cpp p::def("Buffer", &BufferFactory::create_buffer2, p 620 python_bindings/python/Image.cpp p::args("type", "x", "y"), p 622 python_bindings/python/Image.cpp p::def("Buffer", &BufferFactory::create_buffer3, p 623 python_bindings/python/Image.cpp p::args("type", "x", "y", "z"), p 625 python_bindings/python/Image.cpp p::def("Buffer", &BufferFactory::create_buffer4, p 626 python_bindings/python/Image.cpp p::args("type", "x", "y", "z", "w"), p 629 python_bindings/python/Image.cpp p::def("Buffer", &BufferFactory::create_buffer_from_realization, p 630 python_bindings/python/Image.cpp p::args("type", "r"), p 631 python_bindings/python/Image.cpp p::with_custodian_and_ward_postcall<0, 2>(), // the realization reference count is increased p 634 python_bindings/python/Image.cpp p::def("Buffer", &BufferFactory::create_buffer_from_buffer, p 635 python_bindings/python/Image.cpp p::args("b"), p 636 python_bindings/python/Image.cpp p::with_custodian_and_ward_postcall<0, 2>(), // the buffer_t reference count is increased p 642 python_bindings/python/Image.cpp p::def("ndarray_to_buffer", &ndarray_to_buffer, p 643 python_bindings/python/Image.cpp p::args("array"), p 644 python_bindings/python/Image.cpp p::with_custodian_and_ward_postcall<0, 1>(), // the array reference count is increased p 649 python_bindings/python/Image.cpp p::def("Buffer", &ndarray_to_buffer, p 650 python_bindings/python/Image.cpp p::args("array"), p 651 python_bindings/python/Image.cpp p::with_custodian_and_ward_postcall<0, 1>(), // the array reference count is increased p 656 python_bindings/python/Image.cpp p::def("buffer_to_ndarray", &buffer_to_ndarray, p 657 python_bindings/python/Image.cpp p::args("buffer"), p 658 python_bindings/python/Image.cpp p::with_custodian_and_ward_postcall<0, 1>(), // the buffer reference count is increased p 47 python_bindings/python/InlineReductions.cpp p::object argmin0(h::Expr e, const std::string name) { p 51 python_bindings/python/InlineReductions.cpp p::object argmin1(h::RDom r, h::Expr e, const std::string name) { p 55 python_bindings/python/InlineReductions.cpp p::object argmax0(h::Expr e, const std::string name) { p 59 python_bindings/python/InlineReductions.cpp p::object argmax1(h::RDom r, h::Expr e, const std::string name) { p 66 python_bindings/python/InlineReductions.cpp p::def("sum", &sum0, (p::arg("e"), p::arg("name") = "sum"), p 68 python_bindings/python/InlineReductions.cpp p::def("sum", &sum1, (p::arg("r"), p::arg("e"), p::arg("name") = "sum"), p 71 python_bindings/python/InlineReductions.cpp p::def("product", &product0, (p::arg("e"), p::arg("name") = "product"), p 73 python_bindings/python/InlineReductions.cpp p::def("product", &product1, (p::arg("r"), p::arg("e"), p::arg("name") = "product"), p 76 python_bindings/python/InlineReductions.cpp p::def("maximum", &maximum0, (p::arg("e"), p::arg("name") = "maximum"), p 78 python_bindings/python/InlineReductions.cpp p::def("maximum", &maximum1, (p::arg("r"), p::arg("e"), p::arg("name") = "maximum"), p 81 python_bindings/python/InlineReductions.cpp p::def("minimum", &minimum0, (p::arg("e"), p::arg("name") = "minimum"), p 83 python_bindings/python/InlineReductions.cpp p::def("minimum", &minimum1, (p::arg("r"), p::arg("e"), p::arg("name") = "minimum"), p 86 python_bindings/python/InlineReductions.cpp p::def("argmin", &argmin0, (p::arg("e"), p::arg("name") = "argmin"), p 88 python_bindings/python/InlineReductions.cpp p::def("argmin", &argmin1, (p::arg("r"), p::arg("e"), p::arg("name") = "argmin"), p 91 python_bindings/python/InlineReductions.cpp p::def("argmax", &argmax0, (p::arg("e"), p::arg("name") = "argmax"), p 93 python_bindings/python/InlineReductions.cpp p::def("argmax", &argmax1, (p::arg("r"), p::arg("e"), p::arg("name") = "argmax"), p 40 python_bindings/python/Lambda.cpp p::def("lambda0D", &lambda0D, p::arg("e"), p 45 python_bindings/python/Lambda.cpp p::def("lambda1D", &lambda1D, p::args("x", "e"), p 51 python_bindings/python/Lambda.cpp p::def("lambda2D", &lambda2D, p::args("x", "y", "e"), p 57 python_bindings/python/Lambda.cpp p::def("lambda3D", &lambda3D, p::args("x", "y", "z", "e"), p 63 python_bindings/python/Lambda.cpp p::def("lambda4D", &lambda4D, p::args("x", "y", "z", "w", "e"), p 69 python_bindings/python/Lambda.cpp p::def("lambda5D", &lambda5D, p::args("x", "y", "z", "w", "v", "e"), p 19 python_bindings/python/Param.cpp h::Expr imageparam_to_expr_operator0(h::ImageParam &that, p::tuple args_passed) { p 23 python_bindings/python/Param.cpp const size_t args_len = p::len(args_passed); p 25 python_bindings/python/Param.cpp expr_args.push_back(p::extract<h::Expr>(args_passed[i])); p 71 python_bindings/python/Param.cpp p::class_<ImageParam>("ImageParam", p 78 python_bindings/python/Param.cpp p::init<h::Type, int, std::string>(p::args("self", "t", "dims", "name"))) p 79 python_bindings/python/Param.cpp .def(p::init<h::Type, int>(p::args("self", "t", "dims"))) p 80 python_bindings/python/Param.cpp .def("name", &ImageParam::name, p::arg("self"), p 81 python_bindings/python/Param.cpp p::return_value_policy<p::copy_const_reference>(), p 84 python_bindings/python/Param.cpp .def("dimensions", &ImageParam::dimensions, p::arg("self"), p 86 python_bindings/python/Param.cpp .def("channels", &ImageParam::channels, p::arg("self"), p 90 python_bindings/python/Param.cpp .def("width", &ImageParam::width, p::arg("self"), p 93 python_bindings/python/Param.cpp .def("height", &ImageParam::height, p::arg("self"), p 97 python_bindings/python/Param.cpp .def("left", &ImageParam::left, p::arg("self"), p 100 python_bindings/python/Param.cpp .def("right", &ImageParam::right, p::arg("self"), p 103 python_bindings/python/Param.cpp .def("top", &ImageParam::top, p::arg("self"), p 106 python_bindings/python/Param.cpp .def("bottom", &ImageParam::bottom, p::arg("self"), p 110 python_bindings/python/Param.cpp .def("set", &image_param_set<uint8_t>, p::args("self", "im"), p 112 python_bindings/python/Param.cpp .def("set", &image_param_set<uint16_t>, p::args("self", "im"), p 114 python_bindings/python/Param.cpp .def("set", &image_param_set<uint32_t>, p::args("self", "im"), p 116 python_bindings/python/Param.cpp .def("set", &image_param_set<int8_t>, p::args("self", "im"), p 118 python_bindings/python/Param.cpp .def("set", &image_param_set<int16_t>, p::args("self", "im"), p 120 python_bindings/python/Param.cpp .def("set", &image_param_set<int32_t>, p::args("self", "im"), p 122 python_bindings/python/Param.cpp .def("set", &image_param_set<float>, p::args("self", "im"), p 124 python_bindings/python/Param.cpp .def("set", &image_param_set<double>, p::args("self", "im"), p 126 python_bindings/python/Param.cpp .def("get", &image_param_get, p::arg("self"), p 128 python_bindings/python/Param.cpp .def("__getitem__", &imageparam_to_expr_operator0, p::args("self", "tuple"), p 133 python_bindings/python/Param.cpp .def("__getitem__", &imageparam_to_expr_operator1, p::args("self", "expr"), p 139 python_bindings/python/Param.cpp .def("__repr__", &imageparam_repr, p::arg("self")); p 141 python_bindings/python/Param.cpp p::implicitly_convertible<ImageParam, h::Argument>(); p 298 python_bindings/python/Param.cpp p::class_<Param<T>>(("Param" + suffix).c_str(), p 303 python_bindings/python/Param.cpp p::init<>( p 304 python_bindings/python/Param.cpp p::arg("self"), p 307 python_bindings/python/Param.cpp .def(p::init<T>( p 308 python_bindings/python/Param.cpp p::args("self", "val"), p 311 python_bindings/python/Param.cpp .def(p::init<std::string>( p 312 python_bindings/python/Param.cpp p::args("self", "name"), "Construct a scalar parameter of type T with the given name.")) p 313 python_bindings/python/Param.cpp .def(p::init<std::string, T>( p 314 python_bindings/python/Param.cpp p::args("self", "name", "val"), p 317 python_bindings/python/Param.cpp .def(p::init<T, h::Expr, h::Expr>( p 318 python_bindings/python/Param.cpp p::args("self", "val", "min", "max"), p 321 python_bindings/python/Param.cpp .def(p::init<std::string, T, h::Expr, h::Expr>( p 322 python_bindings/python/Param.cpp p::args("self", "name", "val", "min", "max"), p 326 python_bindings/python/Param.cpp .def("name", &Param<T>::name, p::arg("self"), p 327 python_bindings/python/Param.cpp p::return_value_policy<p::copy_const_reference>(), p 329 python_bindings/python/Param.cpp .def("is_explicit_name", &Param<T>::is_explicit_name, p::arg("self"), p 332 python_bindings/python/Param.cpp .def("get", &Param<T>::get, p::arg("self"), p 334 python_bindings/python/Param.cpp .def("set", &Param<T>::set, p::args("self", "val"), p 340 python_bindings/python/Param.cpp .def("type", &Param<T>::type, p::arg("self"), p 343 python_bindings/python/Param.cpp .def("set_range", &Param<T>::set_range, p::args("self", "min", "max"), p 346 python_bindings/python/Param.cpp .def("set_min_value", &Param<T>::set_min_value, p::args("self", "min"), p 349 python_bindings/python/Param.cpp .def("set_max_value", &Param<T>::set_max_value, p::args("self", "max"), p 352 python_bindings/python/Param.cpp .def("get_min_value", &Param<T>::get_min_value, p::arg("self")) p 353 python_bindings/python/Param.cpp .def("get_max_value", &Param<T>::get_max_value, p::arg("self")) p 355 python_bindings/python/Param.cpp .def("expr", ¶m_as_expr<T>, p::arg("self"), p 372 python_bindings/python/Param.cpp .def("__repr__", ¶m_repr<T>, p::arg("self")); p 374 python_bindings/python/Param.cpp p::implicitly_convertible<Param<T>, h::Argument>(); p 376 python_bindings/python/Param.cpp p::implicitly_convertible<Param<T>, h::Expr>(); p 398 python_bindings/python/Param.cpp p::object create_param_object(Args... args) { p 400 python_bindings/python/Param.cpp typedef typename p::manage_new_object::apply<ParamType *>::type converter_t; p 403 python_bindings/python/Param.cpp return p::object(p::handle<>(obj)); p 410 python_bindings/python/Param.cpp p::object create_param0_impl(h::Type type, std::string name) { p 423 python_bindings/python/Param.cpp p::object create_param0_impl<end_of_recursion_t>(h::Type type, std::string /*name*/) { // end of recursion, did not find a matching type p 426 python_bindings/python/Param.cpp return p::object(); p 504 python_bindings/python/Param.cpp p::object operator()(h::Type type, p::object val, Args... args) { p 507 python_bindings/python/Param.cpp p::extract<pixel_t> val_extract(val); p 513 python_bindings/python/Param.cpp const std::string val_str = p::extract<std::string>(p::str(val)); p 525 python_bindings/python/Param.cpp p::object call_create_param_object(T true_val) { p 530 python_bindings/python/Param.cpp p::object call_create_param_object(T true_val, std::string name) { p 535 python_bindings/python/Param.cpp p::object call_create_param_object(T true_val, std::string name, h::Expr min, h::Expr max) { p 540 python_bindings/python/Param.cpp p::object call_create_param_object(T true_val, h::Expr min, h::Expr max) { p 554 python_bindings/python/Param.cpp p::object operator()(h::Type type, p::object val, Args... args) { p 558 python_bindings/python/Param.cpp return p::object(); p 563 python_bindings/python/Param.cpp static p::object create_param0(h::Type type) { p 570 python_bindings/python/Param.cpp static p::object create_param1(h::Type type, std::string name) { p 577 python_bindings/python/Param.cpp static p::object create_param2(h::Type type, p::object val) { p 581 python_bindings/python/Param.cpp static p::object create_param3(h::Type type, std::string name, p::object val) { p 585 python_bindings/python/Param.cpp static p::object create_param4(h::Type type, p::object val, h::Expr min, h::Expr max) { p 589 python_bindings/python/Param.cpp static p::object create_param5(h::Type type, std::string name, p::object val, h::Expr min, h::Expr max) { p 611 python_bindings/python/Param.cpp p::def("Param", &ParamFactory::create_param5, p::args("type", "name", "val", "min", "max"), p 614 python_bindings/python/Param.cpp p::def("Param", &ParamFactory::create_param4, p::args("type", "val", "min", "max"), p 617 python_bindings/python/Param.cpp p::def("Param", &ParamFactory::create_param3, p::args("type", "name", "val"), p 620 python_bindings/python/Param.cpp p::def("Param", &ParamFactory::create_param2, p::args("type", "val"), p 623 python_bindings/python/Param.cpp p::def("Param", &ParamFactory::create_param1, p::args("type", "name"), p 625 python_bindings/python/Param.cpp p::def("Param", &ParamFactory::create_param0, p::args("type"), p 630 python_bindings/python/Param.cpp p::def("user_context_value", &h::user_context_value, p 17 python_bindings/python/RDom.cpp auto rvar_class = p::class_<RVar>("RVar", p 23 python_bindings/python/RDom.cpp p::init<>(p::args("self"), "An empty reduction variable.")) p 24 python_bindings/python/RDom.cpp .def(p::init<std::string>(p::args("self", "name"), "Construct an RVar with the given name")) p 26 python_bindings/python/RDom.cpp .def(p::init<h::Internal::ReductionDomain, int>( p 27 python_bindings/python/RDom.cpp p::args("self", "domain", "index"), p 31 python_bindings/python/RDom.cpp .def("min", &RVar::min, p::arg("self"), p 33 python_bindings/python/RDom.cpp .def("extent", &RVar::extent, p::arg("self"), p 37 python_bindings/python/RDom.cpp .def("domain", &RVar::domain, p::arg("self"), p 40 python_bindings/python/RDom.cpp .def("name", &RVar::name, p::arg("self"), p 41 python_bindings/python/RDom.cpp p::return_value_policy<p::copy_const_reference>(), p 44 python_bindings/python/RDom.cpp p::implicitly_convertible<RVar, h::Expr>(); p 52 python_bindings/python/RDom.cpp h::RDom *RDom_constructor0(p::tuple args, std::string name = "") { p 53 python_bindings/python/RDom.cpp const size_t args_len = p::len(args); p 61 python_bindings/python/RDom.cpp p::object o = args[i]; p 62 python_bindings/python/RDom.cpp p::extract<h::Expr> expr_extract(o); p 68 python_bindings/python/RDom.cpp p::object o = args[j]; p 69 python_bindings/python/RDom.cpp const std::string o_str = p::extract<std::string>(p::str(o)); p 131 python_bindings/python/RDom.cpp p::class_<h::Internal::ReductionDomain>("_ReductionDomain", p::no_init); p 133 python_bindings/python/RDom.cpp auto rdom_class = p::class_<RDom>("RDom", p 146 python_bindings/python/RDom.cpp p::init<>(p::arg("self"), "Construct an undefined reduction domain.")) p 147 python_bindings/python/RDom.cpp .def(p::init<h::Buffer<>>(p::args("self", "buffer"), p 151 python_bindings/python/RDom.cpp .def(p::init<h::ImageParam>(p::args("self", "image_param"), p 155 python_bindings/python/RDom.cpp .def(p::init<h::Internal::ReductionDomain>( p 156 python_bindings/python/RDom.cpp p::args("self", "domain"), p 159 python_bindings/python/RDom.cpp p::make_constructor(&RDom_constructor0, p::default_call_policies(), p 160 python_bindings/python/RDom.cpp (p::arg("ranges"), p::arg("name") = "")), p 164 python_bindings/python/RDom.cpp p::make_constructor(&RDom_constructor1, p::default_call_policies(), p 165 python_bindings/python/RDom.cpp (p::args("min0", "extent0"), p 166 python_bindings/python/RDom.cpp p::arg("name") = "")), p 170 python_bindings/python/RDom.cpp p::make_constructor(&RDom_constructor2, p::default_call_policies(), p 171 python_bindings/python/RDom.cpp (p::args("min0", "extent0", "min1", "extent1"), p 172 python_bindings/python/RDom.cpp p::arg("name") = "")), p 176 python_bindings/python/RDom.cpp p::make_constructor(&RDom_constructor3, p::default_call_policies(), p 177 python_bindings/python/RDom.cpp (p::args("min0", "extent0", "min1", "extent1", p 179 python_bindings/python/RDom.cpp p::arg("name") = "")), p 183 python_bindings/python/RDom.cpp p::make_constructor(&RDom_constructor4, p::default_call_policies(), p 184 python_bindings/python/RDom.cpp (p::args("min0", "extent0", "min1", "extent1", p 186 python_bindings/python/RDom.cpp p::arg("name") = "")), p 190 python_bindings/python/RDom.cpp .def("domain", &RDom::domain, p::arg("self"), p 192 python_bindings/python/RDom.cpp .def("defined", &RDom::defined, p::arg("self"), p 194 python_bindings/python/RDom.cpp .def("same_as", &RDom::same_as, p::args("self", "other"), p 196 python_bindings/python/RDom.cpp .def("dimensions", &RDom::dimensions, p::arg("self"), p 198 python_bindings/python/RDom.cpp .def("where", &RDom::where, p::args("self", "predicate"), p 227 python_bindings/python/RDom.cpp p::implicitly_convertible<RDom, h::Expr>(); p 228 python_bindings/python/RDom.cpp p::implicitly_convertible<RDom, h::RVar>(); p 16 python_bindings/python/Target.cpp void target_set_features(h::Target &t, p::list features, bool value) { p 25 python_bindings/python/Target.cpp p::class_<Target>("Target", p 27 python_bindings/python/Target.cpp p::init<>()) p 31 python_bindings/python/Target.cpp .def(p::self == p::self) p 32 python_bindings/python/Target.cpp .def(p::self != p::self) p 39 python_bindings/python/Target.cpp .def("has_gpu_feature", &Target::has_gpu_feature, p::arg("self"), p 45 python_bindings/python/Target.cpp .def("to_string", &Target::to_string, p::arg("self"), p 56 python_bindings/python/Target.cpp (p::arg("self"), p::arg("f"), p::arg("value") = true)) p 58 python_bindings/python/Target.cpp (p::arg("self"), p::arg("features_to_set"), p::arg("value") = true)) p 64 python_bindings/python/Target.cpp p::enum_<Target::OS>("TargetOS", p 75 python_bindings/python/Target.cpp p::enum_<Target::Arch>("TargetArch", p 85 python_bindings/python/Target.cpp p::enum_<Target::Feature>("TargetFeature", p 123 python_bindings/python/Target.cpp p::def("get_host_target", &h::get_host_target, p 126 python_bindings/python/Target.cpp p::def("get_target_from_environment", &h::get_target_from_environment, p 130 python_bindings/python/Target.cpp p::def("get_jit_target_from_environment", &h::get_jit_target_from_environment, p 57 python_bindings/python/Type.cpp p::class_<Type>("Type", p 59 python_bindings/python/Type.cpp p::no_init) p 60 python_bindings/python/Type.cpp .def(p::init<halide_type_code_t, int, int>(p::args("code", "bits", "lanes"))) p 61 python_bindings/python/Type.cpp .def(p::init<h::Type>(p::args("that"), "Copy constructor")) p 69 python_bindings/python/Type.cpp .def("is_bool", &Type::is_bool, p::arg("self"), p 71 python_bindings/python/Type.cpp .def("is_vector", &Type::is_vector, p::arg("self"), p 73 python_bindings/python/Type.cpp .def("is_scalar", &Type::is_scalar, p::arg("self"), p 75 python_bindings/python/Type.cpp .def("is_float", &Type::is_float, p::arg("self"), p 77 python_bindings/python/Type.cpp .def("is_int", &Type::is_int, p::arg("self"), p 79 python_bindings/python/Type.cpp .def("is_uint", &Type::is_uint, p::arg("self"), p 81 python_bindings/python/Type.cpp .def("is_handle", &Type::is_handle, p::arg("self"), p 83 python_bindings/python/Type.cpp .def(p::self == p::self) p 84 python_bindings/python/Type.cpp .def(p::self != p::self) p 85 python_bindings/python/Type.cpp .def("with_lanes", &Type::with_lanes, p::args("self", "w"), p 87 python_bindings/python/Type.cpp .def("with_bits", &Type::with_bits, p::args("self", "w"), p 89 python_bindings/python/Type.cpp .def("element_of", &Type::element_of, p::arg("self"), p 91 python_bindings/python/Type.cpp .def("can_represent", can_represent_other_type, p::arg("other"), p 93 python_bindings/python/Type.cpp .def("max", &Type::max, p::arg("self"), p 95 python_bindings/python/Type.cpp .def("min", &Type::min, p::arg("self"), p 97 python_bindings/python/Type.cpp .def("__repr__", &type_repr, p::arg("self"), p 100 python_bindings/python/Type.cpp p::def("Int", h::Int, p 101 python_bindings/python/Type.cpp (p::arg("bits"), p::arg("lanes") = 1), p 104 python_bindings/python/Type.cpp p::def("UInt", h::UInt, p 105 python_bindings/python/Type.cpp (p::arg("bits"), p::arg("lanes") = 1), p 108 python_bindings/python/Type.cpp p::def("Float", h::Float, p 109 python_bindings/python/Type.cpp (p::arg("bits"), p::arg("lanes") = 1), p 112 python_bindings/python/Type.cpp p::def("Bool", h::Bool, p 113 python_bindings/python/Type.cpp (p::arg("lanes") = 1), p 116 python_bindings/python/Type.cpp p::def("Handle", make_handle, p 117 python_bindings/python/Type.cpp (p::arg("lanes") = 1), p 54 python_bindings/python/Var.cpp auto var_class = p::class_<Var>("Var", p 63 python_bindings/python/Var.cpp p::init<std::string>(p::args("self", "name"))) p 64 python_bindings/python/Var.cpp .def(p::init<>(p::arg("self"))) p 66 python_bindings/python/Var.cpp .def("name", &Var::name, p::arg("self"), p 67 python_bindings/python/Var.cpp p::return_value_policy<p::copy_const_reference>(), p 69 python_bindings/python/Var.cpp .def("same_as", &Var::same_as, p::args("self", "other"), "Test if two Vars are the same.") p 70 python_bindings/python/Var.cpp .def("__eq__", &Var::same_as, p::args("self", "other"), "Test if two Vars are the same.") p 73 python_bindings/python/Var.cpp .def("implicit", &Var::implicit, p::arg("n"), p 83 python_bindings/python/Var.cpp .def("is_implicit", &var_is_implicit0, p::arg("self"), p 85 python_bindings/python/Var.cpp .def("name_is_implicit", &var_is_implicit1, p::arg("name"), p 89 python_bindings/python/Var.cpp .def("implicit_index", &var_implicit_index0, p::arg("self"), p 93 python_bindings/python/Var.cpp .def("name_implicit_index", &var_implicit_index1, p::arg("name"), p 99 python_bindings/python/Var.cpp .def("is_placeholder", &var_is_placeholder0, p::arg("self"), p 101 python_bindings/python/Var.cpp .def("name_is_placeholder", &var_is_placeholder1, p::arg("name"), p 105 python_bindings/python/Var.cpp .def("expr", &var_as_expr, p::arg("self"), //operator Expr() const p 119 python_bindings/python/Var.cpp .def("__repr__", &var_repr, p::arg("self")); p 125 python_bindings/python/Var.cpp p::implicitly_convertible<Var, h::Expr>(); p 62 src/AddParameterChecks.cpp ParamAssert p = { p 67 src/AddParameterChecks.cpp asserts.push_back(p); p 72 src/AddParameterChecks.cpp ParamAssert p = { p 77 src/AddParameterChecks.cpp asserts.push_back(p); p 99 src/AddParameterChecks.cpp ParamAssert p = asserts[i]; p 101 src/AddParameterChecks.cpp Type wider = p.value.type().with_bits(64); p 102 src/AddParameterChecks.cpp p.limit_value = cast(wider, p.limit_value); p 103 src/AddParameterChecks.cpp p.value = cast(wider, p.value); p 107 src/AddParameterChecks.cpp if (p.condition.as<LE>()) { p 110 src/AddParameterChecks.cpp internal_assert(p.condition.as<GE>()); p 124 src/AddParameterChecks.cpp {p.param_name, p.value, p.limit_value}, p 127 src/AddParameterChecks.cpp s = Block::make(AssertStmt::make(p.condition, error), s); p 369 src/AssociativeOpsTable.cpp for (const auto &p : table) { p 370 src/AssociativeOpsTable.cpp debug(7) << p; p 77 src/Associativity.h AssociativeOp(const AssociativePattern &p, const std::vector<Replacement> &xs, p 79 src/Associativity.h : pattern(p), xs(xs), ys(ys), is_associative(is_associative) {} p 508 src/BoundsInference.cpp Parameter p = args[j].image_param; p 510 src/BoundsInference.cpp string name = args[j].is_image_param() ? p.name() : b.name(); p 511 src/BoundsInference.cpp int dims = args[j].is_image_param() ? p.dimensions() : b.dimensions(); p 527 src/BoundsInference.cpp Expr buf = Variable::make(type_of<struct halide_buffer_t *>(), query_name, b, p, ReductionDomain()); p 981 src/BoundsInference.cpp void visit(const ProducerConsumer *p) { p 982 src/BoundsInference.cpp in_pipeline.insert(p->name); p 983 src/BoundsInference.cpp IRMutator::visit(p); p 984 src/BoundsInference.cpp in_pipeline.erase(p->name); p 985 src/BoundsInference.cpp inner_productions.insert(p->name); p 66 src/CanonicalizeGPUVars.cpp CountGPUBlocksThreads(const string &p) : prefix(p), nblocks(0), nthreads(0) {} p 73 src/CodeGen_ARM.cpp Pattern p("", "", intrin_lanes, Expr(), Pattern::NarrowArgs); p 77 src/CodeGen_ARM.cpp p.intrin32 = "llvm.arm.neon.vrhadds" + t_str; p 78 src/CodeGen_ARM.cpp p.intrin64 = "llvm.aarch64.neon.srhadd" + t_str; p 80 src/CodeGen_ARM.cpp p.intrin32 = "llvm.arm.neon.vrhaddu" + t_str; p 81 src/CodeGen_ARM.cpp p.intrin64 = "llvm.aarch64.neon.urhadd" + t_str; p 84 src/CodeGen_ARM.cpp p.pattern = cast(t, (w_vector + w_vector + 1)/2); p 85 src/CodeGen_ARM.cpp casts.push_back(p); p 86 src/CodeGen_ARM.cpp p.pattern = cast(t, (w_vector + (w_vector + 1))/2); p 87 src/CodeGen_ARM.cpp casts.push_back(p); p 88 src/CodeGen_ARM.cpp p.pattern = cast(t, ((w_vector + 1) + w_vector)/2); p 89 src/CodeGen_ARM.cpp casts.push_back(p); p 93 src/CodeGen_ARM.cpp p.intrin32 = "llvm.arm.neon.vhadds" + t_str; p 94 src/CodeGen_ARM.cpp p.intrin64 = "llvm.aarch64.neon.shadd" + t_str; p 96 src/CodeGen_ARM.cpp p.intrin32 = "llvm.arm.neon.vhaddu" + t_str; p 97 src/CodeGen_ARM.cpp p.intrin64 = "llvm.aarch64.neon.uhadd" + t_str; p 99 src/CodeGen_ARM.cpp p.pattern = cast(t, (w_vector + w_vector)/2); p 100 src/CodeGen_ARM.cpp casts.push_back(p); p 104 src/CodeGen_ARM.cpp p.intrin32 = "llvm.arm.neon.vhsubs" + t_str; p 105 src/CodeGen_ARM.cpp p.intrin64 = "llvm.aarch64.neon.shsub" + t_str; p 107 src/CodeGen_ARM.cpp p.intrin32 = "llvm.arm.neon.vhsubu" + t_str; p 108 src/CodeGen_ARM.cpp p.intrin64 = "llvm.aarch64.neon.uhsub" + t_str; p 110 src/CodeGen_ARM.cpp p.pattern = cast(t, (w_vector - w_vector)/2); p 111 src/CodeGen_ARM.cpp casts.push_back(p); p 115 src/CodeGen_ARM.cpp p.intrin32 = "llvm.arm.neon.vqadds" + t_str; p 116 src/CodeGen_ARM.cpp p.intrin64 = "llvm.aarch64.neon.sqadd" + t_str; p 118 src/CodeGen_ARM.cpp p.intrin32 = "llvm.arm.neon.vqaddu" + t_str; p 119 src/CodeGen_ARM.cpp p.intrin64 = "llvm.aarch64.neon.uqadd" + t_str; p 121 src/CodeGen_ARM.cpp p.pattern = cast(t, clamp(w_vector + w_vector, tmin, tmax)); p 122 src/CodeGen_ARM.cpp casts.push_back(p); p 126 src/CodeGen_ARM.cpp p.pattern = cast(t, min(w_vector + w_vector, tmax)); p 127 src/CodeGen_ARM.cpp casts.push_back(p); p 133 src/CodeGen_ARM.cpp p.intrin32 = "llvm.arm.neon.vqsubs" + t_str; p 134 src/CodeGen_ARM.cpp p.intrin64 = "llvm.aarch64.neon.sqsub" + t_str; p 136 src/CodeGen_ARM.cpp p.intrin32 = "llvm.arm.neon.vqsubu" + t_str; p 137 src/CodeGen_ARM.cpp p.intrin64 = "llvm.aarch64.neon.uqsub" + t_str; p 139 src/CodeGen_ARM.cpp p.pattern = cast(t, clamp(ws_vector - ws_vector, tsmin, tsmax)); p 140 src/CodeGen_ARM.cpp casts.push_back(p); p 144 src/CodeGen_ARM.cpp p.pattern = cast(t, max(ws_vector - ws_vector, 0)); p 145 src/CodeGen_ARM.cpp casts.push_back(p); p 231 src/CodeGen_ARM.cpp Value *CodeGen_ARM::call_pattern(const Pattern &p, Type t, const vector<Expr> &args) { p 233 src/CodeGen_ARM.cpp return call_intrin(t, p.intrin_lanes, p.intrin32, args); p 235 src/CodeGen_ARM.cpp return call_intrin(t, p.intrin_lanes, p.intrin64, args); p 239 src/CodeGen_ARM.cpp Value *CodeGen_ARM::call_pattern(const Pattern &p, llvm::Type *t, const vector<llvm::Value *> &args) { p 241 src/CodeGen_ARM.cpp return call_intrin(t, p.intrin_lanes, p.intrin32, args); p 243 src/CodeGen_ARM.cpp return call_intrin(t, p.intrin_lanes, p.intrin64, args); p 53 src/CodeGen_ARM.h Pattern(const std::string &i32, const std::string &i64, int l, Expr p, PatternType t = Simple) : p 56 src/CodeGen_ARM.h intrin_lanes(l), pattern(p), type(t) {} p 63 src/CodeGen_ARM.h llvm::Value *call_pattern(const Pattern &p, Type t, const std::vector<Expr> &args); p 64 src/CodeGen_ARM.h llvm::Value *call_pattern(const Pattern &p, llvm::Type *t, const std::vector<llvm::Value *> &args); p 1387 src/CodeGen_Hexagon.cpp Expr p = Call::make(ty, "halide.hexagon.trunclo" + type_suffix(p_wide, false), p 1392 src/CodeGen_Hexagon.cpp p = p >> shr; p 1395 src/CodeGen_Hexagon.cpp return p; p 995 src/CodeGen_LLVM.cpp virtual void add(Pass *p) override { p 997 src/CodeGen_LLVM.cpp debug(2) << "Adding function pass: " << p->getPassName().str() << "\n"; p 999 src/CodeGen_LLVM.cpp debug(2) << "Adding function pass: " << p->getPassName() << "\n"; p 1001 src/CodeGen_LLVM.cpp legacy::FunctionPassManager::add(p); p 1007 src/CodeGen_LLVM.cpp virtual void add(Pass *p) override { p 1009 src/CodeGen_LLVM.cpp debug(2) << "Adding module pass: " << p->getPassName().str() << "\n"; p 1011 src/CodeGen_LLVM.cpp debug(2) << "Adding module pass: " << p->getPassName() << "\n"; p 1013 src/CodeGen_LLVM.cpp legacy::PassManager::add(p); p 1943 src/CodeGen_LLVM.cpp Value *p = builder->CreateExtractElement(vpred, lane); p 1944 src/CodeGen_LLVM.cpp if (p->getType() != i1_t) { p 1945 src/CodeGen_LLVM.cpp p = builder->CreateIsNotNull(p); p 1950 src/CodeGen_LLVM.cpp internal_assert(p && v && idx); p 1954 src/CodeGen_LLVM.cpp builder->CreateCondBr(p, true_bb, after_bb); p 3154 src/CodeGen_LLVM.cpp Value *p = p 3159 src/CodeGen_LLVM.cpp StoreInst *store = builder->CreateStore(v, p); p 323 src/CodeGen_X86.cpp Expr p; p 325 src/CodeGen_X86.cpp p = u16(u32(a) * u32(b) / 65536); p 327 src/CodeGen_X86.cpp p = i16(i32(a) * i32(b) / 65536); p 330 src/CodeGen_X86.cpp p = p >> shr; p 332 src/CodeGen_X86.cpp return p; p 143 src/Expr.h IRHandle(const IRNode *p) : IntrusivePtr<const IRNode>(p) {} p 42 src/Function.h ExternFuncArgument(Internal::Parameter p) : arg_type(ImageParamArg), image_param(p) { p 44 src/Function.h internal_assert(p.is_buffer()); p 160 src/Generator.cpp Func make_param_func(const Parameter &p, const std::string &name) { p 161 src/Generator.cpp internal_assert(p.is_buffer()); p 164 src/Generator.cpp for (int i = 0; i < p.dimensions(); ++i) { p 170 src/Generator.cpp f(args) = Internal::Call::make(p, args_expr); p 232 src/Generator.cpp std::vector<Expr> parameter_constraints(const Parameter &p) { p 233 src/Generator.cpp internal_assert(p.defined()); p 235 src/Generator.cpp values.push_back(Expr(p.host_alignment())); p 236 src/Generator.cpp if (p.is_buffer()) { p 237 src/Generator.cpp for (int i = 0; i < p.dimensions(); ++i) { p 238 src/Generator.cpp values.push_back(p.min_constraint(i)); p 239 src/Generator.cpp values.push_back(p.extent_constraint(i)); p 240 src/Generator.cpp values.push_back(p.stride_constraint(i)); p 243 src/Generator.cpp values.push_back(p.get_min_value()); p 244 src/Generator.cpp values.push_back(p.get_max_value()); p 289 src/Generator.cpp for (auto p : in) { p 290 src/Generator.cpp if (p->name == "target") continue; p 291 src/Generator.cpp if (p->is_synthetic_param()) continue; p 292 src/Generator.cpp out.push_back(p); p 319 src/Generator.cpp for (auto p : v) { p 320 src/Generator.cpp stream << indent() << p->get_c_type() << " " << p->name << "{ " << p->get_default_value() << " };\n"; p 332 src/Generator.cpp for (auto p : v) { p 333 src/Generator.cpp stream << indent() << comma << p->get_c_type() << " " << p->name << "\n"; p 340 src/Generator.cpp for (auto p : v) { p 341 src/Generator.cpp stream << indent() << comma << p->name << "(" << p->name << ")\n"; p 353 src/Generator.cpp for (auto p : v) { p 354 src/Generator.cpp stream << indent() << "if (" << p->name << " != " << p->get_default_value() << ") " p 355 src/Generator.cpp << "m[\"" << p->name << "\"] = " << p->call_to_string(p->name) << ";\n"; p 498 src/Generator.cpp for (auto p : generator_params) { p 499 src/Generator.cpp std::string decl = p->get_type_decls(); p 571 src/Generator.cpp for (auto p : generator_params) { p 572 src/Generator.cpp std::string type = p->get_template_type(); p 573 src/Generator.cpp std::string value = p->get_template_value(); p 580 src/Generator.cpp stream << indent() << comma << "typename" << " " << p->name << " = std::ratio<" << ratio.first << ", " << ratio.second << ">\n"; p 582 src/Generator.cpp stream << indent() << comma << type << " " << p->name << " = " << value << "\n"; p 593 src/Generator.cpp for (auto p : generator_params) { p 594 src/Generator.cpp std::string type = p->get_template_type(); p 596 src/Generator.cpp stream << indent() << comma << "Halide::type_of<" << p->name << ">()\n"; p 598 src/Generator.cpp stream << indent() << comma << "ratio_to_double<" << p->name << ">()\n"; p 600 src/Generator.cpp stream << indent() << comma << p->name << "\n"; p 1289 src/Generator.cpp Parameter p = input->parameter(); p 1291 src/Generator.cpp value_tracker->track_values(p.name(), parameter_constraints(p)); p 1297 src/Generator.cpp Parameter p = output->parameter(); p 1299 src/Generator.cpp value_tracker->track_values(p.name(), parameter_constraints(p)); p 1430 src/Generator.cpp for (const auto &p : input->parameters_) { p 1431 src/Generator.cpp filter_arguments.push_back(to_argument(p)); p 1692 src/Generator.cpp auto p = in.parameter(); p 1693 src/Generator.cpp check_matching_type_and_dim({p.type()}, p.dimensions()); p 1694 src/Generator.cpp auto b = p.get_buffer(); p 1703 src/Generator.cpp funcs_.push_back(make_param_func(p, name())); p 1705 src/Generator.cpp parameters_.push_back(p); p 254 src/Generator.h EXPORT std::vector<Expr> parameter_constraints(const Parameter &p); p 928 src/Generator.h NO_INLINE explicit StubInputBuffer(const Parameter &p) : parameter_(p) { p 932 src/Generator.h Buffer<> other(p.type(), nullptr, std::vector<int>(p.dimensions(), 1)); p 939 src/Generator.h Parameter p(b.type(), true, b.dimensions()); p 940 src/Generator.h p.set_buffer(b); p 941 src/Generator.h return p; p 1411 src/Generator.h for (Parameter &p : this->parameters_) { p 1412 src/Generator.h p.set_scalar<TBase>(def_); p 1461 src/Generator.h for (Parameter &p : this->parameters_) { p 1462 src/Generator.h if (min_.defined()) p.set_min_value(min_); p 1463 src/Generator.h if (max_.defined()) p.set_max_value(max_); p 2703 src/Generator.h Pipeline p = ((T *)this)->build(); p 2705 src/Generator.h return p; p 692 src/HexagonOffload.cpp Parameter p(i.second.type, true, i.second.dimensions); p 695 src/HexagonOffload.cpp p.set_host_alignment(alignment); p 700 src/HexagonOffload.cpp replacement_params[i.first] = p; p 149 src/HexagonOptimize.cpp Pattern(const string &intrin, Expr p, int flags = 0) p 150 src/HexagonOptimize.cpp : intrin(intrin), pattern(p), flags(flags) {} p 178 src/HexagonOptimize.cpp for (const Pattern &p : patterns) { p 180 src/HexagonOptimize.cpp if ((p.flags & (Pattern::v62)) && !target.has_feature(Target::HVX_v62)) p 183 src/HexagonOptimize.cpp if (expr_match(p.pattern, x, matches)) { p 184 src/HexagonOptimize.cpp debug(3) << "matched " << p.pattern << "\n"; p 198 src/HexagonOptimize.cpp if (p.flags & (Pattern::NarrowOp0 << i)) { p 200 src/HexagonOptimize.cpp } else if (p.flags & (Pattern::NarrowUnsignedOp0 << i)) { p 211 src/HexagonOptimize.cpp if (p.flags & (Pattern::ExactLog2Op1 << (i - Pattern::BeginExactLog2Op))) { p 223 src/HexagonOptimize.cpp if (p.flags & p 229 src/HexagonOptimize.cpp if (p.flags & Pattern::SwapOps01) { p 233 src/HexagonOptimize.cpp if (p.flags & Pattern::SwapOps12) { p 241 src/HexagonOptimize.cpp x = Call::make(x.type(), p.intrin, matches, Call::PureExtern); p 242 src/HexagonOptimize.cpp if (p.flags & Pattern::InterleaveResult) { p 588 src/IROperator.cpp Expr raise_to_integer_power(const Expr &e, int64_t p) { p 590 src/IROperator.cpp if (p == 0) { p 592 src/IROperator.cpp } else if (p == 1) { p 594 src/IROperator.cpp } else if (p < 0) { p 595 src/IROperator.cpp result = make_one(e.type()) / raise_to_integer_power(e, -p); p 598 src/IROperator.cpp Expr y = raise_to_integer_power(e, p>>1); p 599 src/IROperator.cpp if (p & 1) result = y*y*e; p 804 src/IROperator.cpp Expr p = print(args); p 805 src/IROperator.cpp return Internal::Call::make(p.type(), p 807 src/IROperator.cpp {condition, p, args[0]}, p 47 src/IRPrinter.cpp Internal::IRPrinter p(stream); p 48 src/IRPrinter.cpp p.print(ir); p 149 src/IRPrinter.cpp ostream& operator<<(ostream &stream, const AssociativePattern &p) { p 151 src/IRPrinter.cpp for (size_t i = 0; i < p.ops.size(); ++i) { p 152 src/IRPrinter.cpp stream << " op_" << i << " ->" << p.ops[i] << ", id_" << i << " -> " << p.identities[i] << "\n"; p 154 src/IRPrinter.cpp stream << " is commutative? " << p.is_commutative << "\n"; p 213 src/IRPrinter.cpp Internal::IRPrinter p(stream); p 214 src/IRPrinter.cpp p.print(ir); p 86 src/InferArguments.cpp void include_parameter(Parameter p) { p 87 src/InferArguments.cpp if (!p.defined()) return; p 88 src/InferArguments.cpp if (p.is_bound_before_lowering()) return; p 89 src/InferArguments.cpp if (already_have(p.name())) return; p 92 src/InferArguments.cpp if (!p.is_buffer()) { p 93 src/InferArguments.cpp def = p.get_scalar_expr(); p 94 src/InferArguments.cpp min = p.get_min_value(); p 95 src/InferArguments.cpp max = p.get_max_value(); p 99 src/InferArguments.cpp Argument(p.name(), p 100 src/InferArguments.cpp p.is_buffer() ? Argument::InputBuffer : Argument::InputScalar, p 101 src/InferArguments.cpp p.type(), p.dimensions(), def, min, max), p 102 src/InferArguments.cpp p, p 107 src/InferArguments.cpp if (!p.is_buffer()) { p 112 src/InferArguments.cpp for (int i = 0; i < p.dimensions(); i++) { p 113 src/InferArguments.cpp visit_expr(p.min_constraint(i)); p 114 src/InferArguments.cpp visit_expr(p.extent_constraint(i)); p 115 src/InferArguments.cpp visit_expr(p.stride_constraint(i)); p 60 src/IntrusivePtr.h void incref(T *p) { p 61 src/IntrusivePtr.h if (p) { p 62 src/IntrusivePtr.h ref_count(p).increment(); p 66 src/IntrusivePtr.h void decref(T *p) { p 67 src/IntrusivePtr.h if (p) { p 74 src/IntrusivePtr.h if (ref_count(p).decrement() == 0) { p 75 src/IntrusivePtr.h destroy(p); p 109 src/IntrusivePtr.h IntrusivePtr(T *p) : ptr(p) { p 202 src/JITModule.cpp for (auto p : code_pages) { p 203 src/JITModule.cpp uint8_t *start = p.first; p 204 src/JITModule.cpp uint8_t *end = p.first + p.second; p 8 src/OutputImageParam.cpp OutputImageParam::OutputImageParam(const Internal::Parameter &p, Argument::Kind k) : p 9 src/OutputImageParam.cpp param(p), kind(k) { p 35 src/OutputImageParam.h EXPORT OutputImageParam(const Internal::Parameter &p, Argument::Kind k); p 45 src/Parameter.cpp EXPORT RefCount &ref_count<Halide::Internal::ParameterContents>(const ParameterContents *p) {return p->ref_count;} p 48 src/Parameter.cpp EXPORT void destroy<Halide::Internal::ParameterContents>(const ParameterContents *p) {delete p;} p 292 src/Parameter.cpp Dimension::Dimension(const Internal::Parameter &p, int d) : param(p), d(d) { p 216 src/Parameter.h EXPORT Dimension(const Internal::Parameter &p, int d); p 114 src/Pipeline.cpp EXPORT RefCount &ref_count<PipelineContents>(const PipelineContents *p) { p 115 src/Pipeline.cpp return p->ref_count; p 119 src/Pipeline.cpp EXPORT void destroy<PipelineContents>(const PipelineContents *p) { p 120 src/Pipeline.cpp delete p; p 358 src/Pipeline.cpp for (CustomLoweringPass p : contents->custom_lowering_passes) { p 359 src/Pipeline.cpp custom_passes.push_back(p.pass); p 487 src/Pipeline.cpp CustomLoweringPass p = {pass, deleter}; p 488 src/Pipeline.cpp contents->custom_lowering_passes.push_back(p); p 206 src/Prefetch.cpp const PrefetchDirective &p = prefetch_list[i]; p 207 src/Prefetch.cpp if (!ends_with(op->name, "." + p.var) || (seen.find(p.name) != seen.end())) { p 210 src/Prefetch.cpp seen.insert(p.name); p 213 src/Prefetch.cpp Expr fetch_at = loop_var + p.offset; p 225 src/Prefetch.cpp const auto &b = boxes_rw.find(p.name); p 232 src/Prefetch.cpp if (p.strategy == PrefetchBoundStrategy::Clamp) { p 234 src/Prefetch.cpp } else if (p.strategy == PrefetchBoundStrategy::GuardWithIf) { p 242 src/Prefetch.cpp internal_assert(p.strategy == PrefetchBoundStrategy::NonFaulting); p 246 src/Prefetch.cpp body = add_prefetch(b->first, p.param, prefetch_box, body); p 322 src/Profiling.cpp for (std::pair<string, int> p : profiling.indices) { p 323 src/Profiling.cpp s = Block::make(Store::make("profiling_func_names", p.first, p.second, Parameter(), const_true()), s); p 28 src/Qualify.cpp QualifyExpr(const string &p) : prefix(p) {} p 161 src/RDom.cpp RDom::RDom(ImageParam p) { p 164 src/RDom.cpp for (int i = 0; i < p.dimensions(); i++) { p 166 src/RDom.cpp p.name() + "$" + var_names[i], p 167 src/RDom.cpp p.dim(i).min(), p 168 src/RDom.cpp p.dim(i).extent() p 174 src/RDom.cpp init_vars(p.name()); p 133 src/Reduction.cpp EXPORT RefCount &ref_count<Halide::Internal::ReductionDomainContents>(const ReductionDomainContents *p) {return p->ref_count;} p 136 src/Reduction.cpp EXPORT void destroy<Halide::Internal::ReductionDomainContents>(const ReductionDomainContents *p) {delete p;} p 175 src/Reduction.cpp DropSelfReferences(Expr p, const ReductionDomain &d) : p 176 src/Reduction.cpp predicate(p), domain(d) {} p 180 src/Reduction.cpp void ReductionDomain::set_predicate(Expr p) { p 183 src/Reduction.cpp contents->predicate = DropSelfReferences(p, *this).mutate(p); p 29 src/Schedule.cpp EXPORT RefCount &ref_count<LoopLevelContents>(const LoopLevelContents *p) { p 30 src/Schedule.cpp return p->ref_count; p 34 src/Schedule.cpp EXPORT void destroy<LoopLevelContents>(const LoopLevelContents *p) { p 35 src/Schedule.cpp delete p; p 171 src/Schedule.cpp for (PrefetchDirective &p : prefetches) { p 172 src/Schedule.cpp if (p.offset.defined()) { p 173 src/Schedule.cpp p.offset = mutator->mutate(p.offset); p 181 src/Schedule.cpp EXPORT RefCount &ref_count<ScheduleContents>(const ScheduleContents *p) { p 182 src/Schedule.cpp return p->ref_count; p 186 src/Schedule.cpp EXPORT void destroy<ScheduleContents>(const ScheduleContents *p) { p 187 src/Schedule.cpp delete p; p 362 src/Schedule.cpp for (const PrefetchDirective &p : prefetches()) { p 363 src/Schedule.cpp if (p.offset.defined()) { p 364 src/Schedule.cpp p.offset.accept(visitor); p 252 src/ScheduleFunctions.cpp string p = prefix + rv.var; p 253 src/ScheduleFunctions.cpp Expr rmin = Variable::make(Int(32), p + ".min"); p 254 src/ScheduleFunctions.cpp Expr rmax = Variable::make(Int(32), p + ".max"); p 255 src/ScheduleFunctions.cpp stmt = LetStmt::make(p + ".loop_min", rmin, stmt); p 256 src/ScheduleFunctions.cpp stmt = LetStmt::make(p + ".loop_max", rmax, stmt); p 257 src/ScheduleFunctions.cpp stmt = LetStmt::make(p + ".loop_extent", rmax - rmin + 1, stmt); p 362 src/ScheduleFunctions.cpp Parameter p(b.type(), true, b.dimensions(), b.name()); p 363 src/ScheduleFunctions.cpp p.set_buffer(b); p 364 src/ScheduleFunctions.cpp Expr buf = Variable::make(type_of<struct halide_buffer_t *>(), b.name() + ".buffer", p); p 369 src/ScheduleFunctions.cpp Parameter p = arg.image_param; p 370 src/ScheduleFunctions.cpp Expr buf = Variable::make(type_of<struct halide_buffer_t *>(), p.name() + ".buffer", p); p 453 src/ScheduleFunctions.cpp for (const auto &p: buffers_to_annotate) { p 454 src/ScheduleFunctions.cpp Expr buffer = p.first; p 455 src/ScheduleFunctions.cpp int dimensions = p.second; p 269 src/Simplify.cpp } else if (const double *p = as_const_float(e)) { p 270 src/Simplify.cpp *f = *p; p 280 src/Simplify.cpp } else if (const int64_t *p = as_const_int(e)) { p 281 src/Simplify.cpp *i = *p; p 291 src/Simplify.cpp } else if (const uint64_t *p = as_const_uint(e)) { p 292 src/Simplify.cpp *u = *p; p 184 src/SplitTuples.cpp auto p = lets.back(); p 186 src/SplitTuples.cpp result = LetStmt::make(p.first, p.second, result); p 348 src/StorageFlattening.cpp for (auto p : env) { p 349 src/StorageFlattening.cpp if (p.second.outputs() > 1) { p 350 src/StorageFlattening.cpp for (int i = 0; i < p.second.outputs(); i++) { p 351 src/StorageFlattening.cpp tuple_env[p.first + "." + std::to_string(i)] = {p.second, i}; p 354 src/StorageFlattening.cpp tuple_env[p.first] = {p.second, 0}; p 156 src/Tracing.cpp for (const auto &p : lets) { p 157 src/Tracing.cpp stmt = LetStmt::make(p.first, p.second, stmt); p 73 src/UnpackBuffers.cpp for (auto &p : finder.buffers) { p 74 src/UnpackBuffers.cpp const string &name = p.first; p 75 src/UnpackBuffers.cpp const BufferInfo &info = p.second; p 137 src/UnpackBuffers.cpp for (auto &p : finder.buffers) { p 138 src/UnpackBuffers.cpp Expr buf = p.second.handle; p 141 src/UnpackBuffers.cpp {p.first}, Call::Extern); p 694 src/VectorizeLoops.cpp PredicateLoadStore p(var, cond, in_hexagon, target); p 695 src/VectorizeLoops.cpp predicated_stmt = p.mutate(then_case); p 696 src/VectorizeLoops.cpp vectorize_predicate = p.is_vectorized(); p 699 src/VectorizeLoops.cpp PredicateLoadStore p(var, !cond, in_hexagon, target); p 700 src/VectorizeLoops.cpp predicated_stmt = Block::make(predicated_stmt, p.mutate(else_case)); p 701 src/VectorizeLoops.cpp vectorize_predicate = p.is_vectorized(); p 107 src/WrapExternStages.cpp auto p = old_buffers.back(); p 108 src/WrapExternStages.cpp body = LetStmt::make(p.first, p.second, body); p 232 src/WrapExternStages.cpp auto p = new_buffers.back(); p 233 src/WrapExternStages.cpp body = LetStmt::make(p.first, p.second, body); p 556 src/runtime/cuda.cpp CUdeviceptr p; p 558 src/runtime/cuda.cpp CUresult err = cuMemAlloc(&p, size); p 565 src/runtime/cuda.cpp debug(user_context) << (void *)p << "\n"; p 567 src/runtime/cuda.cpp halide_assert(user_context, p); p 568 src/runtime/cuda.cpp buf->device = p; p 334 src/runtime/opengl.cpp char *p = (char*)malloc(n+1); p 335 src/runtime/opengl.cpp memcpy(p, s, n); p 336 src/runtime/opengl.cpp p[n] = '\0'; p 337 src/runtime/opengl.cpp return p; p 582 src/runtime/opengl.cpp void *p = halide_opengl_get_proc_address(user_context, name); p 583 src/runtime/opengl.cpp if (!p && required) { p 587 src/runtime/opengl.cpp *ptr = p; p 152 src/runtime/openglcompute.cpp void *p = halide_opengl_get_proc_address(user_context, name); p 153 src/runtime/openglcompute.cpp if (!p && required) { p 157 src/runtime/openglcompute.cpp *ptr = p; p 22 src/runtime/profiler.cpp for (halide_profiler_pipeline_stats *p = s->pipelines; p; p 23 src/runtime/profiler.cpp p = (halide_profiler_pipeline_stats *)(p->next)) { p 26 src/runtime/profiler.cpp if (p->name == pipeline_name && p 27 src/runtime/profiler.cpp p->num_funcs == num_funcs) { p 28 src/runtime/profiler.cpp return p; p 32 src/runtime/profiler.cpp halide_profiler_pipeline_stats *p = p 34 src/runtime/profiler.cpp if (!p) return NULL; p 35 src/runtime/profiler.cpp p->next = s->pipelines; p 36 src/runtime/profiler.cpp p->name = pipeline_name; p 37 src/runtime/profiler.cpp p->first_func_id = s->first_free_id; p 38 src/runtime/profiler.cpp p->num_funcs = num_funcs; p 39 src/runtime/profiler.cpp p->runs = 0; p 40 src/runtime/profiler.cpp p->time = 0; p 41 src/runtime/profiler.cpp p->samples = 0; p 42 src/runtime/profiler.cpp p->memory_current = 0; p 43 src/runtime/profiler.cpp p->memory_peak = 0; p 44 src/runtime/profiler.cpp p->memory_total = 0; p 45 src/runtime/profiler.cpp p->num_allocs = 0; p 46 src/runtime/profiler.cpp p->active_threads_numerator = 0; p 47 src/runtime/profiler.cpp p->active_threads_denominator = 0; p 48 src/runtime/profiler.cpp p->funcs = (halide_profiler_func_stats *)malloc(num_funcs * sizeof(halide_profiler_func_stats)); p 49 src/runtime/profiler.cpp if (!p->funcs) { p 50 src/runtime/profiler.cpp free(p); p 54 src/runtime/profiler.cpp p->funcs[i].time = 0; p 55 src/runtime/profiler.cpp p->funcs[i].name = (const char *)(func_names[i]); p 56 src/runtime/profiler.cpp p->funcs[i].memory_current = 0; p 57 src/runtime/profiler.cpp p->funcs[i].memory_peak = 0; p 58 src/runtime/profiler.cpp p->funcs[i].memory_total = 0; p 59 src/runtime/profiler.cpp p->funcs[i].num_allocs = 0; p 60 src/runtime/profiler.cpp p->funcs[i].stack_peak = 0; p 61 src/runtime/profiler.cpp p->funcs[i].active_threads_numerator = 0; p 62 src/runtime/profiler.cpp p->funcs[i].active_threads_denominator = 0; p 65 src/runtime/profiler.cpp s->pipelines = p; p 66 src/runtime/profiler.cpp return p; p 71 src/runtime/profiler.cpp for (halide_profiler_pipeline_stats *p = s->pipelines; p; p 72 src/runtime/profiler.cpp p = (halide_profiler_pipeline_stats *)(p->next)) { p 73 src/runtime/profiler.cpp if (func_id >= p->first_func_id && func_id < p->first_func_id + p->num_funcs) { p 76 src/runtime/profiler.cpp p_prev->next = (halide_profiler_pipeline_stats *)(p->next); p 77 src/runtime/profiler.cpp p->next = s->pipelines; p 78 src/runtime/profiler.cpp s->pipelines = p; p 80 src/runtime/profiler.cpp halide_profiler_func_stats *f = p->funcs + func_id - p->first_func_id; p 84 src/runtime/profiler.cpp p->time += time; p 85 src/runtime/profiler.cpp p->samples++; p 86 src/runtime/profiler.cpp p->active_threads_numerator += active_threads; p 87 src/runtime/profiler.cpp p->active_threads_denominator += 1; p 90 src/runtime/profiler.cpp p_prev = p; p 163 src/runtime/profiler.cpp for (halide_profiler_pipeline_stats *p = s->pipelines; p; p 164 src/runtime/profiler.cpp p = (halide_profiler_pipeline_stats *)(p->next)) { p 167 src/runtime/profiler.cpp if (p->name == pipeline_name) { p 168 src/runtime/profiler.cpp return p; p 189 src/runtime/profiler.cpp halide_profiler_pipeline_stats *p = p 191 src/runtime/profiler.cpp if (!p) { p 195 src/runtime/profiler.cpp p->runs++; p 197 src/runtime/profiler.cpp return p->first_func_id; p 291 src/runtime/profiler.cpp for (halide_profiler_pipeline_stats *p = s->pipelines; p; p 292 src/runtime/profiler.cpp p = (halide_profiler_pipeline_stats *)(p->next)) { p 293 src/runtime/profiler.cpp float t = p->time / 1000000.0f; p 294 src/runtime/profiler.cpp if (!p->runs) continue; p 297 src/runtime/profiler.cpp if (p->num_allocs != 0) { p 298 src/runtime/profiler.cpp alloc_avg = p->memory_total/p->num_allocs; p 300 src/runtime/profiler.cpp bool serial = p->active_threads_numerator == p->active_threads_denominator; p 301 src/runtime/profiler.cpp float threads = p->active_threads_numerator / (p->active_threads_denominator + 1e-10); p 302 src/runtime/profiler.cpp sstr << p->name << "\n" p 304 src/runtime/profiler.cpp << " samples: " << p->samples p 305 src/runtime/profiler.cpp << " runs: " << p->runs p 306 src/runtime/profiler.cpp << " time/run: " << t / p->runs << " ms\n"; p 310 src/runtime/profiler.cpp sstr << " heap allocations: " << p->num_allocs p 311 src/runtime/profiler.cpp << " peak heap usage: " << p->memory_peak << " bytes\n"; p 314 src/runtime/profiler.cpp bool print_f_states = p->time || p->memory_total; p 316 src/runtime/profiler.cpp for (int i = 0; i < p->num_funcs; i++) { p 317 src/runtime/profiler.cpp halide_profiler_func_stats *fs = p->funcs + i; p 326 src/runtime/profiler.cpp for (int i = 0; i < p->num_funcs; i++) { p 329 src/runtime/profiler.cpp halide_profiler_func_stats *fs = p->funcs + i; p 339 src/runtime/profiler.cpp float ft = fs->time / (p->runs * 1000000.0f); p 348 src/runtime/profiler.cpp if (p->time != 0) { p 349 src/runtime/profiler.cpp percent = (100*fs->time) / p->time; p 405 src/runtime/profiler.cpp halide_profiler_pipeline_stats *p = s->pipelines; p 406 src/runtime/profiler.cpp s->pipelines = (halide_profiler_pipeline_stats *)(p->next); p 407 src/runtime/profiler.cpp free(p->funcs); p 408 src/runtime/profiler.cpp free(p); p 205 src/runtime/to_string.cpp for (char *p = buf_end - 1; p != int_part_ptr - 1; p--) { p 206 src/runtime/to_string.cpp char old_digit = *p - '0'; p 214 src/runtime/to_string.cpp *p = new_digit + '0'; p 46 test/common/halide_test_dirs.h char p[MAX_PATH]; p 47 test/common/halide_test_dirs.h DWORD ret = GetCurrentDirectoryA(MAX_PATH, p); p 49 test/common/halide_test_dirs.h dir = p; p 54 test/common/halide_test_dirs.h char *p = getcwd(nullptr, 0); p 55 test/common/halide_test_dirs.h if (p) { p 56 test/common/halide_test_dirs.h dir = p; p 57 test/common/halide_test_dirs.h free(p); p 34 test/correctness/align_bounds.cpp Param<int> p; p 35 test/correctness/align_bounds.cpp h(x) = g(x-p) + g(x+p); p 41 test/correctness/align_bounds.cpp Module m = g.compile_to_module({p}); p 49 test/correctness/align_bounds.cpp p.set(3); p 69 test/correctness/align_bounds.cpp p.set(4); p 79 test/correctness/align_bounds.cpp p.set(5); p 97 test/correctness/align_bounds.cpp Param<int> p; p 98 test/correctness/align_bounds.cpp h(x) = g(x-p) + g(x+p); p 104 test/correctness/align_bounds.cpp Module m = g.compile_to_module({p}); p 112 test/correctness/align_bounds.cpp p.set(3); p 132 test/correctness/align_bounds.cpp p.set(4); p 140 test/correctness/align_bounds.cpp p.set(5); p 33 test/correctness/bounds_of_func.cpp Param<int> p; p 35 test/correctness/bounds_of_func.cpp f(x) = clamp(x, 10, p); p 42 test/correctness/bounds_of_func.cpp p.set(20); p 63 test/correctness/c_function.cpp Pipeline p(g); p 64 test/correctness/c_function.cpp p.set_jit_externs({ { "my_func", my_func2 } }); p 65 test/correctness/c_function.cpp Buffer<float> imf2 = p.realize(32, 32); p 85 test/correctness/c_function.cpp p.set_jit_externs({ { "my_func", my_func3 } }); p 86 test/correctness/c_function.cpp Buffer<float> imf3 = p.realize(32, 32); p 9 test/correctness/compile_to_lowered_stmt.cpp Param<float> p("myParam"); p 13 test/correctness/compile_to_lowered_stmt.cpp g(x, y) = cast<float>(f(x, y) + f(x+1, y))*p; p 31 test/correctness/debug_to_file_multiple_outputs.cpp Pipeline p({f, g, h}); p 36 test/correctness/debug_to_file_multiple_outputs.cpp p.realize(r); p 147 test/correctness/exception.cpp Param<int> p; p 148 test/correctness/exception.cpp p.set_range(p_min, p_max); p 149 test/correctness/exception.cpp p.set(-4); p 153 test/correctness/exception.cpp f4(x) = p; p 32 test/correctness/force_onto_stack.cpp Param<int> p; p 36 test/correctness/force_onto_stack.cpp g.split(x, xo, xi, p); p 45 test/correctness/force_onto_stack.cpp p.set(5); p 51 test/correctness/force_onto_stack.cpp p.set(10); p 76 test/correctness/gpu_specialize.cpp Param<bool> p; p 82 test/correctness/gpu_specialize.cpp f.specialize(p).tile(x, y, xi, yi, 4, 4).gpu_threads(x, y); p 88 test/correctness/gpu_specialize.cpp p.set(true); p 54 test/correctness/host_alignment.cpp ParseCondition p; p 55 test/correctness/host_alignment.cpp c.accept(&p); p 56 test/correctness/host_alignment.cpp if (p.left.defined() && p.right.defined()) { p 57 test/correctness/host_alignment.cpp const Call *reinterpret_call = p.left.as<Call>(); p 64 test/correctness/host_alignment.cpp if (is_const(p.right, expected_alignment)) { p 40 test/correctness/inverse.cpp Param<float> p; p 41 test/correctness/inverse.cpp p.set(1.0f); p 46 test/correctness/inverse.cpp f1(x) = p / v; p 60 test/correctness/inverse.cpp g1(x) = p / sqrt(v); p 16 test/correctness/parameter_constraints.cpp Param<float> p; p 20 test/correctness/parameter_constraints.cpp p.set_range(1, 10); p 25 test/correctness/parameter_constraints.cpp f(x, y) = g(cast<int>(x/p), y); p 30 test/correctness/parameter_constraints.cpp p.set(2); p 37 test/correctness/parameter_constraints.cpp p.set(0); p 50 test/correctness/parameter_constraints.cpp Param<float> p(2, 1, 10); p 56 test/correctness/parameter_constraints.cpp f(x, y) = g(cast<int>(x/p), y); p 67 test/correctness/parameter_constraints.cpp p.set(0); p 30 test/correctness/pipeline_set_jit_externs_func.cpp Pipeline p(f); p 31 test/correctness/pipeline_set_jit_externs_func.cpp p.set_jit_externs({ { "extern_func", monitor } }); p 32 test/correctness/pipeline_set_jit_externs_func.cpp Buffer<float> imf = p.realize(32, 32); p 79 test/correctness/print.cpp long p; p 82 test/correctness/print.cpp &nine, &forty_two, &p); p 86 test/correctness/print.cpp assert(p == 127); p 344 test/correctness/reduction_non_rectangular.cpp Param<int> p; p 350 test/correctness/reduction_non_rectangular.cpp r.where(p > 3); p 363 test/correctness/reduction_non_rectangular.cpp p.set(5); p 390 test/correctness/reduction_non_rectangular.cpp p.set(0); p 712 test/correctness/reduction_non_rectangular.cpp Param<int> p; p 719 test/correctness/reduction_non_rectangular.cpp r1.where(p > 3); p 723 test/correctness/reduction_non_rectangular.cpp r2.where(p <= 3); p 727 test/correctness/reduction_non_rectangular.cpp f.update(0).specialize(p >= 2).gpu_tile(r1.x, r1.y, r1xi, r1yi, 4, 4); p 735 test/correctness/reduction_non_rectangular.cpp p.set(5); p 757 test/correctness/reduction_non_rectangular.cpp p.set(0); p 296 test/correctness/rfactor.cpp Param<int> p; p 298 test/correctness/rfactor.cpp Func intm = g.update(0).specialize(p >= 10).rfactor(r.y, u); p 304 test/correctness/rfactor.cpp p.set(20); p 320 test/correctness/rfactor.cpp p.set(0); p 330 test/correctness/rfactor.cpp p.set(20); p 613 test/correctness/rfactor.cpp Param<int> p; p 617 test/correctness/rfactor.cpp Func intm1 = g.update(0).specialize(p >= 5).rfactor({{r.y, v}, {r.z, w}}); p 655 test/correctness/rfactor.cpp p.set(10); p 678 test/correctness/rfactor.cpp p.set(10); p 701 test/correctness/rfactor.cpp p.set(0); p 724 test/correctness/rfactor.cpp p.set(0); p 107 test/correctness/simd_op_check.cpp for (auto p : image_params) { p 108 test/correctness/simd_op_check.cpp p.set_host_alignment(128); p 109 test/correctness/simd_op_check.cpp p.dim(0).set_min(0); p 112 test/correctness/simd_op_check.cpp Buffer<> b(p.type(), {W*4+H, H}); p 114 test/correctness/simd_op_check.cpp if (p.type().is_float()) { p 115 test/correctness/simd_op_check.cpp r = cast(p.type(), random_float() * 1024 - 512); p 120 test/correctness/simd_op_check.cpp r = cast(p.type(), random_int() / 4); p 123 test/correctness/simd_op_check.cpp p.set(b); p 150 test/correctness/simd_op_check.cpp bool wildcard_match(const char* p, const char* str) const { p 152 test/correctness/simd_op_check.cpp while (*p && *str && *p == *str && *p != '*') { p 154 test/correctness/simd_op_check.cpp p++; p 157 test/correctness/simd_op_check.cpp if (!*p) { p 159 test/correctness/simd_op_check.cpp } else if (*p == '*') { p 160 test/correctness/simd_op_check.cpp p++; p 162 test/correctness/simd_op_check.cpp if (wildcard_match(p, str)) { p 166 test/correctness/simd_op_check.cpp } else if (*p == ' ') { // ignore whitespace in pattern p 167 test/correctness/simd_op_check.cpp p++; p 168 test/correctness/simd_op_check.cpp if (wildcard_match(p, str)) { p 173 test/correctness/simd_op_check.cpp if (wildcard_match(p, str)) { p 177 test/correctness/simd_op_check.cpp return !*p; p 180 test/correctness/simd_op_check.cpp bool wildcard_match(const string& p, const string& str) const { p 181 test/correctness/simd_op_check.cpp return wildcard_match(p.c_str(), str.c_str()); p 185 test/correctness/simd_op_check.cpp bool wildcard_search(const string& p, const string& str) const { p 186 test/correctness/simd_op_check.cpp return wildcard_match("*" + p + "*", str); p 451 test/correctness/specialize.cpp Param<int> p; p 452 test/correctness/specialize.cpp Expr test = (p > 73) || (p*p + p + 1 == 0); p 466 test/correctness/specialize.cpp p.set(100); p 476 test/correctness/specialize.cpp p.set(-100); p 489 test/correctness/specialize.cpp Param<int> p; p 490 test/correctness/specialize.cpp Expr test = (p > 73); p 494 test/correctness/specialize.cpp f(x) = select(p > 50, im(x, 0), im(0, x)); p 500 test/correctness/specialize.cpp p.set(100); p 515 test/correctness/specialize.cpp p.set(-100); p 527 test/correctness/specialize.cpp Param<int> p; p 535 test/correctness/specialize.cpp f.specialize(p == 0).vectorize(x, 32); // will *not* be pruned p 554 test/correctness/specialize.cpp p.set(0); p 559 test/correctness/specialize.cpp p.set(42); // just a nonzero value p 566 test/correctness/specialize.cpp Param<int> p; p 574 test/correctness/specialize.cpp f.specialize(p == 0).vectorize(x, 32); // will *not* be pruned p 577 test/correctness/specialize.cpp f.specialize(p == 42).vectorize(x, 8); // will be pruned p 602 test/correctness/specialize.cpp p.set(42); // Chosen to ensure pruned branch is pruned p 607 test/correctness/specialize.cpp p.set(0); p 614 test/correctness/specialize.cpp Param<int> p; p 622 test/correctness/specialize.cpp f.specialize(p == 0).vectorize(x, 32); // will *not* be pruned p 629 test/correctness/specialize.cpp p.set(42); // arbitrary nonzero value p 634 test/correctness/specialize.cpp p.set(0); p 641 test/correctness/specialize.cpp Param<int> p; p 646 test/correctness/specialize.cpp f.specialize(p == 0); p 649 test/correctness/specialize.cpp f.specialize(p == 0).vectorize(x, 32); p 659 test/correctness/specialize.cpp p.set(0); p 7 test/error/pointer_arithmetic.cpp Param<const char *> p; p 8 test/error/pointer_arithmetic.cpp p.set("Hello, world!\n"); p 13 test/error/pointer_arithmetic.cpp f(x) = p + 2; p 8 test/error/specialize_fail.cpp Param<int> p; p 12 test/error/specialize_fail.cpp f.specialize(p == 0).vectorize(x, 8); p 15 test/error/specialize_fail.cpp p.set(42); // arbitrary nonzero value p 6 test/generator/blur2x2_generator.cpp Halide::Expr is_interleaved(const T &p, int channels = 3) { p 7 test/generator/blur2x2_generator.cpp return p.dim(0).stride() == channels && p.dim(2).stride() == 1 && p.dim(2).extent() == channels; p 11 test/generator/blur2x2_generator.cpp Halide::Expr is_planar(const T &p, int channels = 3) { p 12 test/generator/blur2x2_generator.cpp return p.dim(0).stride() == 1 && p.dim(2).extent() == channels; p 38 test/generator/memory_profiler_mandelbrot_aottest.cpp for (halide_profiler_pipeline_stats *p = s->pipelines; p; p 39 test/generator/memory_profiler_mandelbrot_aottest.cpp p = (halide_profiler_pipeline_stats *)(p->next)) { p 40 test/generator/memory_profiler_mandelbrot_aottest.cpp assert(p->num_allocs == mandelbrot_n_mallocs); p 41 test/generator/memory_profiler_mandelbrot_aottest.cpp assert(p->memory_total == mandelbrot_heap_total); p 43 test/generator/memory_profiler_mandelbrot_aottest.cpp assert(mandelbrot_heap_per_iter <= p->memory_peak); p 44 test/generator/memory_profiler_mandelbrot_aottest.cpp assert(p->memory_peak <= mandelbrot_heap_total); p 46 test/generator/memory_profiler_mandelbrot_aottest.cpp for (int i = 0; i < p->num_funcs; i++) { p 47 test/generator/memory_profiler_mandelbrot_aottest.cpp halide_profiler_func_stats *fs = p->funcs + i; p 18 test/generator/pyramid_generator.cpp Func p = pyramid[i-1]; p 19 test/generator/pyramid_generator.cpp pyramid[i](x, y) = (p(2*x, 2*y) + p 20 test/generator/pyramid_generator.cpp p(2*x+1, 2*y) + p 21 test/generator/pyramid_generator.cpp p(2*x, 2*y+1) + p 22 test/generator/pyramid_generator.cpp p(2*x+1, 2*y+1))/4; p 27 test/generator/pyramid_generator.cpp for (Func p : pyramid) { p 29 test/generator/pyramid_generator.cpp p.parallel(y); p 32 test/generator/pyramid_generator.cpp p.specialize(p.output_buffer().width() >= v).vectorize(x, v); p 8 test/generator/tiled_blur_generator.cpp Halide::Expr is_interleaved(const T &p, int channels = 3) { p 9 test/generator/tiled_blur_generator.cpp return p.dim(0).stride() == channels && p.dim(2).stride() == 1 && p.dim(2).extent() == channels; p 13 test/generator/tiled_blur_generator.cpp Halide::Expr is_planar(const T &p, int channels = 3) { p 14 test/generator/tiled_blur_generator.cpp return p.dim(0).stride() == 1 && p.dim(2).extent() == channels; p 86 test/opengl/varying.cpp Param<float> p("p"); p 87 test/opengl/varying.cpp p.set(p_value); p 91 test/opengl/varying.cpp c == 1, p * 10.0f, // Linear expression not in terms of a loop parameter p 167 test/opengl/varying.cpp Param<float> p("p"); p 168 test/opengl/varying.cpp p.set(p_value); p 169 test/opengl/varying.cpp Expr foo = p; p 11 test/performance/fast_inverse.cpp Param<float> p(1.0f); p 19 test/performance/fast_inverse.cpp slow(x) = p / (slow(x) + 1) + 0*r; p 276 test/performance/rfactor.cpp Param<int> p; p 124 tools/halide_image_io.h PngRowPointers(int height, int rowbytes) : p(new png_bytep[height]), height(height) { p 125 tools/halide_image_io.h if (p != nullptr) { p 127 tools/halide_image_io.h p[y] = new png_byte[rowbytes]; p 132 tools/halide_image_io.h if (p) { p 134 tools/halide_image_io.h delete[] p[y]; p 136 tools/halide_image_io.h delete[] p; p 139 tools/halide_image_io.h png_bytep* const p; p 201 tools/halide_image_io.h png_read_image(png_ptr, row_pointers.p); p 211 tools/halide_image_io.h uint8_t *srcPtr = (uint8_t *)(row_pointers.p[y]); p 221 tools/halide_image_io.h uint8_t *srcPtr = (uint8_t *)(row_pointers.p[y]); p 300 tools/halide_image_io.h uint8_t *dstPtr = (uint8_t *)(row_pointers.p[y]); p 330 tools/halide_image_io.h png_write_image(png_ptr, row_pointers.p); p 379 tools/halide_image_io.h uint8_t *p = &data[0]; p 382 tools/halide_image_io.h Internal::convert(*p++, *im_data++); p 390 tools/halide_image_io.h uint16_t *p = &data[0]; p 393 tools/halide_image_io.h uint16_t value = *p++; p 422 tools/halide_image_io.h uint8_t *p = &data[0]; p 425 tools/halide_image_io.h Internal::convert(im(x, y, channel), *p++); p 432 tools/halide_image_io.h uint16_t *p = &data[0]; p 438 tools/halide_image_io.h *p++ = value; p 534 tools/halide_image_io.h uint8_t *p = &data[0]; p 539 tools/halide_image_io.h Internal::convert(im(x, y, 0), *p++); p 540 tools/halide_image_io.h Internal::convert(im(x, y, 1), *p++); p 541 tools/halide_image_io.h Internal::convert(im(x, y, 2), *p++); p 548 tools/halide_image_io.h Internal::convert(im(x, y, c), *p++); p 557 tools/halide_image_io.h uint16_t *p = &data[0]; p 565 tools/halide_image_io.h *p++ = value0; p 568 tools/halide_image_io.h *p++ = value1; p 571 tools/halide_image_io.h *p++ = value2; p 581 tools/halide_image_io.h *p++ = value; p 208 util/HalideTraceViz.cpp void observe_load(const Packet &p) { p 209 util/HalideTraceViz.cpp observe_load_or_store(p); p 210 util/HalideTraceViz.cpp loads += p.type.lanes; p 213 util/HalideTraceViz.cpp void observe_store(const Packet &p) { p 214 util/HalideTraceViz.cpp observe_load_or_store(p); p 215 util/HalideTraceViz.cpp stores += p.type.lanes; p 218 util/HalideTraceViz.cpp void observe_load_or_store(const Packet &p) { p 219 util/HalideTraceViz.cpp for (int i = 0; i < std::min(16, p.dimensions / p.type.lanes); i++) { p 220 util/HalideTraceViz.cpp for (int lane = 0; lane < p.type.lanes; lane++) { p 221 util/HalideTraceViz.cpp int coord = p.get_coord(i*p.type.lanes + lane); p 232 util/HalideTraceViz.cpp for (int i = 0; i < p.type.lanes; i++) { p 233 util/HalideTraceViz.cpp double value = p.get_value_as<double>(i); p 442 util/HalideTraceViz.cpp Packet &p, int current_dimension = 0, int x_off = 0, int y_off = 0) { p 443 util/HalideTraceViz.cpp assert(p.dimensions >= 2 * fi.config.dims); p 444 util/HalideTraceViz.cpp if (2 * current_dimension == p.dimensions) { p 454 util/HalideTraceViz.cpp int min = p.get_coord(current_dimension * 2 + 0); p 455 util/HalideTraceViz.cpp int extent = p.get_coord(current_dimension * 2 + 1); p 459 util/HalideTraceViz.cpp fill_realization(image, image_width, color, fi, p, current_dimension + 1, x_off, y_off); p 701 util/HalideTraceViz.cpp Packet p; p 702 util/HalideTraceViz.cpp if (!p.read_from_stdin()) { p 709 util/HalideTraceViz.cpp if (p.event == halide_trace_begin_pipeline) { p 710 util/HalideTraceViz.cpp pipeline_info[p.id] = {p.func(), p.id}; p 712 util/HalideTraceViz.cpp } else if (p.event == halide_trace_end_pipeline) { p 713 util/HalideTraceViz.cpp pipeline_info.erase(p.parent_id); p 717 util/HalideTraceViz.cpp PipelineInfo pipeline = pipeline_info[p.parent_id]; p 719 util/HalideTraceViz.cpp if (p.event == halide_trace_begin_realization || p 720 util/HalideTraceViz.cpp p.event == halide_trace_produce || p 721 util/HalideTraceViz.cpp p.event == halide_trace_consume) { p 722 util/HalideTraceViz.cpp pipeline_info[p.id] = pipeline; p 723 util/HalideTraceViz.cpp } else if (p.event == halide_trace_end_realization || p 724 util/HalideTraceViz.cpp p.event == halide_trace_end_produce || p 725 util/HalideTraceViz.cpp p.event == halide_trace_end_consume) { p 726 util/HalideTraceViz.cpp pipeline_info.erase(p.parent_id); p 729 util/HalideTraceViz.cpp string qualified_name = pipeline.name + ":" + p.func(); p 732 util/HalideTraceViz.cpp if (func_info.find(p.func()) != func_info.end()) { p 733 util/HalideTraceViz.cpp func_info[qualified_name] = func_info[p.func()]; p 734 util/HalideTraceViz.cpp func_info.erase(p.func()); p 736 util/HalideTraceViz.cpp fprintf(stderr, "Warning: ignoring func %s event %d \n", qualified_name.c_str(), p.event); p 737 util/HalideTraceViz.cpp fprintf(stderr, "Parent event %d %s\n", p.parent_id, pipeline.name.c_str()); p 767 util/HalideTraceViz.cpp switch (p.event) { p 771 util/HalideTraceViz.cpp if (p.event == halide_trace_store) { p 774 util/HalideTraceViz.cpp halide_clock += fi.config.store_cost * p.type.lanes; p 775 util/HalideTraceViz.cpp fi.stats.observe_store(p); p 777 util/HalideTraceViz.cpp halide_clock += fi.config.load_cost * p.type.lanes; p 778 util/HalideTraceViz.cpp fi.stats.observe_load(p); p 784 util/HalideTraceViz.cpp assert(p.dimensions >= p.type.lanes * fi.config.dims); p 785 util/HalideTraceViz.cpp if (p.dimensions >= p.type.lanes * fi.config.dims) { p 786 util/HalideTraceViz.cpp for (int lane = 0; lane < p.type.lanes; lane++) { p 791 util/HalideTraceViz.cpp int a = p.get_coord(d * p.type.lanes + lane); p 797 util/HalideTraceViz.cpp uint32_t color = p.event == halide_trace_load ? 0xffffdd44 : 0xff44ddff; p 805 util/HalideTraceViz.cpp if (p.event == halide_trace_store || p 812 util/HalideTraceViz.cpp double value = p.get_value_as<double>(lane); p 827 util/HalideTraceViz.cpp uint32_t channel = p.get_coord(fi.config.color_dim * p.type.lanes + lane); p 853 util/HalideTraceViz.cpp fill_realization(image, frame_width, fi.config.uninitialized_memory_color, fi, p); p 857 util/HalideTraceViz.cpp fill_realization(image, frame_width, 0, fi, p); p 870 util/HalideTraceViz.cpp fprintf(stderr, "Unknown tracing event code: %d\n", p.event); p 880 util/HalideTraceViz.cpp for (std::pair<std::string, FuncInfo> p : func_info) { p 881 util/HalideTraceViz.cpp funcs.push_back(p); p 890 util/HalideTraceViz.cpp for (std::pair<std::string, FuncInfo> p : funcs) { p 891 util/HalideTraceViz.cpp p.second.stats.report();