args 41 apps/cuda_mat_mul/mat_mul_generator.cpp .vectorize(B.in().args()[0]); args 88 apps/fft/fft.cpp vector<Var> args(x.args()); args 89 apps/fft/fft.cpp args.erase(args.begin()); args 94 apps/fft/fft.cpp refs.push_back(x(A({Expr(-i - 1)}, args))); args 96 apps/fft/fft.cpp refs.push_back(x(A({Expr(i)}, args))); args 113 apps/fft/fft.cpp F(f.args()) = undef_z(type); args 128 apps/fft/fft.cpp F(f.args()) = undef_z(type); args 162 apps/fft/fft.cpp F(f.args()) = undef_z(type); args 193 apps/fft/fft.cpp F(f.args()) = undef_z(type); args 233 apps/fft/fft.cpp vector<Var> args(x.args()); args 234 apps/fft/fft.cpp args.erase(args.begin()); args 240 apps/fft/fft.cpp ComplexExpr dft = x(A({Expr(0)}, args)); args 242 apps/fft/fft.cpp dft += expj((sign*2*kPi*k*n)/N) * x(A({Expr(k)}, args)); args 244 apps/fft/fft.cpp X(A({n}, args)) = dft; args 248 apps/fft/fft.cpp X(A({n}, args)) = sum(expj((sign*2*kPi*k*n)/N) * x(A({k}, args))); args 302 apps/fft/fft.cpp vector<Var> args = x.args(); args 303 apps/fft/fft.cpp Var n0(args[0]), n1(args[1]); args 304 apps/fft/fft.cpp args.erase(args.begin()); args 305 apps/fft/fft.cpp args.erase(args.begin()); args 330 apps/fft/fft.cpp ComplexExpr x_rs = x(A({n0, s + r * (N / R)}, args)); args 334 apps/fft/fft.cpp v(A({r, s, n0}, args)) = select(r > 0, likely(x_rs * W(r * (s % S))), x_rs * gain); args 339 apps/fft/fft.cpp v(A({r, s, n0}, args)) = x_rs; args 353 apps/fft/fft.cpp exchange(A({n0, n1}, args)) = undef_z(V.output_types()[0]); args 358 apps/fft/fft.cpp ComplexExpr V_rs = V(A({r_, s_, n0}, args)); args 365 apps/fft/fft.cpp exchange(A({n0, ((s_ / S) * R * S) + (s_ % S) + (r_ * S)}, args)) = V_rs; args 374 apps/fft/fft.cpp V.reorder_storage(V.args()[2], V.args()[0], V.args()[1]); args 379 apps/fft/fft.cpp V.vectorize(V.args()[2]); args 381 apps/fft/fft.cpp V.update(i).vectorize(V.args()[2]); args 419 apps/fft/fft.cpp vector<Halide::Var> argsT(f.args()); args 422 apps/fft/fft.cpp fT(argsT) = f(f.args()); args 442 apps/fft/fft.cpp vector<Var> args = f.args(); args 443 apps/fft/fft.cpp Var x(args[0]), y(args[1]); args 444 apps/fft/fft.cpp args.erase(args.begin()); args 445 apps/fft/fft.cpp args.erase(args.begin()); args 452 apps/fft/fft.cpp f_tiled(A({x, y, xo, yo}, args)) = f(A({xo * tile_size + x, yo * tile_size + y}, args)); args 456 apps/fft/fft.cpp f_tiledT(A({y, x, xo, yo}, args)) = f_tiled(A({x, y, xo, yo}, args)); args 459 apps/fft/fft.cpp fT_tiled(A({y, x, yo, xo}, args)) = f_tiledT(A({y, x, xo, yo}, args)); args 463 apps/fft/fft.cpp fT(A({y, x}, args)) = fT_tiled(A({y % tile_size, x % tile_size, y / tile_size, x / tile_size}, args)); args 488 apps/fft/fft.cpp outer = x.args()[2]; args 490 apps/fft/fft.cpp Var n0 = x.args()[0]; args 491 apps/fft/fft.cpp Var n1 = x.args()[1]; args 543 apps/fft/fft.cpp dft.bound(dft.args()[0], 0, N0); args 544 apps/fft/fft.cpp dft.bound(dft.args()[1], 0, N1); args 669 apps/fft/fft.cpp vector<Var> args(r.args()); args 670 apps/fft/fft.cpp Var n0(args[0]), n1(args[1]); args 671 apps/fft/fft.cpp args.erase(args.begin()); args 672 apps/fft/fft.cpp args.erase(args.begin()); args 676 apps/fft/fft.cpp if (!args.empty()) { args 677 apps/fft/fft.cpp outer = args.front(); args 709 apps/fft/fft.cpp zipped(A({n0, n1}, args)) = args 710 apps/fft/fft.cpp ComplexExpr(r(A({zip_n0, n1}, args)), args 711 apps/fft/fft.cpp r(A({zip_n0 + zip_width, n1}, args))); args 729 apps/fft/fft.cpp ComplexExpr Z = dft1(A({unzip_n0, n1}, args)); args 730 apps/fft/fft.cpp ComplexExpr conjsymZ = conj(dft1(A({unzip_n0, (N1 - n1) % N1}, args))); args 738 apps/fft/fft.cpp unzipped(A({n0, n1}, args)) = args 744 apps/fft/fft.cpp zipped_0(A({n0, n1}, args)) = args 745 apps/fft/fft.cpp select(n1 > 0, likely(unzipped(A({n0, n1}, args))), args 746 apps/fft/fft.cpp ComplexExpr(re(unzipped(A({n0, 0}, args))), args 747 apps/fft/fft.cpp re(unzipped(A({n0, N1 / 2}, args))))); args 782 apps/fft/fft.cpp dft(A({0, N1 / 2}, args)) = im(dft(A({0, 0}, args))); args 784 apps/fft/fft.cpp dft(A({n0z1, N1 / 2}, args)) = args 785 apps/fft/fft.cpp 0.5f * -j * (dft(A({n0z1, 0}, args)) - conj(dft(A({N0 - n0z1, 0}, args)))); args 789 apps/fft/fft.cpp dft(A({n0z2, N1 / 2}, args)) = conj(dft(A({N0 - n0z2, N1 / 2}, args))); args 792 apps/fft/fft.cpp dft(A({0, 0}, args)) = re(dft(A({0, 0}, args))); args 794 apps/fft/fft.cpp dft(A({n0z1, 0}, args)) = args 795 apps/fft/fft.cpp 0.5f * (dft(A({n0z1, 0}, args)) + conj(dft(A({N0 - n0z1, 0}, args)))); args 799 apps/fft/fft.cpp dft(A({n0z2, 0}, args)) = conj(dft(A({N0 - n0z2, 0}, args))); args 861 apps/fft/fft.cpp vector<Var> args = c.args(); args 862 apps/fft/fft.cpp Var n0(args[0]), n1(args[1]); args 863 apps/fft/fft.cpp args.erase(args.begin()); args 864 apps/fft/fft.cpp args.erase(args.begin()); args 868 apps/fft/fft.cpp if (!args.empty()) { args 869 apps/fft/fft.cpp outer = args.front(); args 885 apps/fft/fft.cpp ComplexExpr X = c(A({n0, 0}, args)); args 886 apps/fft/fft.cpp ComplexExpr Y = c(A({n0, N1 / 2}, args)); args 887 apps/fft/fft.cpp c_zipped(A({n0, n1}, args)) = select(n1 > 0, likely(c(A({n0, n1}, args))), X + j * Y); args 918 apps/fft/fft.cpp dft0_unzipped(A({n0, n1}, args)) = args 919 apps/fft/fft.cpp select(n1 <= 0, re(dft0(A({n0, 0}, args))), args 920 apps/fft/fft.cpp n1 >= N1 / 2, im(dft0(A({n0, 0}, args))), args 921 apps/fft/fft.cpp likely(dft0(A({n0, min(n1, (N1 / 2) - 1)}, args)))); args 942 apps/fft/fft.cpp dft0_bounded(A({n0_X, n1}, args)), args 943 apps/fft/fft.cpp conj(dft0_bounded(A({n0_X, n1_sym}, args)))); args 947 apps/fft/fft.cpp dft0_bounded(A({n0_Y, n1}, args)), args 948 apps/fft/fft.cpp conj(dft0_bounded(A({n0_Y, n1_sym}, args)))); args 949 apps/fft/fft.cpp zipped(A({n0, n1}, args)) = X + j * Y; args 968 apps/fft/fft.cpp unzipped(A({n0, n1}, args)) = args 970 apps/fft/fft.cpp re(dft_padded(A({unzip_n0, n1}, args))), args 971 apps/fft/fft.cpp im(dft_padded(A({unzip_n0, n1}, args)))); args 42 apps/fft/funct.h FuncRefT<T> operator()(Args&&... args) const { return Func::operator()(std::forward<Args>(args)...); } args 218 apps/interpolate/interpolate.cpp vector<Argument> args; args 219 apps/interpolate/interpolate.cpp args.push_back(input); args 35 apps/templates/SimpleAppAPI.h va_list args; args 36 apps/templates/SimpleAppAPI.h va_start(args, fmt); args 37 apps/templates/SimpleAppAPI.h vsnprintf(buffer, sizeof(buffer), fmt, args); args 39 apps/templates/SimpleAppAPI.h va_end(args); args 45 apps/templates/SimpleAppAPI.h va_list args; args 46 apps/templates/SimpleAppAPI.h va_start(args, fmt); args 47 apps/templates/SimpleAppAPI.h vsnprintf(buffer, sizeof(buffer), fmt, args); args 49 apps/templates/SimpleAppAPI.h va_end(args); args 19 apps/wavelet/wavelet.cpp va_list args; args 20 apps/wavelet/wavelet.cpp va_start(args, fmt); args 21 apps/wavelet/wavelet.cpp vsnprintf(buffer, sizeof(buffer), fmt, args); args 22 apps/wavelet/wavelet.cpp va_end(args); args 48 python_bindings/python/BoundaryConditions.cpp p::def("constant_exterior", &constant_exterior0<h::Buffer<T>>, p::args("source", "value")); args 74 python_bindings/python/BoundaryConditions.cpp p::def("repeat_edge", &repeat_edge0<h::Buffer<T>>, p::args("source")); args 100 python_bindings/python/BoundaryConditions.cpp p::def("repeat_image", &repeat_image0<h::Buffer<T>>, p::args("source")); args 126 python_bindings/python/BoundaryConditions.cpp p::def("mirror_image", &mirror_image0<h::Buffer<T>>, p::args("source")); args 152 python_bindings/python/BoundaryConditions.cpp p::def("mirror_interior", &mirror_interior0<h::Buffer<T>>, p::args("source")); args 167 python_bindings/python/BoundaryConditions.cpp p::def("constant_exterior", &constant_exterior0<h::ImageParam>, p::args("source", "value"), args 183 python_bindings/python/BoundaryConditions.cpp p::def("constant_exterior", &constant_exterior_bounds, p::args("source", "value", "bounds")); args 187 python_bindings/python/BoundaryConditions.cpp p::def("repeat_edge", &repeat_edge0<h::ImageParam>, p::args("source"), args 200 python_bindings/python/BoundaryConditions.cpp p::def("repeat_edge", &repeat_edge_bounds, p::args("source", "bounds")); args 204 python_bindings/python/BoundaryConditions.cpp p::def("repeat_image", &repeat_image0<h::ImageParam>, p::args("source"), args 217 python_bindings/python/BoundaryConditions.cpp p::def("repeat_image", &repeat_image_bounds, p::args("source", "bounds")); args 221 python_bindings/python/BoundaryConditions.cpp p::def("mirror_image", &mirror_image0<h::ImageParam>, p::args("source"), args 235 python_bindings/python/BoundaryConditions.cpp p::def("mirror_image", &mirror_image_bounds, p::args("source", "bounds")); args 239 python_bindings/python/BoundaryConditions.cpp p::def("mirror_interior", &mirror_interior0<h::ImageParam>, p::args("source"), args 254 python_bindings/python/BoundaryConditions.cpp p::def("mirror_interior", &mirror_interior_bounds, p::args("source", "bounds")); args 51 python_bindings/python/Func.cpp p::object func_realize(h::Func &f, Args... args) { args 52 python_bindings/python/Func.cpp return realization_to_python_object(f.realize(args...)); args 56 python_bindings/python/Func.cpp void func_realize_into(h::Func &f, Args... args) { args 57 python_bindings/python/Func.cpp f.realize(args...); args 61 python_bindings/python/Func.cpp void func_realize_tuple(h::Func &f, p::tuple obj, Args... args) { args 62 python_bindings/python/Func.cpp f.realize(python_object_to_realization(obj), args...); args 76 python_bindings/python/Func.cpp p::list args, args 79 python_bindings/python/Func.cpp auto args_vec = python_collection_to_vector<h::Argument>(args); args 86 python_bindings/python/Func.cpp p::list args, args 89 python_bindings/python/Func.cpp auto args_vec = python_collection_to_vector<h::Argument>(args); args 96 python_bindings/python/Func.cpp p::list args, args 99 python_bindings/python/Func.cpp auto args_vec = python_collection_to_vector<h::Argument>(args); args 106 python_bindings/python/Func.cpp p::list args, args 109 python_bindings/python/Func.cpp auto args_vec = python_collection_to_vector<h::Argument>(args); args 116 python_bindings/python/Func.cpp p::list args, args 119 python_bindings/python/Func.cpp auto args_vec = python_collection_to_vector<h::Argument>(args); args 126 python_bindings/python/Func.cpp p::list args, args 129 python_bindings/python/Func.cpp auto args_vec = python_collection_to_vector<h::Argument>(args); args 137 python_bindings/python/Func.cpp p::list args, args 140 python_bindings/python/Func.cpp auto args_vec = python_collection_to_vector<h::Argument>(args); args 253 python_bindings/python/Func.cpp p::args("self"), args 256 python_bindings/python/Func.cpp p::args("self", "target"), args 259 python_bindings/python/Func.cpp p::args("self", "x"), args 262 python_bindings/python/Func.cpp p::args("self", "x", "target"), args 265 python_bindings/python/Func.cpp p::args("self", "x", "y"), args 268 python_bindings/python/Func.cpp p::args("self", "x", "y", "target"), args 271 python_bindings/python/Func.cpp p::args("self", "x", "y", "z"), args 274 python_bindings/python/Func.cpp p::args("self", "x", "y", "z", "target"), args 277 python_bindings/python/Func.cpp p::args("self", "x", "y", "z", "w"), args 280 python_bindings/python/Func.cpp p::args("self", "x", "y", "z", "w", "target"), args 283 python_bindings/python/Func.cpp p::args("self", "output"), args 286 python_bindings/python/Func.cpp p::args("self", "output", "target"), args 289 python_bindings/python/Func.cpp p::args("self", "output"), args 292 python_bindings/python/Func.cpp p::args("self", "output", "target"), args 295 python_bindings/python/Func.cpp p::args("self", "output"), args 298 python_bindings/python/Func.cpp p::args("self", "output", "target"), args 301 python_bindings/python/Func.cpp p::args("self", "output"), args 304 python_bindings/python/Func.cpp p::args("self", "output", "target"), args 307 python_bindings/python/Func.cpp p::args("self", "output"), args 310 python_bindings/python/Func.cpp p::args("self", "output", "target"), args 313 python_bindings/python/Func.cpp p::args("self", "output"), args 316 python_bindings/python/Func.cpp p::args("self", "output", "target"), args 319 python_bindings/python/Func.cpp p::args("self", "output"), args 322 python_bindings/python/Func.cpp p::args("self", "output", "target"), args 325 python_bindings/python/Func.cpp p::args("self", "output"), args 328 python_bindings/python/Func.cpp p::args("self", "output", "target"), args 331 python_bindings/python/Func.cpp p::args("self", "output"), args 334 python_bindings/python/Func.cpp p::args("self", "output", "target"), args 339 python_bindings/python/Func.cpp p::args("self", "filename", "args", "fn_name", "target"), args 347 python_bindings/python/Func.cpp p::args("self", "filename", "args", "fn_name", "target"), args 356 python_bindings/python/Func.cpp p::args("self", "filename", "args", "fn_name", "target"), args 367 python_bindings/python/Func.cpp p::args("self", "filename", "args", "fn_name", "target"), args 376 python_bindings/python/Func.cpp p::args("self", "filename", "args", "fn_name", "target"), args 385 python_bindings/python/Func.cpp p::args("self", "filename_prefix", "args", "fn_name", "target"), args 389 python_bindings/python/Func.cpp func_class.def("compile_jit", &func_compile_jit1, p::args("self", "target"), args 398 python_bindings/python/Func.cpp func_class.def("debug_to_file", &Func::debug_to_file, p::args("self", "filename"), args 408 python_bindings/python/Func.cpp p::args("self", "filename", "args", "fmt", "target"), args 420 python_bindings/python/Func.cpp func_class.def("args", &Func::args, p::arg("self"), args 469 python_bindings/python/Func.cpp p::args("self", "function_name", "params", "output_type", "dimensionality"), args 475 python_bindings/python/Func.cpp p::args("self", "function_name", "params", "output_types", "dimensionality")); args 511 python_bindings/python/Func.cpp func_class.def("split", &func_split<Func>, p::args("self", "old", "outer", "inner", "factor"), args 518 python_bindings/python/Func.cpp .def("fuse", &Func::fuse, p::args("self", "inner", "outer", "fused"), args 523 python_bindings/python/Func.cpp .def("serial", &Func::serial, p::args("self", "var"), args 527 python_bindings/python/Func.cpp func_class.def("parallel", &func_parallel0<Func>, p::args("self", "var"), args 530 python_bindings/python/Func.cpp .def("parallel", &func_parallel1<Func>, p::args("self", "var", "factor"), args 533 python_bindings/python/Func.cpp func_class.def("vectorize", &func_vectorize1<Func>, p::args("self", "var", "factor"), args 540 python_bindings/python/Func.cpp .def("vectorize", &func_vectorize0<Func>, p::args("self", "var"), args 543 python_bindings/python/Func.cpp func_class.def("unroll", &func_unroll1<Func>, p::args("self", "var", "factor"), args 549 python_bindings/python/Func.cpp .def("unroll", &func_unroll0<Func>, p::args("self", "var"), args 552 python_bindings/python/Func.cpp func_class.def("bound", &Func::bound, p::args("self", "var", "min", "extent"), args 563 python_bindings/python/Func.cpp func_class.def("tile", &func_tile0<Func>, p::args("self", "x", "y", "xo", "yo", "xi", "yi", "xfactor", "yfactor"), args 569 python_bindings/python/Func.cpp func_class.def("tile", &func_tile1<Func>, p::args("self", "x", "y", "xi", "yi", "xfactor", "yfactor"), args 573 python_bindings/python/Func.cpp func_class.def("reorder", &func_reorder0<Func, p::tuple>, p::args("self", "vars"), args 577 python_bindings/python/Func.cpp .def("reorder", &func_reorder0<Func, p::list>, p::args("self", "vars"), args 588 python_bindings/python/Func.cpp func_class.def("rename", &Func::rename, p::args("self", "old_name", "new_name"), args 606 python_bindings/python/Func.cpp func_class.def("reorder_storage", &func_reorder_storage0<Func, p::tuple>, p::args("self", "dims"), args 608 python_bindings/python/Func.cpp .def("reorder_storage", &func_reorder_storage0<Func, p::list>, p::args("self", "dims"), args 615 python_bindings/python/Func.cpp func_class.def("compute_at", &func_compute_at0, p::args("self", "f", "var"), args 619 python_bindings/python/Func.cpp .def("compute_at", &func_compute_at1, p::args("self", "f", "var"), args 626 python_bindings/python/Func.cpp func_class.def("store_at", &func_store_at0, p::args("self", "f", "var"), args 633 python_bindings/python/Func.cpp .def("store_at", &func_store_at1, p::args("self", "f", "var"), args 667 python_bindings/python/Func.cpp func_class.def("specialize", &Func::specialize, p::args("self", "condition"), args 59 python_bindings/python/Func_Ref.cpp .def("__iadd__", &iadd_func<FuncTupleElementRef &, h::Expr>, p::args("self", "expr"), args 65 python_bindings/python/Func_Ref.cpp .def("__isub__", &isub_func<FuncTupleElementRef &, h::Expr>, p::args("self", "expr"), args 72 python_bindings/python/Func_Ref.cpp .def("__imul__", &imul_func<FuncTupleElementRef &, h::Expr>, p::args("self", "expr"), args 79 python_bindings/python/Func_Ref.cpp .def("__idiv__", &idiv_func<FuncTupleElementRef &, h::Expr>, p::args("self", "expr"), args 136 python_bindings/python/Func_Ref.cpp .def("__iadd__", &iadd_func<FuncRef &, h::Expr>, p::args("self", "expr"), args 142 python_bindings/python/Func_Ref.cpp .def("__isub__", &isub_func<FuncRef &, h::Expr>, p::args("self", "expr"), args 148 python_bindings/python/Func_Ref.cpp .def("__imul__", &imul_func<FuncRef &, h::Expr>, p::args("self", "expr"), args 154 python_bindings/python/Func_Ref.cpp .def("__idiv__", &idiv_func<FuncRef &, h::Expr>, p::args("self", "expr"), args 41 python_bindings/python/Func_Stage.cpp .def("split", &func_split<Stage>, p::args("self", "old", "outer", "inner", "factor"), args 48 python_bindings/python/Func_Stage.cpp .def("fuse", &Stage::fuse, p::args("self", "inner", "outer", "fused"), args 53 python_bindings/python/Func_Stage.cpp .def("serial", &Stage::serial, p::args("self", "var"), args 57 python_bindings/python/Func_Stage.cpp stage_class.def("parallel", &func_parallel0<Stage>, p::args("self", "var"), args 60 python_bindings/python/Func_Stage.cpp .def("parallel", &func_parallel1<Stage>, p::args("self", "var", "factor"), args 63 python_bindings/python/Func_Stage.cpp stage_class.def("vectorize", &func_vectorize1<Stage>, p::args("self", "var", "factor"), args 70 python_bindings/python/Func_Stage.cpp .def("vectorize", &func_vectorize0<Stage>, p::args("self", "var"), args 73 python_bindings/python/Func_Stage.cpp stage_class.def("unroll", &func_unroll1<Stage>, p::args("self", "var", "factor"), args 79 python_bindings/python/Func_Stage.cpp .def("unroll", &func_unroll0<Stage>, p::args("self", "var"), args 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"), args 87 python_bindings/python/Func_Stage.cpp .def("tile", &func_tile1<Stage>, p::args("self", "x", "y", "xi", "yi", "xfactor", "yfactor"), args 91 python_bindings/python/Func_Stage.cpp stage_class.def("reorder", &func_reorder0<Stage, p::tuple>, p::args("self", "vars"), args 95 python_bindings/python/Func_Stage.cpp .def("reorder", &func_reorder0<Stage, p::list>, p::args("self", "vars"), args 106 python_bindings/python/Func_Stage.cpp stage_class.def("rename", &Stage::rename, p::args("self", "old_name", "new_name"), args 110 python_bindings/python/Func_Stage.cpp stage_class.def("specialize", &Stage::specialize, p::args("self", "condition"), args 20 python_bindings/python/Func_VarOrRVar.cpp p::init<std::string, bool>(p::args("self", "n", "r"))) args 21 python_bindings/python/Func_VarOrRVar.cpp .def(p::init<h::Var>(p::args("self", "v"))) args 22 python_bindings/python/Func_VarOrRVar.cpp .def(p::init<h::RVar>(p::args("self", "r"))) args 23 python_bindings/python/Func_VarOrRVar.cpp .def(p::init<h::RDom>(p::args("self", "r"))) args 19 python_bindings/python/Function.cpp .def(p::init<h::Buffer<>>(p::args("self", "b"))) args 20 python_bindings/python/Function.cpp .def(p::init<h::Expr>(p::args("self", "e"))) args 21 python_bindings/python/Function.cpp .def(p::init<int>(p::args("self", "e"))) args 22 python_bindings/python/Function.cpp .def(p::init<float>(p::args("self", "e"))) args 212 python_bindings/python/IROperator.cpp p::args("a", "b"), args 219 python_bindings/python/IROperator.cpp p::args("a", "b"), args 227 python_bindings/python/IROperator.cpp p::args("a", "b"), args 235 python_bindings/python/IROperator.cpp p::args("a", "b"), args 242 python_bindings/python/IROperator.cpp p::args("a", "b"), args 250 python_bindings/python/IROperator.cpp p::args("a", "b"), args 258 python_bindings/python/IROperator.cpp p::args("a", "min_val", "max_val"), args 262 python_bindings/python/IROperator.cpp p::def("abs", &h::abs, p::args("a"), args 268 python_bindings/python/IROperator.cpp p::def("absd", &h::absd, p::args("a", "b"), args 274 python_bindings/python/IROperator.cpp p::def("select", &select0, p::args("condition", "true_value", "false_value"), args 280 python_bindings/python/IROperator.cpp p::def("select", &select1, p::args("c1", "v1", "c2", "v2", "default_val"), args 286 python_bindings/python/IROperator.cpp p::def("select", &select2, p::args( args 292 python_bindings/python/IROperator.cpp p::def("select", &select3, p::args( args 299 python_bindings/python/IROperator.cpp p::def("select", &select4, p::args( args 307 python_bindings/python/IROperator.cpp p::def("select", &select5, p::args( args 316 python_bindings/python/IROperator.cpp p::def("select", &select6, p::args( args 365 python_bindings/python/IROperator.cpp p::def("sin", &h::sin, p::args("x"), args 369 python_bindings/python/IROperator.cpp p::def("asin", &h::asin, p::args("x"), args 373 python_bindings/python/IROperator.cpp p::def("cos", &h::cos, p::args("x"), args 377 python_bindings/python/IROperator.cpp p::def("acos", &h::acos, p::args("x"), args 381 python_bindings/python/IROperator.cpp p::def("tan", &h::tan, p::args("x"), args 385 python_bindings/python/IROperator.cpp p::def("atan", &h::atan, p::args("x"), args 389 python_bindings/python/IROperator.cpp p::def("atan", &h::atan2, p::args("x", "y"), args 393 python_bindings/python/IROperator.cpp p::def("atan2", &h::atan2, p::args("x", "y"), args 399 python_bindings/python/IROperator.cpp p::def("sinh", &h::sinh, p::args("x"), args 403 python_bindings/python/IROperator.cpp p::def("asinh", &h::asinh, p::args("x"), args 407 python_bindings/python/IROperator.cpp p::def("cosh", &h::cosh, p::args("x"), args 411 python_bindings/python/IROperator.cpp p::def("acosh", &h::acosh, p::args("x"), args 415 python_bindings/python/IROperator.cpp p::def("tanh", &h::tanh, p::args("x"), args 419 python_bindings/python/IROperator.cpp p::def("atanh", &h::atanh, p::args("x"), args 424 python_bindings/python/IROperator.cpp p::def("sqrt", &h::sqrt, p::args("x"), args 429 python_bindings/python/IROperator.cpp p::def("hypot", &h::hypot, p::args("x"), args 435 python_bindings/python/IROperator.cpp p::def("exp", &h::exp, p::args("x"), args 444 python_bindings/python/IROperator.cpp p::def("log", &h::log, p::args("x"), args 453 python_bindings/python/IROperator.cpp p::def("pow", &h::pow, p::args("x"), args 461 python_bindings/python/IROperator.cpp p::def("erf", &h::erf, p::args("x"), args 466 python_bindings/python/IROperator.cpp p::def("fast_log", &h::fast_log, p::args("x"), args 471 python_bindings/python/IROperator.cpp p::def("fast_exp", &h::fast_exp, p::args("x"), args 477 python_bindings/python/IROperator.cpp p::def("fast_pow", &h::fast_pow, p::args("x"), args 483 python_bindings/python/IROperator.cpp p::def("fast_inverse", &h::fast_inverse, p::args("x"), args 488 python_bindings/python/IROperator.cpp p::def("fast_inverse_sqrt", &h::fast_inverse_sqrt, p::args("x"), args 493 python_bindings/python/IROperator.cpp p::def("floor", &h::floor, p::args("x"), args 499 python_bindings/python/IROperator.cpp p::def("ceil", &h::ceil, p::args("x"), args 505 python_bindings/python/IROperator.cpp p::def("round", &h::round, p::args("x"), args 511 python_bindings/python/IROperator.cpp p::def("trunc", &h::trunc, p::args("x"), args 517 python_bindings/python/IROperator.cpp p::def("fract", &h::fract, p::args("x"), args 523 python_bindings/python/IROperator.cpp p::def("is_nan", &h::is_nan, p::args("x"), args 527 python_bindings/python/IROperator.cpp p::def("reinterpret", &reinterpret0, p::args("t, e"), args 530 python_bindings/python/IROperator.cpp p::def("cast", &cast0, p::args("t", "e"), args 536 python_bindings/python/IROperator.cpp p::def("lerp", &h::lerp, p::args("zero_val", "one_val", "weight"), args 576 python_bindings/python/IROperator.cpp p::def("popcount", &h::popcount, p::args("x"), args 579 python_bindings/python/IROperator.cpp p::def("count_leading_zeros", &h::count_leading_zeros, p::args("x"), args 583 python_bindings/python/IROperator.cpp p::def("count_trailing_zeros", &h::count_trailing_zeros, p::args("x"), args 587 python_bindings/python/IROperator.cpp p::def("random_float", &random_float1, p::args("seed"), args 617 python_bindings/python/IROperator.cpp p::def("random_int", &random_int1, p::args("seed"), args 622 python_bindings/python/IROperator.cpp p::def("undef", &undef0, p::args("type"), args 641 python_bindings/python/IROperator.cpp p::def("memoize_tag", &memoize_tag0, p::args("result", "cache_key_values"), args 673 python_bindings/python/IROperator.cpp p::def("likely", &h::likely, p::args("e"), args 42 python_bindings/python/Image.cpp Ret buffer_call_operator(h::Buffer<T> &that, Args... args) { args 43 python_bindings/python/Image.cpp return that(args...); args 262 python_bindings/python/Image.cpp p::args("self", "x"), args 266 python_bindings/python/Image.cpp p::args("self", "x", "y"), args 270 python_bindings/python/Image.cpp p::args("self", "x", "y", "z"), args 274 python_bindings/python/Image.cpp p::args("self", "x", "y", "z", "w"), args 278 python_bindings/python/Image.cpp p::args("self", "r"), args 282 python_bindings/python/Image.cpp p::args("self", "b"), args 306 python_bindings/python/Image.cpp .def("stride", buffer_stride<T>, p::args("self", "dim"), args 311 python_bindings/python/Image.cpp .def("extent", buffer_extent<T>, p::args("self", "dim"), args 313 python_bindings/python/Image.cpp .def("min", buffer_min<T>, p::args("self", "dim"), args 320 python_bindings/python/Image.cpp p::args("self", "m0"), args 323 python_bindings/python/Image.cpp p::args("self", "m0", "m1"), args 326 python_bindings/python/Image.cpp p::args("self", "m0", "m1", "m2"), args 329 python_bindings/python/Image.cpp p::args("self", "m0", "m1", "m2", "m3"), args 364 python_bindings/python/Image.cpp p::args("self", "x"), args 368 python_bindings/python/Image.cpp p::args("self", "x", "y"), args 372 python_bindings/python/Image.cpp p::args("self", "x", "y", "z"), args 375 python_bindings/python/Image.cpp p::args("self", "x", "y", "z", "w"), args 378 python_bindings/python/Image.cpp p::args("self", "tuple"), args 385 python_bindings/python/Image.cpp p::args("self", "x"), args 388 python_bindings/python/Image.cpp p::args("self", "x", "y"), args 391 python_bindings/python/Image.cpp p::args("self", "x", "y", "z"), args 394 python_bindings/python/Image.cpp p::args("self", "x", "y", "z", "w"), args 397 python_bindings/python/Image.cpp .def("__setitem__", buffer_to_setitem_operator0<T>, p::args("self", "x", "value"), args 399 python_bindings/python/Image.cpp .def("__setitem__", buffer_to_setitem_operator1<T>, p::args("self", "x", "y", "value"), args 401 python_bindings/python/Image.cpp .def("__setitem__", buffer_to_setitem_operator2<T>, p::args("self", "x", "y", "z", "value"), args 403 python_bindings/python/Image.cpp .def("__setitem__", buffer_to_setitem_operator3<T>, p::args("self", "x", "y", "z", "w", "value"), args 405 python_bindings/python/Image.cpp .def("__setitem__", buffer_to_setitem_operator4<T>, p::args("self", "tuple", "value"), args 549 python_bindings/python/Image.cpp static p::object create_buffer_object(Args... args) { args 553 python_bindings/python/Image.cpp PyObject *obj = converter(new BufferType(args...)); args 558 python_bindings/python/Image.cpp static p::object create_buffer_impl(h::Type t, Args... args) { args 559 python_bindings/python/Image.cpp if (t == h::UInt(8)) return create_buffer_object<uint8_t>(args...); args 560 python_bindings/python/Image.cpp if (t == h::UInt(16)) return create_buffer_object<uint16_t>(args...); args 561 python_bindings/python/Image.cpp if (t == h::UInt(32)) return create_buffer_object<uint32_t>(args...); args 562 python_bindings/python/Image.cpp if (t == h::Int(8)) return create_buffer_object<int8_t>(args...); args 563 python_bindings/python/Image.cpp if (t == h::Int(16)) return create_buffer_object<int16_t>(args...); args 564 python_bindings/python/Image.cpp if (t == h::Int(32)) return create_buffer_object<int32_t>(args...); args 565 python_bindings/python/Image.cpp if (t == h::Float(32)) return create_buffer_object<float>(args...); args 566 python_bindings/python/Image.cpp if (t == h::Float(64)) return create_buffer_object<double>(args...); args 614 python_bindings/python/Image.cpp p::args("type"), args 617 python_bindings/python/Image.cpp p::args("type", "x"), args 620 python_bindings/python/Image.cpp p::args("type", "x", "y"), args 623 python_bindings/python/Image.cpp p::args("type", "x", "y", "z"), args 626 python_bindings/python/Image.cpp p::args("type", "x", "y", "z", "w"), args 630 python_bindings/python/Image.cpp p::args("type", "r"), args 635 python_bindings/python/Image.cpp p::args("b"), args 643 python_bindings/python/Image.cpp p::args("array"), args 650 python_bindings/python/Image.cpp p::args("array"), args 657 python_bindings/python/Image.cpp p::args("buffer"), args 45 python_bindings/python/Lambda.cpp p::def("lambda1D", &lambda1D, p::args("x", "e"), args 51 python_bindings/python/Lambda.cpp p::def("lambda2D", &lambda2D, p::args("x", "y", "e"), args 57 python_bindings/python/Lambda.cpp p::def("lambda3D", &lambda3D, p::args("x", "y", "z", "e"), args 63 python_bindings/python/Lambda.cpp p::def("lambda4D", &lambda4D, p::args("x", "y", "z", "w", "e"), args 69 python_bindings/python/Lambda.cpp p::def("lambda5D", &lambda5D, p::args("x", "y", "z", "w", "v", "e"), args 78 python_bindings/python/Param.cpp p::init<h::Type, int, std::string>(p::args("self", "t", "dims", "name"))) args 79 python_bindings/python/Param.cpp .def(p::init<h::Type, int>(p::args("self", "t", "dims"))) args 110 python_bindings/python/Param.cpp .def("set", &image_param_set<uint8_t>, p::args("self", "im"), args 112 python_bindings/python/Param.cpp .def("set", &image_param_set<uint16_t>, p::args("self", "im"), args 114 python_bindings/python/Param.cpp .def("set", &image_param_set<uint32_t>, p::args("self", "im"), args 116 python_bindings/python/Param.cpp .def("set", &image_param_set<int8_t>, p::args("self", "im"), args 118 python_bindings/python/Param.cpp .def("set", &image_param_set<int16_t>, p::args("self", "im"), args 120 python_bindings/python/Param.cpp .def("set", &image_param_set<int32_t>, p::args("self", "im"), args 122 python_bindings/python/Param.cpp .def("set", &image_param_set<float>, p::args("self", "im"), args 124 python_bindings/python/Param.cpp .def("set", &image_param_set<double>, p::args("self", "im"), args 128 python_bindings/python/Param.cpp .def("__getitem__", &imageparam_to_expr_operator0, p::args("self", "tuple"), args 133 python_bindings/python/Param.cpp .def("__getitem__", &imageparam_to_expr_operator1, p::args("self", "expr"), args 308 python_bindings/python/Param.cpp p::args("self", "val"), args 312 python_bindings/python/Param.cpp p::args("self", "name"), "Construct a scalar parameter of type T with the given name.")) args 314 python_bindings/python/Param.cpp p::args("self", "name", "val"), args 318 python_bindings/python/Param.cpp p::args("self", "val", "min", "max"), args 322 python_bindings/python/Param.cpp p::args("self", "name", "val", "min", "max"), args 334 python_bindings/python/Param.cpp .def("set", &Param<T>::set, p::args("self", "val"), args 343 python_bindings/python/Param.cpp .def("set_range", &Param<T>::set_range, p::args("self", "min", "max"), args 346 python_bindings/python/Param.cpp .def("set_min_value", &Param<T>::set_min_value, p::args("self", "min"), args 349 python_bindings/python/Param.cpp .def("set_max_value", &Param<T>::set_max_value, p::args("self", "max"), args 398 python_bindings/python/Param.cpp p::object create_param_object(Args... args) { args 402 python_bindings/python/Param.cpp PyObject *obj = converter(new ParamType(args...)); args 504 python_bindings/python/Param.cpp p::object operator()(h::Type type, p::object val, Args... args) { args 510 python_bindings/python/Param.cpp return call_create_param_object<pixel_t>(true_val, args...); args 520 python_bindings/python/Param.cpp return create_param1_impl_t<pixels_types_tail_t, Args...>()(type, val, args...); args 554 python_bindings/python/Param.cpp p::object operator()(h::Type type, p::object val, Args... args) { args 611 python_bindings/python/Param.cpp p::def("Param", &ParamFactory::create_param5, p::args("type", "name", "val", "min", "max"), args 614 python_bindings/python/Param.cpp p::def("Param", &ParamFactory::create_param4, p::args("type", "val", "min", "max"), args 617 python_bindings/python/Param.cpp p::def("Param", &ParamFactory::create_param3, p::args("type", "name", "val"), args 620 python_bindings/python/Param.cpp p::def("Param", &ParamFactory::create_param2, p::args("type", "val"), args 623 python_bindings/python/Param.cpp p::def("Param", &ParamFactory::create_param1, p::args("type", "name"), args 625 python_bindings/python/Param.cpp p::def("Param", &ParamFactory::create_param0, p::args("type"), args 23 python_bindings/python/RDom.cpp p::init<>(p::args("self"), "An empty reduction variable.")) args 24 python_bindings/python/RDom.cpp .def(p::init<std::string>(p::args("self", "name"), "Construct an RVar with the given name")) args 27 python_bindings/python/RDom.cpp p::args("self", "domain", "index"), args 52 python_bindings/python/RDom.cpp h::RDom *RDom_constructor0(p::tuple args, std::string name = "") { args 53 python_bindings/python/RDom.cpp const size_t args_len = p::len(args); args 61 python_bindings/python/RDom.cpp p::object o = args[i]; args 68 python_bindings/python/RDom.cpp p::object o = args[j]; args 147 python_bindings/python/RDom.cpp .def(p::init<h::Buffer<>>(p::args("self", "buffer"), args 151 python_bindings/python/RDom.cpp .def(p::init<h::ImageParam>(p::args("self", "image_param"), args 156 python_bindings/python/RDom.cpp p::args("self", "domain"), args 165 python_bindings/python/RDom.cpp (p::args("min0", "extent0"), args 171 python_bindings/python/RDom.cpp (p::args("min0", "extent0", "min1", "extent1"), args 177 python_bindings/python/RDom.cpp (p::args("min0", "extent0", "min1", "extent1", args 184 python_bindings/python/RDom.cpp (p::args("min0", "extent0", "min1", "extent1", args 194 python_bindings/python/RDom.cpp .def("same_as", &RDom::same_as, p::args("self", "other"), args 198 python_bindings/python/RDom.cpp .def("where", &RDom::where, p::args("self", "predicate"), args 60 python_bindings/python/Type.cpp .def(p::init<halide_type_code_t, int, int>(p::args("code", "bits", "lanes"))) args 61 python_bindings/python/Type.cpp .def(p::init<h::Type>(p::args("that"), "Copy constructor")) args 85 python_bindings/python/Type.cpp .def("with_lanes", &Type::with_lanes, p::args("self", "w"), args 87 python_bindings/python/Type.cpp .def("with_bits", &Type::with_bits, p::args("self", "w"), args 63 python_bindings/python/Var.cpp p::init<std::string>(p::args("self", "name"))) args 69 python_bindings/python/Var.cpp .def("same_as", &Var::same_as, p::args("self", "other"), "Test if two Vars are the same.") args 70 python_bindings/python/Var.cpp .def("__eq__", &Var::same_as, p::args("self", "other"), "Test if two Vars are the same.") args 37 src/AddImageChecks.cpp r.dimensions = (int)op->args.size(); args 43 src/AddImageChecks.cpp r.dimensions = (int)op->args.size(); args 178 src/AddImageChecks.cpp const vector<ExternFuncArgument> &args = f.extern_arguments(); args 179 src/AddImageChecks.cpp for (size_t j = 0; j < args.size(); j++) { args 180 src/AddImageChecks.cpp if ((args[j].image_param.defined() && args 181 src/AddImageChecks.cpp args[j].image_param.name() == param.name()) || args 182 src/AddImageChecks.cpp (args[j].buffer.defined() && args 183 src/AddImageChecks.cpp args[j].buffer.name() == param.name())) { args 31 src/AllocationBoundsInference.cpp const vector<string> f_args = f.args(); args 44 src/Associativity.cpp const vector<Expr> &args; args 61 src/Associativity.cpp internal_assert(args.size() == op->args.size()) args 63 src/Associativity.cpp for (size_t i = 0; i < op->args.size(); i++) { args 64 src/Associativity.cpp if (!equal(op->args[i], args[i])) { args 86 src/Associativity.cpp ConvertSelfRef(const string &f, const vector<Expr> &args, int idx, args 88 src/Associativity.cpp func(f), args(args), value_index(idx), op_x_names(x_names) {} args 308 src/Associativity.cpp AssociativeOp prove_associativity(const string &f, vector<Expr> args, vector<Expr> exprs) { args 311 src/Associativity.cpp for (Expr &arg : args) { args 337 src/Associativity.cpp ConvertSelfRef csr(f, args, idx, op_x_names); args 446 src/Associativity.cpp std::string print_args(const string &f, const vector<Expr> &args, const vector<Expr> &exprs) { args 449 src/Associativity.cpp for (size_t i = 0; i < args.size(); ++i) { args 450 src/Associativity.cpp stream << args[i]; args 451 src/Associativity.cpp if (i != args.size() - 1) { args 472 src/Associativity.cpp void check_associativity(const string &f, vector<Expr> args, vector<Expr> exprs, args 474 src/Associativity.cpp auto result = prove_associativity(f, args, exprs); args 476 src/Associativity.cpp << "Checking associativity: " << print_args(f, args, exprs) << "\n" args 483 src/Associativity.cpp << "Checking associativity: " << print_args(f, args, exprs) << "\n" args 488 src/Associativity.cpp << "Checking associativity: " << print_args(f, args, exprs) << "\n" args 493 src/Associativity.cpp << "Checking associativity: " << print_args(f, args, exprs) << "\n" args 508 src/Associativity.cpp << "Checking associativity: " << print_args(f, args, exprs) << "\n" args 96 src/Associativity.h const std::string &f, std::vector<Expr> args, std::vector<Expr> exprs); args 9 src/BoundaryConditions.cpp std::vector<Var> args(source.args()); args 10 src/BoundaryConditions.cpp user_assert(args.size() >= bounds.size()) << args 12 src/BoundaryConditions.cpp ") than dimensions (" << args.size() << ") Func " << args 17 src/BoundaryConditions.cpp Var arg_var = args[i]; args 32 src/BoundaryConditions.cpp actuals.insert(actuals.end(), args.begin() + actuals.size(), args.end()); args 35 src/BoundaryConditions.cpp bounded(args) = source(actuals); args 42 src/BoundaryConditions.cpp std::vector<Var> source_args = source.args(); args 43 src/BoundaryConditions.cpp std::vector<Var> args(source_args); args 44 src/BoundaryConditions.cpp user_assert(args.size() >= bounds.size()) << args 69 src/BoundaryConditions.cpp def.push_back(select(out_of_bounds, value[i], repeat_edge(source, bounds)(args)[i])); args 71 src/BoundaryConditions.cpp bounded(args) = Tuple(def); args 73 src/BoundaryConditions.cpp bounded(args) = select(out_of_bounds, value[0], repeat_edge(source, bounds)(args)); args 87 src/BoundaryConditions.cpp std::vector<Var> args(source.args()); args 88 src/BoundaryConditions.cpp user_assert(args.size() >= bounds.size()) << args 90 src/BoundaryConditions.cpp ") than dimensions (" << args.size() << ") Func " << args 95 src/BoundaryConditions.cpp Var arg_var = args[i]; args 118 src/BoundaryConditions.cpp actuals.insert(actuals.end(), args.begin() + actuals.size(), args.end()); args 121 src/BoundaryConditions.cpp bounded(args) = source(actuals); args 128 src/BoundaryConditions.cpp std::vector<Var> args(source.args()); args 129 src/BoundaryConditions.cpp user_assert(args.size() >= bounds.size()) << args 131 src/BoundaryConditions.cpp ") than dimensions (" << args.size() << ") Func " << args 136 src/BoundaryConditions.cpp Var arg_var = args[i]; args 159 src/BoundaryConditions.cpp actuals.insert(actuals.end(), args.begin() + actuals.size(), args.end()); args 162 src/BoundaryConditions.cpp bounded(args) = source(actuals); args 169 src/BoundaryConditions.cpp std::vector<Var> args(source.args()); args 170 src/BoundaryConditions.cpp user_assert(args.size() >= bounds.size()) << args 172 src/BoundaryConditions.cpp ") than dimensions (" << args.size() << ") Func " << args 177 src/BoundaryConditions.cpp Var arg_var = args[i]; args 205 src/BoundaryConditions.cpp actuals.insert(actuals.end(), args.begin() + actuals.size(), args.end()); args 208 src/BoundaryConditions.cpp bounded(args) = source(actuals); args 583 src/Bounds.cpp std::vector<Expr> new_args(op->args.size()); args 585 src/Bounds.cpp for (size_t i = 0; i < op->args.size() && const_args; i++) { args 586 src/Bounds.cpp op->args[i].accept(this); args 613 src/Bounds.cpp } else if (op->args[0].type().is_int() && op->args[0].type().bits() >= 32) { args 626 src/Bounds.cpp assert(op->args.size() == 1); args 627 src/Bounds.cpp op->args[0].accept(this); args 629 src/Bounds.cpp assert(op->args.size() == 2); args 630 src/Bounds.cpp op->args[1].accept(this); args 632 src/Bounds.cpp assert(op->args.size() == 3); args 634 src/Bounds.cpp Expr equivalent_select = Select::make(op->args[0], op->args[1], op->args[2]); args 646 src/Bounds.cpp } else if (op->args.size() == 1 && interval.is_bounded() && args 670 src/Bounds.cpp interval = Interval(Call::make(Int(32), Call::buffer_get_min, op->args, Call::Extern), args 671 src/Bounds.cpp Call::make(Int(32), Call::buffer_get_max, op->args, Call::Extern)); args 673 src/Bounds.cpp internal_assert(op->args.size() >= 1); args 674 src/Bounds.cpp op->args[0].accept(this); args 1002 src/Bounds.cpp assert(op->args.size() == 3); args 1005 src/Bounds.cpp Stmt then_case = Evaluate::make(op->args[1]); args 1006 src/Bounds.cpp Stmt else_case = Evaluate::make(op->args[2]); args 1007 src/Bounds.cpp Stmt equivalent_if = IfThenElse::make(op->args[0], then_case, else_case); args 1016 src/Bounds.cpp for (Expr e : op->args) { args 1020 src/Bounds.cpp Box b(op->args.size()); args 1022 src/Bounds.cpp for (size_t i = 0; i < op->args.size(); i++) { args 1023 src/Bounds.cpp b[i] = bounds_of_expr_in_scope(op->args[i], scope, func_bounds); args 1120 src/Bounds.cpp c = call->args[0]; args 1293 src/Bounds.cpp Box b(op->args.size()); args 1294 src/Bounds.cpp for (size_t i = 0; i < op->args.size(); i++) { args 1295 src/Bounds.cpp b[i] = bounds_of_expr_in_scope(op->args[i], scope, func_bounds); args 1302 src/Bounds.cpp for (size_t i = 0; i < op->args.size(); i++) { args 1303 src/Bounds.cpp op->args[i].accept(this); args 1424 src/Bounds.cpp const vector<string> f_args = f.args(); args 1434 src/Bounds.cpp for (size_t k = 0; k < f.args().size(); k++) { args 149 src/BoundsInference.cpp vecs[0] = def.args(); args 248 src/BoundsInference.cpp const Variable *var = def.args()[dim_idx].as<Variable>(); args 274 src/BoundsInference.cpp const vector<string> func_args = func.args(); args 476 src/BoundsInference.cpp const vector<ExternFuncArgument> &args = func.extern_arguments(); args 490 src/BoundsInference.cpp for (size_t j = 0; j < args.size(); j++) { args 491 src/BoundsInference.cpp if (args[j].is_expr()) { args 492 src/BoundsInference.cpp bounds_inference_args.push_back(args[j].expr); args 493 src/BoundsInference.cpp } else if (args[j].is_func()) { args 494 src/BoundsInference.cpp Function input(args[j].func); args 507 src/BoundsInference.cpp } else if (args[j].is_image_param() || args[j].is_buffer()) { args 508 src/BoundsInference.cpp Parameter p = args[j].image_param; args 509 src/BoundsInference.cpp Buffer<> b = args[j].buffer; args 510 src/BoundsInference.cpp string name = args[j].is_image_param() ? p.name() : b.name(); args 511 src/BoundsInference.cpp int dims = args[j].is_image_param() ? p.dimensions() : b.dimensions(); args 543 src/BoundsInference.cpp for (const string arg : func.args()) { args 611 src/BoundsInference.cpp for (const string farg : func.args()) { args 729 src/BoundsInference.cpp const vector<ExternFuncArgument> &args = consumer.func.extern_arguments(); args 733 src/BoundsInference.cpp for (size_t j = 0; j < args.size(); j++) { args 734 src/BoundsInference.cpp if (args[j].is_func()) { args 735 src/BoundsInference.cpp Function f(args[j].func); args 917 src/BoundsInference.cpp const vector<string> f_args = f.args(); args 19 src/Buffer.cpp Expr buffer_accessor(const Buffer<> &buf, const std::vector<Expr> &args) { args 21 src/Buffer.cpp for (Expr e : args) { args 26 src/Buffer.cpp int missing_dimensions = buf.dimensions() - (int)args.size() + 1; args 22 src/Buffer.h EXPORT Expr buffer_accessor(const Buffer<> &buf, const std::vector<Expr> &args); args 73 src/Buffer.h std::vector<int> get_shape_from_start_of_parameter_pack(Args&&... args) { args 75 src/Buffer.h get_shape_from_start_of_parameter_pack_helper(result, std::forward<Args>(args)...); args 305 src/Buffer.h auto method(Args&&... args) const -> \ args 306 src/Buffer.h decltype(std::declval<const Runtime::Buffer<T>>().method(std::forward<Args>(args)...)) { \ args 308 src/Buffer.h return get()->method(std::forward<Args>(args)...); \ args 313 src/Buffer.h auto method(Args&&... args) -> \ args 314 src/Buffer.h decltype(std::declval<Runtime::Buffer<T>>().method(std::forward<Args>(args)...)) { \ args 316 src/Buffer.h return get()->method(std::forward<Args>(args)...); \ args 397 src/Buffer.h auto operator()(int first, Args&&... args) -> args 398 src/Buffer.h decltype(std::declval<Runtime::Buffer<T>>()(first, std::forward<Args>(args)...)) { args 399 src/Buffer.h return (*get())(first, std::forward<Args>(args)...); args 403 src/Buffer.h auto operator()(int first, Args&&... args) const -> args 404 src/Buffer.h decltype(std::declval<const Runtime::Buffer<T>>()(first, std::forward<Args>(args)...)) { args 405 src/Buffer.h return (*get())(first, std::forward<Args>(args)...); args 433 src/Buffer.h std::vector<Expr> args = {first, rest...}; args 434 src/Buffer.h return (*this)(args); args 438 src/Buffer.h Expr operator()(const std::vector<Expr> &args) const { args 439 src/Buffer.h return buffer_accessor(Buffer<>(*this), args); args 275 src/CPlusPlusMangle.cpp Type return_type, const std::vector<ExternFuncArgument> &args, args 291 src/CPlusPlusMangle.cpp if (args.size() == 0) { args 294 src/CPlusPlusMangle.cpp for (const auto &arg : args) { args 576 src/CPlusPlusMangle.cpp Type return_type, const std::vector<ExternFuncArgument> &args, args 583 src/CPlusPlusMangle.cpp if (args.size() == 0) { args 587 src/CPlusPlusMangle.cpp for (const auto &arg : args) { args 597 src/CPlusPlusMangle.cpp Type return_type, const std::vector<ExternFuncArgument> &args, args 600 src/CPlusPlusMangle.cpp return WindowsMangling::cplusplus_function_mangled_name(name, namespaces, return_type, args, target); args 602 src/CPlusPlusMangle.cpp return ItaniumABIMangling::cplusplus_function_mangled_name(name, namespaces, return_type, args, target); args 907 src/CPlusPlusMangle.cpp std::vector<ExternFuncArgument> args; args 908 src/CPlusPlusMangle.cpp args.push_back(ExternFuncArgument(make_zero(Bool()))); args 909 src/CPlusPlusMangle.cpp args.push_back(ExternFuncArgument(make_zero(Int(8)))); args 910 src/CPlusPlusMangle.cpp args.push_back(ExternFuncArgument(make_zero(UInt(8)))); args 911 src/CPlusPlusMangle.cpp args.push_back(ExternFuncArgument(make_zero(Int(16)))); args 912 src/CPlusPlusMangle.cpp args.push_back(ExternFuncArgument(make_zero(UInt(16)))); args 913 src/CPlusPlusMangle.cpp args.push_back(ExternFuncArgument(make_zero(Int(32)))); args 914 src/CPlusPlusMangle.cpp args.push_back(ExternFuncArgument(make_zero(UInt(32)))); args 915 src/CPlusPlusMangle.cpp args.push_back(ExternFuncArgument(make_zero(Int(64)))); args 916 src/CPlusPlusMangle.cpp args.push_back(ExternFuncArgument(make_zero(UInt(64)))); args 917 src/CPlusPlusMangle.cpp args.push_back(ExternFuncArgument(make_zero(Float(32)))); args 918 src/CPlusPlusMangle.cpp args.push_back(ExternFuncArgument(make_zero(Float(64)))); args 923 src/CPlusPlusMangle.cpp cplusplus_function_mangled_name("test_function", { }, Int(32), args, target)); args 930 src/CPlusPlusMangle.cpp std::vector<ExternFuncArgument> args; args 940 src/CPlusPlusMangle.cpp args.push_back(make_zero(Handle(1, &type_info[i % 100]))); args 946 src/CPlusPlusMangle.cpp cplusplus_function_mangled_name("test_function", { }, Int(32), args, target)); args 953 src/CPlusPlusMangle.cpp std::vector<ExternFuncArgument> args; args 963 src/CPlusPlusMangle.cpp args.push_back(make_zero(Handle(1, &type_info[i % 25]))); args 969 src/CPlusPlusMangle.cpp cplusplus_function_mangled_name("test_function", { }, Int(32), args, target)); args 977 src/CPlusPlusMangle.cpp std::vector<ExternFuncArgument> args; args 989 src/CPlusPlusMangle.cpp args.push_back(ExternFuncArgument(make_zero(Handle(1, &ti)))); args 994 src/CPlusPlusMangle.cpp cplusplus_function_mangled_name("test_function", { }, Int(32), args, target)); args 1009 src/CPlusPlusMangle.cpp std::vector<ExternFuncArgument> args; args 1010 src/CPlusPlusMangle.cpp args.push_back(make_zero(Handle(1, &t1))); args 1011 src/CPlusPlusMangle.cpp args.push_back(make_zero(Handle(1, &t2))); args 1012 src/CPlusPlusMangle.cpp args.push_back(make_zero(Handle(1, &t3))); args 1016 src/CPlusPlusMangle.cpp cplusplus_function_mangled_name("test_function", { }, Int(32), args, target)); args 1026 src/CPlusPlusMangle.cpp std::vector<ExternFuncArgument> args; args 1027 src/CPlusPlusMangle.cpp args.push_back(make_zero(Handle(1, nullptr))); args 1028 src/CPlusPlusMangle.cpp args.push_back(make_zero(Handle(1, nullptr))); args 1032 src/CPlusPlusMangle.cpp cplusplus_function_mangled_name("test_function", { }, Int(32), args, target)); args 21 src/CPlusPlusMangle.h Type return_type, const std::vector<ExternFuncArgument> &args, args 231 src/CodeGen_ARM.cpp Value *CodeGen_ARM::call_pattern(const Pattern &p, Type t, const vector<Expr> &args) { args 233 src/CodeGen_ARM.cpp return call_intrin(t, p.intrin_lanes, p.intrin32, args); args 235 src/CodeGen_ARM.cpp return call_intrin(t, p.intrin_lanes, p.intrin64, args); args 239 src/CodeGen_ARM.cpp Value *CodeGen_ARM::call_pattern(const Pattern &p, llvm::Type *t, const vector<llvm::Value *> &args) { args 241 src/CodeGen_ARM.cpp return call_intrin(t, p.intrin_lanes, p.intrin32, args); args 243 src/CodeGen_ARM.cpp return call_intrin(t, p.intrin_lanes, p.intrin64, args); args 342 src/CodeGen_ARM.cpp ss << "vabdl_" << (c->args[0].type().is_int() ? 'i' : 'u') << t.bits() / 2 << 'x' << intrin_lanes; args 343 src/CodeGen_ARM.cpp value = call_intrin(t, intrin_lanes, ss.str(), c->args); args 690 src/CodeGen_ARM.cpp vector<Value *> args(num_vecs); args 704 src/CodeGen_ARM.cpp args[i] = codegen(shuffle->vectors[i]); args 749 src/CodeGen_ARM.cpp vector<Value *> slice_args = args; args 931 src/CodeGen_ARM.cpp Value *args[] = {base, stride}; args 932 src/CodeGen_ARM.cpp Instruction *load = builder->CreateCall(fn, args, builtin.str()); args 944 src/CodeGen_ARM.cpp internal_assert(op->args.size() == 1); args 946 src/CodeGen_ARM.cpp const Sub *sub = op->args[0].as<Sub>(); args 63 src/CodeGen_ARM.h llvm::Value *call_pattern(const Pattern &p, Type t, const std::vector<Expr> &args); args 64 src/CodeGen_ARM.h llvm::Value *call_pattern(const Pattern &p, llvm::Type *t, const std::vector<llvm::Value *> &args); args 391 src/CodeGen_C.cpp if (!op->args.empty()) { args 395 src/CodeGen_C.cpp for (size_t i = 0; i < op->args.size(); i++) { args 399 src/CodeGen_C.cpp if (op->args[i].as<StringImm>()) { args 402 src/CodeGen_C.cpp stream << type_to_c_type(op->args[i].type(), true); args 490 src/CodeGen_C.cpp const std::vector<LoweredArgument> &args = f.args; args 492 src/CodeGen_C.cpp for (size_t i = 0; i < args.size(); i++) { args 493 src/CodeGen_C.cpp auto handle_type = args[i].type.handle_type; args 516 src/CodeGen_C.cpp for (size_t i = 0; i < args.size(); i++) { args 518 src/CodeGen_C.cpp have_user_context |= (args[i].name == "__user_context"); args 569 src/CodeGen_C.cpp for (size_t i = 0; i < args.size(); i++) { args 570 src/CodeGen_C.cpp if (args[i].is_buffer()) { args 572 src/CodeGen_C.cpp << print_name(args[i].name) args 575 src/CodeGen_C.cpp stream << print_type(args[i].type, AppendSpace) args 576 src/CodeGen_C.cpp << print_name(args[i].name); args 579 src/CodeGen_C.cpp if (i < args.size()-1) stream << ", "; args 884 src/CodeGen_C.cpp internal_assert(op->args.size() == 3); args 885 src/CodeGen_C.cpp const StringImm *string_imm = op->args[0].as<StringImm>(); args 888 src/CodeGen_C.cpp string typecode = print_expr(op->args[1]); args 889 src/CodeGen_C.cpp string buffer = print_name(print_expr(op->args[2])); args 897 src/CodeGen_C.cpp internal_assert(op->args.size() == 2); args 898 src/CodeGen_C.cpp string a0 = print_expr(op->args[0]); args 899 src/CodeGen_C.cpp string a1 = print_expr(op->args[1]); args 902 src/CodeGen_C.cpp internal_assert(op->args.size() == 2); args 903 src/CodeGen_C.cpp string a0 = print_expr(op->args[0]); args 904 src/CodeGen_C.cpp string a1 = print_expr(op->args[1]); args 907 src/CodeGen_C.cpp internal_assert(op->args.size() == 2); args 908 src/CodeGen_C.cpp string a0 = print_expr(op->args[0]); args 909 src/CodeGen_C.cpp string a1 = print_expr(op->args[1]); args 912 src/CodeGen_C.cpp internal_assert(op->args.size() == 1); args 913 src/CodeGen_C.cpp rhs << "~" << print_expr(op->args[0]); args 915 src/CodeGen_C.cpp internal_assert(op->args.size() == 1); args 916 src/CodeGen_C.cpp rhs << print_reinterpret(op->type, op->args[0]); args 918 src/CodeGen_C.cpp internal_assert(op->args.size() == 2); args 919 src/CodeGen_C.cpp string a0 = print_expr(op->args[0]); args 920 src/CodeGen_C.cpp string a1 = print_expr(op->args[1]); args 923 src/CodeGen_C.cpp internal_assert(op->args.size() == 2); args 924 src/CodeGen_C.cpp string a0 = print_expr(op->args[0]); args 925 src/CodeGen_C.cpp string a1 = print_expr(op->args[1]); args 928 src/CodeGen_C.cpp internal_assert(op->args.size() == 3); args 929 src/CodeGen_C.cpp Expr e = lower_lerp(op->args[0], op->args[1], op->args[2]); args 932 src/CodeGen_C.cpp internal_assert(op->args.size() == 2); args 933 src/CodeGen_C.cpp Expr a = op->args[0]; args 934 src/CodeGen_C.cpp Expr b = op->args[1]; args 938 src/CodeGen_C.cpp internal_assert(op->args.size() == 2); args 939 src/CodeGen_C.cpp string arg0 = print_expr(op->args[0]); args 940 src/CodeGen_C.cpp string arg1 = print_expr(op->args[1]); args 943 src/CodeGen_C.cpp internal_assert(op->args.size() == 3); args 948 src/CodeGen_C.cpp stream << print_type(op->args[1].type(), AppendSpace) args 951 src/CodeGen_C.cpp string cond_id = print_expr(op->args[0]); args 956 src/CodeGen_C.cpp string true_case = print_expr(op->args[1]); args 963 src/CodeGen_C.cpp string false_case = print_expr(op->args[2]); args 970 src/CodeGen_C.cpp internal_assert(op->args.size() == 1); args 971 src/CodeGen_C.cpp Expr a0 = op->args[0]; args 974 src/CodeGen_C.cpp internal_assert(op->args.size() >= 1); args 975 src/CodeGen_C.cpp string arg = print_expr(op->args[0]); args 978 src/CodeGen_C.cpp internal_assert(op->args.size() == 1); args 980 src/CodeGen_C.cpp const Call *call = op->args[0].as<Call>(); args 989 src/CodeGen_C.cpp string size = print_expr(simplify((op->args[0] + 7)/8)); args 996 src/CodeGen_C.cpp if (op->args.empty()) { args 1004 src/CodeGen_C.cpp for (size_t i = 0; i < op->args.size(); i++) { args 1005 src/CodeGen_C.cpp values.push_back(print_expr(op->args[i])); args 1010 src/CodeGen_C.cpp for (size_t i = 0; i < op->args.size(); i++) { args 1011 src/CodeGen_C.cpp stream << "const " << print_type(op->args[i].type()) << " f_" << i << "; "; args 1016 src/CodeGen_C.cpp for (size_t i = 0; i < op->args.size(); i++) { args 1031 src/CodeGen_C.cpp for (size_t i = 0; i < op->args.size(); i++) { args 1032 src/CodeGen_C.cpp Type t = op->args[i].type(); args 1033 src/CodeGen_C.cpp printf_args.push_back(print_expr(op->args[i])); args 1046 src/CodeGen_C.cpp } else if (op->args[i].as<StringImm>()) { args 1066 src/CodeGen_C.cpp internal_assert(op->args.size() == 2); args 1067 src/CodeGen_C.cpp const StringImm *fn = op->args[0].as<StringImm>(); args 1069 src/CodeGen_C.cpp string arg = print_expr(op->args[1]); args 1087 src/CodeGen_C.cpp rhs << print_expr(op->args[0]) << " / " << print_expr(op->args[1]); args 1089 src/CodeGen_C.cpp rhs << print_expr(op->args[0]) << " % " << print_expr(op->args[1]); args 1095 src/CodeGen_C.cpp user_assert((op->args.size() == 4) && is_one(op->args[2])) args 1097 src/CodeGen_C.cpp const Variable *base = op->args[0].as<Variable>(); args 1101 src/CodeGen_C.cpp << " + " << print_expr(op->args[1]) << "), 1)"; args 1112 src/CodeGen_C.cpp vector<string> args(op->args.size()); args 1113 src/CodeGen_C.cpp for (size_t i = 0; i < op->args.size(); i++) { args 1114 src/CodeGen_C.cpp args[i] = print_expr(op->args[i]); args 1122 src/CodeGen_C.cpp for (size_t i = 0; i < op->args.size(); i++) { args 1124 src/CodeGen_C.cpp rhs << args[i]; args 1458 src/CodeGen_C.cpp vector<LoweredArgument> args = { buffer_arg, float_arg, int_arg, user_context_arg }; args 1473 src/CodeGen_C.cpp m.append(LoweredFunc("test1", args, s, LoweredFunc::External)); args 23 src/CodeGen_GPU_Dev.h const std::vector<DeviceArgument> &args) = 0; args 192 src/CodeGen_GPU_Host.cpp if (f.args[0].name == "__user_context") { args 182 src/CodeGen_Hexagon.cpp CodeGen_Posix::begin_func(f.linkage, simple_name, extern_name, f.args); args 231 src/CodeGen_Hexagon.cpp CodeGen_Posix::end_func(f.args); args 601 src/CodeGen_Hexagon.cpp vector<Value *> args; args 602 src/CodeGen_Hexagon.cpp for (Value &arg : wrapper->args()) { args 603 src/CodeGen_Hexagon.cpp args.push_back(&arg); args 606 src/CodeGen_Hexagon.cpp if (args.size() + 1 == intrin_ty->getNumParams()) { args 608 src/CodeGen_Hexagon.cpp Value *dv = args[0]; args 613 src/CodeGen_Hexagon.cpp args[0] = high; args 614 src/CodeGen_Hexagon.cpp args.insert(args.begin() + 1, low); args 622 src/CodeGen_Hexagon.cpp internal_assert(args.size() == intrin_ty->getNumParams()); args 623 src/CodeGen_Hexagon.cpp for (size_t i = 0; i < args.size(); i++) { args 625 src/CodeGen_Hexagon.cpp if (args[i]->getType() != arg_ty) { args 627 src/CodeGen_Hexagon.cpp args[i] = builder->CreateBitCast(args[i], arg_ty); args 643 src/CodeGen_Hexagon.cpp args[i] = builder->CreateCall(fn, { args[i] }); args 644 src/CodeGen_Hexagon.cpp } else if (args[i]->getType()->isIntegerTy()) { args 645 src/CodeGen_Hexagon.cpp args[i] = builder->CreateIntCast(args[i], arg_ty, arg_types[i].is_int()); args 647 src/CodeGen_Hexagon.cpp args[i] = builder->CreateBitCast(args[i], arg_ty); args 654 src/CodeGen_Hexagon.cpp Value *ret = builder->CreateCall(intrin, args); args 1237 src/CodeGen_Hexagon.cpp vector<Expr> args, bool maybe) { args 1253 src/CodeGen_Hexagon.cpp args); args 1257 src/CodeGen_Hexagon.cpp vector<Value *> args, bool maybe) { args 1273 src/CodeGen_Hexagon.cpp args); args 1451 src/CodeGen_Hexagon.cpp value = call_intrin(op->type, op->name, op->args); args 1459 src/CodeGen_Hexagon.cpp i->second.first + type_suffix(op->args, i->second.second); args 1460 src/CodeGen_Hexagon.cpp value = call_intrin(op->type, intrin, op->args, true /*maybe*/); args 1465 src/CodeGen_Hexagon.cpp internal_assert(op->args.size() == 2); args 1467 src/CodeGen_Hexagon.cpp Expr b = maybe_scalar(op->args[1]); args 1469 src/CodeGen_Hexagon.cpp instr + type_suffix(op->args[0], b), args 1470 src/CodeGen_Hexagon.cpp {op->args[0], b}); args 1473 src/CodeGen_Hexagon.cpp internal_assert(op->args.size() == 4); args 1474 src/CodeGen_Hexagon.cpp const int64_t *min_index = as_const_int(op->args[2]); args 1475 src/CodeGen_Hexagon.cpp const int64_t *max_index = as_const_int(op->args[3]); args 1477 src/CodeGen_Hexagon.cpp Value *lut = codegen(op->args[0]); args 1478 src/CodeGen_Hexagon.cpp Value *idx = codegen(op->args[1]); args 1482 src/CodeGen_Hexagon.cpp internal_assert(op->args.size() == 3); args 1489 src/CodeGen_Hexagon.cpp type_suffix(op->args[1], op->args[2], false), args 1490 src/CodeGen_Hexagon.cpp op->args); args 1498 src/CodeGen_Hexagon.cpp internal_assert(op->args.size() == 1); args 1499 src/CodeGen_Hexagon.cpp if (op->args[0].type().is_vector()) { args 1501 src/CodeGen_Hexagon.cpp op->args[0].accept(this); args 1506 src/CodeGen_Hexagon.cpp Expr equiv = -Cast::make(op->type, op->args[0]); args 1511 src/CodeGen_Hexagon.cpp internal_assert(op->args.size() == 2); args 1512 src/CodeGen_Hexagon.cpp const int64_t *index = as_const_int(op->args[1]); args 1514 src/CodeGen_Hexagon.cpp value = codegen(Cast::make(Bool(), Shuffle::make_extract_element(op->args[0], *index))); args 1519 src/CodeGen_Hexagon.cpp internal_assert((op->args.size() == 4) || (op->args.size() == 6)) args 1522 src/CodeGen_Hexagon.cpp vector<llvm::Value *> args; args 1523 src/CodeGen_Hexagon.cpp args.push_back(codegen_buffer_pointer(codegen(op->args[0]), op->type, op->args[1])); args 1525 src/CodeGen_Hexagon.cpp Expr extent_0_bytes = op->args[2] * op->args[3] * op->type.bytes(); args 1526 src/CodeGen_Hexagon.cpp args.push_back(codegen(extent_0_bytes)); args 1529 src/CodeGen_Hexagon.cpp if (op->args.size() == 4) { // 1D prefetch: {base, offset, extent0, stride0} args 1533 src/CodeGen_Hexagon.cpp args.push_back(codegen(op->args[4])); args 1534 src/CodeGen_Hexagon.cpp Expr stride_1_bytes = op->args[5] * op->type.bytes(); args 1535 src/CodeGen_Hexagon.cpp args.push_back(codegen(stride_1_bytes)); args 1543 src/CodeGen_Hexagon.cpp args[0] = builder->CreateBitCast(args[0], ptr_type); args 1545 src/CodeGen_Hexagon.cpp value = builder->CreateCall(prefetch_fn, args); args 333 src/CodeGen_LLVM.cpp std::string args = get_env_variable("HL_LLVM_ARGS"); args 334 src/CodeGen_LLVM.cpp if (!args.empty()) { args 335 src/CodeGen_LLVM.cpp vector<std::string> arg_vec = split_string(args, " "); args 445 src/CodeGen_LLVM.cpp const std::vector<LoweredArgument> &args, args 459 src/CodeGen_LLVM.cpp for (const auto &arg : args) { args 478 src/CodeGen_LLVM.cpp return get_mangled_names(f.name, f.linkage, f.name_mangling, f.args, target); args 538 src/CodeGen_LLVM.cpp llvm::Function *metadata_getter = embed_metadata_getter(names.metadata_name, names.simple_name, f.args); args 563 src/CodeGen_LLVM.cpp const std::string& extern_name, const std::vector<LoweredArgument>& args) { args 564 src/CodeGen_LLVM.cpp current_function_args = args; args 567 src/CodeGen_LLVM.cpp vector<llvm::Type *> arg_types(args.size()); args 568 src/CodeGen_LLVM.cpp for (size_t i = 0; i < args.size(); i++) { args 569 src/CodeGen_LLVM.cpp if (args[i].is_buffer()) { args 572 src/CodeGen_LLVM.cpp arg_types[i] = llvm_type_of(args[i].type); args 604 src/CodeGen_LLVM.cpp for (size_t i = 0; i < args.size(); i++) { args 605 src/CodeGen_LLVM.cpp if (args[i].is_buffer()) { args 622 src/CodeGen_LLVM.cpp for (auto &arg : function->args()) { args 623 src/CodeGen_LLVM.cpp if (args[i].is_buffer()) { args 626 src/CodeGen_LLVM.cpp external_buffer.insert(args[i].name); args 627 src/CodeGen_LLVM.cpp sym_push(args[i].name + ".buffer", &arg); args 629 src/CodeGen_LLVM.cpp sym_push(args[i].name, &arg); args 632 src/CodeGen_LLVM.cpp if (args[i].alignment.modulus != 0) { args 633 src/CodeGen_LLVM.cpp alignment_info.push(args[i].name, args[i].alignment); args 641 src/CodeGen_LLVM.cpp void CodeGen_LLVM::end_func(const std::vector<LoweredArgument>& args) { args 645 src/CodeGen_LLVM.cpp for (size_t i = 0; i < args.size(); i++) { args 646 src/CodeGen_LLVM.cpp if (args[i].is_buffer()) { args 647 src/CodeGen_LLVM.cpp sym_pop(args[i].name + ".buffer"); args 649 src/CodeGen_LLVM.cpp sym_pop(args[i].name); args 651 src/CodeGen_LLVM.cpp if (args[i].alignment.modulus != 0) { args 652 src/CodeGen_LLVM.cpp alignment_info.pop(args[i].name); args 665 src/CodeGen_LLVM.cpp begin_func(f.linkage, simple_name, extern_name, f.args); args 676 src/CodeGen_LLVM.cpp for (const auto &arg : f.args) { args 688 src/CodeGen_LLVM.cpp end_func(f.args); args 765 src/CodeGen_LLVM.cpp Value *args[] = {get_user_context(), destructor_fn, stack_slot, should_call}; args 766 src/CodeGen_LLVM.cpp builder->CreateCall(call_destructor, args); args 780 src/CodeGen_LLVM.cpp Value *args[] = {get_user_context(), destructor_fn, stack_slot, should_call}; args 781 src/CodeGen_LLVM.cpp builder->CreateCall(call_destructor, args); args 903 src/CodeGen_LLVM.cpp const std::string &function_name, const std::vector<LoweredArgument> &args) { args 906 src/CodeGen_LLVM.cpp const int num_args = (int) args.size(); args 915 src/CodeGen_LLVM.cpp ConstantInt::get(i8_t, args[arg].type.code()), args 916 src/CodeGen_LLVM.cpp ConstantInt::get(i8_t, args[arg].type.bits()), args 921 src/CodeGen_LLVM.cpp Expr def = args[arg].def; args 922 src/CodeGen_LLVM.cpp Expr min = args[arg].min; args 923 src/CodeGen_LLVM.cpp Expr max = args[arg].max; args 924 src/CodeGen_LLVM.cpp if (args[arg].type.is_handle()) { args 930 src/CodeGen_LLVM.cpp create_string_constant(args[arg].name), args 931 src/CodeGen_LLVM.cpp ConstantInt::get(i32_t, args[arg].kind), args 932 src/CodeGen_LLVM.cpp ConstantInt::get(i32_t, args[arg].dimensions), args 2083 src/CodeGen_LLVM.cpp internal_assert(op->args.size() == 3); args 2084 src/CodeGen_LLVM.cpp const StringImm *filename = op->args[0].as<StringImm>(); args 2093 src/CodeGen_LLVM.cpp vector<Value *> args = {user_context, char_ptr, codegen(op->args[1])}; args 2095 src/CodeGen_LLVM.cpp Value *buffer = codegen(op->args[2]); args 2097 src/CodeGen_LLVM.cpp args.push_back(buffer); args 2099 src/CodeGen_LLVM.cpp value = builder->CreateCall(debug_to_file, args); args 2102 src/CodeGen_LLVM.cpp internal_assert(op->args.size() == 2); args 2103 src/CodeGen_LLVM.cpp value = builder->CreateAnd(codegen(op->args[0]), codegen(op->args[1])); args 2105 src/CodeGen_LLVM.cpp internal_assert(op->args.size() == 2); args 2106 src/CodeGen_LLVM.cpp value = builder->CreateXor(codegen(op->args[0]), codegen(op->args[1])); args 2108 src/CodeGen_LLVM.cpp internal_assert(op->args.size() == 2); args 2109 src/CodeGen_LLVM.cpp value = builder->CreateOr(codegen(op->args[0]), codegen(op->args[1])); args 2111 src/CodeGen_LLVM.cpp internal_assert(op->args.size() == 1); args 2112 src/CodeGen_LLVM.cpp value = builder->CreateNot(codegen(op->args[0])); args 2114 src/CodeGen_LLVM.cpp internal_assert(op->args.size() == 1); args 2116 src/CodeGen_LLVM.cpp Type src = op->args[0].type(); args 2118 src/CodeGen_LLVM.cpp value = codegen(op->args[0]); args 2150 src/CodeGen_LLVM.cpp value = builder->CreateBitCast(codegen(op->args[0]), llvm_dst); args 2153 src/CodeGen_LLVM.cpp internal_assert(op->args.size() == 2); args 2154 src/CodeGen_LLVM.cpp value = builder->CreateShl(codegen(op->args[0]), codegen(op->args[1])); args 2156 src/CodeGen_LLVM.cpp internal_assert(op->args.size() == 2); args 2158 src/CodeGen_LLVM.cpp value = builder->CreateAShr(codegen(op->args[0]), codegen(op->args[1])); args 2160 src/CodeGen_LLVM.cpp value = builder->CreateLShr(codegen(op->args[0]), codegen(op->args[1])); args 2164 src/CodeGen_LLVM.cpp internal_assert(op->args.size() == 1); args 2167 src/CodeGen_LLVM.cpp Type t = op->args[0].type(); args 2173 src/CodeGen_LLVM.cpp codegen(Call::make(op->type, name, op->args, Call::Extern)); args 2177 src/CodeGen_LLVM.cpp Expr x = Variable::make(op->args[0].type(), x_name); args 2178 src/CodeGen_LLVM.cpp value = codegen(Let::make(x_name, op->args[0], select(x >= 0, x, -x))); args 2182 src/CodeGen_LLVM.cpp internal_assert(op->args.size() == 2); args 2184 src/CodeGen_LLVM.cpp Expr a = op->args[0]; args 2185 src/CodeGen_LLVM.cpp Expr b = op->args[1]; args 2203 src/CodeGen_LLVM.cpp codegen(Call::make(op->type, name, op->args, Call::Extern)); args 2208 src/CodeGen_LLVM.cpp Expr a_var = Variable::make(op->args[0].type(), a_name); args 2209 src/CodeGen_LLVM.cpp Expr b_var = Variable::make(op->args[1].type(), b_name); args 2210 src/CodeGen_LLVM.cpp codegen(Let::make(a_name, op->args[0], args 2211 src/CodeGen_LLVM.cpp Let::make(b_name, op->args[1], args 2215 src/CodeGen_LLVM.cpp internal_assert(op->args.size() == 2); args 2216 src/CodeGen_LLVM.cpp Value *a = codegen(op->args[0]); args 2217 src/CodeGen_LLVM.cpp Value *b = codegen(op->args[1]); args 2226 src/CodeGen_LLVM.cpp internal_assert(op->args.size() == 2); args 2227 src/CodeGen_LLVM.cpp Value *a = codegen(op->args[0]); args 2228 src/CodeGen_LLVM.cpp Value *b = codegen(op->args[1]); args 2237 src/CodeGen_LLVM.cpp internal_assert(op->args.size() == 3); args 2238 src/CodeGen_LLVM.cpp value = codegen(lower_lerp(op->args[0], op->args[1], op->args[2])); args 2240 src/CodeGen_LLVM.cpp internal_assert(op->args.size() == 1); args 2242 src/CodeGen_LLVM.cpp arg_type[0] = llvm_type_of(op->args[0].type()); args 2244 src/CodeGen_LLVM.cpp CallInst *call = builder->CreateCall(fn, codegen(op->args[0])); args 2248 src/CodeGen_LLVM.cpp internal_assert(op->args.size() == 1); args 2250 src/CodeGen_LLVM.cpp arg_type[0] = llvm_type_of(op->args[0].type()); args 2256 src/CodeGen_LLVM.cpp llvm::Value *args[2] = { codegen(op->args[0]), zero_is_not_undef }; args 2257 src/CodeGen_LLVM.cpp CallInst *call = builder->CreateCall(fn, args); args 2260 src/CodeGen_LLVM.cpp internal_assert(op->args.size() == 2); args 2261 src/CodeGen_LLVM.cpp codegen(op->args[0]); args 2262 src/CodeGen_LLVM.cpp value = codegen(op->args[1]); args 2264 src/CodeGen_LLVM.cpp Expr cond = op->args[0]; args 2272 src/CodeGen_LLVM.cpp internal_assert(op->args.size() == 3); args 2279 src/CodeGen_LLVM.cpp Value *true_value = codegen(op->args[1]); args 2284 src/CodeGen_LLVM.cpp Value *false_value = codegen(op->args[2]); args 2299 src/CodeGen_LLVM.cpp } else if (op->args.empty()) { args 2307 src/CodeGen_LLVM.cpp vector<llvm::Value *> args(op->args.size()); args 2308 src/CodeGen_LLVM.cpp vector<llvm::Type *> types(op->args.size()); args 2309 src/CodeGen_LLVM.cpp for (size_t i = 0; i < op->args.size(); i++) { args 2310 src/CodeGen_LLVM.cpp args[i] = codegen(op->args[i]); args 2311 src/CodeGen_LLVM.cpp types[i] = args[i]->getType(); args 2318 src/CodeGen_LLVM.cpp if (args.size() == 1) { args 2320 src/CodeGen_LLVM.cpp builder->CreateStore(args[0], value); args 2327 src/CodeGen_LLVM.cpp for (size_t i = 0; i < args.size(); i++) { args 2329 src/CodeGen_LLVM.cpp builder->CreateStore(args[i], elem_ptr); args 2335 src/CodeGen_LLVM.cpp assert(!op->args.empty()); args 2343 src/CodeGen_LLVM.cpp for (size_t i = 0; i < op->args.size(); i++) { args 2344 src/CodeGen_LLVM.cpp Type t = op->args[i].type(); args 2345 src/CodeGen_LLVM.cpp if (op->args[i].as<StringImm>()) { args 2346 src/CodeGen_LLVM.cpp buf_size += op->args[i].as<StringImm>()->value.size(); args 2389 src/CodeGen_LLVM.cpp for (size_t i = 0; i < op->args.size(); i++) { args 2390 src/CodeGen_LLVM.cpp const StringImm *s = op->args[i].as<StringImm>(); args 2391 src/CodeGen_LLVM.cpp Type t = op->args[i].type(); args 2398 src/CodeGen_LLVM.cpp call_args.push_back(codegen(op->args[i])); args 2402 src/CodeGen_LLVM.cpp codegen(op->args[i]), args 2407 src/CodeGen_LLVM.cpp call_args.push_back(codegen(Cast::make(Int(64), op->args[i]))); args 2411 src/CodeGen_LLVM.cpp call_args.push_back(codegen(Cast::make(UInt(64), op->args[i]))); args 2415 src/CodeGen_LLVM.cpp call_args.push_back(codegen(Cast::make(Float(64), op->args[i]))); args 2420 src/CodeGen_LLVM.cpp call_args.push_back(codegen(op->args[i])); args 2424 src/CodeGen_LLVM.cpp call_args.push_back(codegen(op->args[i])); args 2434 src/CodeGen_LLVM.cpp internal_assert(op->args.size() > 0); args 2435 src/CodeGen_LLVM.cpp value = codegen(op->args[0]); args 2439 src/CodeGen_LLVM.cpp internal_assert(op->args.size() == 1); args 2444 src/CodeGen_LLVM.cpp const Call *call = op->args[0].as<Call>(); args 2449 src/CodeGen_LLVM.cpp const int64_t *sz = as_const_int(op->args[0]); args 2459 src/CodeGen_LLVM.cpp internal_assert(op->args.size() == 2); args 2460 src/CodeGen_LLVM.cpp const StringImm *fn = op->args[0].as<StringImm>(); args 2462 src/CodeGen_LLVM.cpp Expr arg = op->args[1]; args 2511 src/CodeGen_LLVM.cpp internal_assert(op->args.size() >= 4); args 2512 src/CodeGen_LLVM.cpp internal_assert(!(op->args.size() & 1)); args 2521 src/CodeGen_LLVM.cpp for (size_t i = 0; i < op->args.size(); i += 2) { args 2522 src/CodeGen_LLVM.cpp const string sub_fn_name = op->args[i+1].as<StringImm>()->value; args 2534 src/CodeGen_LLVM.cpp for (const auto &arg : function->args()) { args 2551 src/CodeGen_LLVM.cpp auto cond = op->args[i]; args 2608 src/CodeGen_LLVM.cpp for (auto &arg : function->args()) { args 2615 src/CodeGen_LLVM.cpp user_assert((op->args.size() == 4) && is_one(op->args[2])) args 2621 src/CodeGen_LLVM.cpp vector<llvm::Value *> args; args 2622 src/CodeGen_LLVM.cpp args.push_back(codegen_buffer_pointer(codegen(op->args[0]), op->type, op->args[1])); args 2627 src/CodeGen_LLVM.cpp args[0] = builder->CreateBitCast(args[0], ptr_type); args 2629 src/CodeGen_LLVM.cpp value = builder->CreateCall(prefetch_fn, args); args 2644 src/CodeGen_LLVM.cpp internal_assert(op->args.size() == 2); args 2645 src/CodeGen_LLVM.cpp Expr x = op->args[0]; args 2646 src/CodeGen_LLVM.cpp Expr y = op->args[1]; args 2650 src/CodeGen_LLVM.cpp internal_assert(op->args.size() == 1); args 2651 src/CodeGen_LLVM.cpp Expr e = Internal::halide_log(op->args[0]); args 2654 src/CodeGen_LLVM.cpp internal_assert(op->args.size() == 1); args 2655 src/CodeGen_LLVM.cpp Expr e = Internal::halide_exp(op->args[0]); args 2659 src/CodeGen_LLVM.cpp internal_assert(op->args.size() == 1); args 2660 src/CodeGen_LLVM.cpp Value *a = codegen(op->args[0]); args 2674 src/CodeGen_LLVM.cpp for (const auto &arg : op->args) { args 2683 src/CodeGen_LLVM.cpp vector<Value *> args(op->args.size()); args 2684 src/CodeGen_LLVM.cpp for (size_t i = 0; i < op->args.size(); i++) { args 2685 src/CodeGen_LLVM.cpp args[i] = codegen(op->args[i]); args 2697 src/CodeGen_LLVM.cpp args.insert(args.begin(), get_user_context()); args 2702 src/CodeGen_LLVM.cpp vector<llvm::Type *> arg_types(args.size()); args 2703 src/CodeGen_LLVM.cpp for (size_t i = 0; i < args.size(); i++) { args 2704 src/CodeGen_LLVM.cpp arg_types[i] = args[i]->getType(); args 2735 src/CodeGen_LLVM.cpp i < std::min(args.size(), (size_t)(func_t->getNumParams())); args 2737 src/CodeGen_LLVM.cpp Expr halide_arg = takes_user_context ? op->args[i-1] : op->args[i]; args 2749 src/CodeGen_LLVM.cpp if (t != args[i]->getType()) { args 2752 src/CodeGen_LLVM.cpp args[i] = builder->CreatePointerCast(args[i], t); args 2759 src/CodeGen_LLVM.cpp CallInst *call = builder->CreateCall(fn, args); args 2776 src/CodeGen_LLVM.cpp vec_fn->getName(), args); args 2784 src/CodeGen_LLVM.cpp vector<Value *> arg_lane(args.size()); args 2785 src/CodeGen_LLVM.cpp for (size_t j = 0; j < args.size(); j++) { args 2786 src/CodeGen_LLVM.cpp if (args[j]->getType()->isVectorTy()) { args 2787 src/CodeGen_LLVM.cpp arg_lane[j] = builder->CreateExtractElement(args[j], idx); args 2789 src/CodeGen_LLVM.cpp arg_lane[j] = args[j]; args 3053 src/CodeGen_LLVM.cpp Value *args[] = {user_context, function, min, extent, ptr}; args 3055 src/CodeGen_LLVM.cpp Value *result = builder->CreateCall(do_par_for, args); args 3286 src/CodeGen_LLVM.cpp const string &name, vector<Expr> args) { args 3287 src/CodeGen_LLVM.cpp vector<Value *> arg_values(args.size()); args 3288 src/CodeGen_LLVM.cpp for (size_t i = 0; i < args.size(); i++) { args 3289 src/CodeGen_LLVM.cpp arg_values[i] = codegen(args[i]); args 3308 src/CodeGen_LLVM.cpp vector<Value *> args; args 3318 src/CodeGen_LLVM.cpp args.push_back(slice_vector(arg_values[i], start * reduce, intrin_lanes * reduce)); args 3320 src/CodeGen_LLVM.cpp args.push_back(arg_values[i]); args 3327 src/CodeGen_LLVM.cpp results.push_back(call_intrin(result_slice_type, intrin_lanes, name, args)); args 98 src/CodeGen_LLVM.h const std::string &extern_name, const std::vector<LoweredArgument> &args); args 99 src/CodeGen_LLVM.h virtual void end_func(const std::vector<LoweredArgument> &args); args 478 src/CodeGen_LLVM.h const std::string &function_name, const std::vector<LoweredArgument> &args); args 412 src/CodeGen_Metal_Dev.cpp const vector<DeviceArgument> &args) { args 417 src/CodeGen_Metal_Dev.cpp metal_c.add_kernel(s, name, args); args 436 src/CodeGen_Metal_Dev.cpp const vector<DeviceArgument> &args) { args 450 src/CodeGen_Metal_Dev.cpp for (size_t i = 0; i < args.size(); i++) { args 451 src/CodeGen_Metal_Dev.cpp if (args[i].is_buffer && args 452 src/CodeGen_Metal_Dev.cpp CodeGen_GPU_Dev::is_buffer_constant(s, args[i].name) && args 453 src/CodeGen_Metal_Dev.cpp args[i].size > 0) { args 454 src/CodeGen_Metal_Dev.cpp constants.push_back(BufferSize(args[i].name, args[i].size)); args 471 src/CodeGen_Metal_Dev.cpp for (size_t i = 0; i < args.size(); i++) { args 472 src/CodeGen_Metal_Dev.cpp if (args[i].is_buffer) { args 475 src/CodeGen_Metal_Dev.cpp constant->name != args[i].name) { args 482 src/CodeGen_Metal_Dev.cpp stream << "#define " << get_memory_space(args[i].name) << " constant\n"; args 484 src/CodeGen_Metal_Dev.cpp stream << "#define " << get_memory_space(args[i].name) << " device\n"; args 487 src/CodeGen_Metal_Dev.cpp stream << "#define " << get_memory_space(args[i].name) << " device\n"; args 494 src/CodeGen_Metal_Dev.cpp for (size_t i = 0; i < args.size(); i++) { args 495 src/CodeGen_Metal_Dev.cpp if (!args[i].is_buffer) { args 500 src/CodeGen_Metal_Dev.cpp stream << print_type(args[i].type) args 502 src/CodeGen_Metal_Dev.cpp << print_name(args[i].name) args 520 src/CodeGen_Metal_Dev.cpp for (size_t i = 0; i < args.size(); i++) { args 521 src/CodeGen_Metal_Dev.cpp if (args[i].is_buffer) { args 523 src/CodeGen_Metal_Dev.cpp stream << " " << get_memory_space(args[i].name) << " "; args 524 src/CodeGen_Metal_Dev.cpp if (!args[i].write) stream << "const "; args 525 src/CodeGen_Metal_Dev.cpp stream << print_storage_type(args[i].type) << " *" args 526 src/CodeGen_Metal_Dev.cpp << print_name(args[i].name) << " [[ buffer(" << buffer_index++ << ") ]]"; args 528 src/CodeGen_Metal_Dev.cpp alloc.type = args[i].type; args 529 src/CodeGen_Metal_Dev.cpp allocations.push(args[i].name, alloc); args 539 src/CodeGen_Metal_Dev.cpp for (size_t i = 0; i < args.size(); i++) { args 540 src/CodeGen_Metal_Dev.cpp if (!args[i].is_buffer) { args 541 src/CodeGen_Metal_Dev.cpp stream << print_type(args[i].type) args 543 src/CodeGen_Metal_Dev.cpp << print_name(args[i].name) args 544 src/CodeGen_Metal_Dev.cpp << " = _scalar_args->" << print_name(args[i].name) args 552 src/CodeGen_Metal_Dev.cpp for (size_t i = 0; i < args.size(); i++) { args 554 src/CodeGen_Metal_Dev.cpp if (args[i].is_buffer) { args 555 src/CodeGen_Metal_Dev.cpp allocations.pop(args[i].name); args 560 src/CodeGen_Metal_Dev.cpp for (size_t i = 0; i < args.size(); i++) { args 561 src/CodeGen_Metal_Dev.cpp if (args[i].is_buffer) { args 562 src/CodeGen_Metal_Dev.cpp stream << "#undef " << get_memory_space(args[i].name) << "\n"; args 26 src/CodeGen_Metal_Dev.h const std::vector<DeviceArgument> &args); args 50 src/CodeGen_Metal_Dev.h const std::vector<DeviceArgument> &args); args 177 src/CodeGen_OpenCL_Dev.cpp if (op->args[0].type().is_vector()) { args 180 src/CodeGen_OpenCL_Dev.cpp op->args[0].accept(this); args 185 src/CodeGen_OpenCL_Dev.cpp Expr equiv = -Cast::make(op->type, op->args[0]); args 190 src/CodeGen_OpenCL_Dev.cpp Expr equiv = Cast::make(op->type, op->args[0]); args 193 src/CodeGen_OpenCL_Dev.cpp internal_assert(op->args.size() == 3); args 194 src/CodeGen_OpenCL_Dev.cpp string cond = print_expr(op->args[0]); args 195 src/CodeGen_OpenCL_Dev.cpp string true_val = print_expr(op->args[1]); args 196 src/CodeGen_OpenCL_Dev.cpp string false_val = print_expr(op->args[2]); args 206 src/CodeGen_OpenCL_Dev.cpp rhs << "abs_f" << op->type.bits() << "(" << print_expr(op->args[0]) << ")"; args 210 src/CodeGen_OpenCL_Dev.cpp rhs << "abs(" << print_expr(op->args[0]) << ")"; args 215 src/CodeGen_OpenCL_Dev.cpp rhs << "abs_diff(" << print_expr(op->args[0]) << ", " << print_expr(op->args[1]) << ")"; args 503 src/CodeGen_OpenCL_Dev.cpp const vector<DeviceArgument> &args) { args 508 src/CodeGen_OpenCL_Dev.cpp clc.add_kernel(s, name, args); args 527 src/CodeGen_OpenCL_Dev.cpp const vector<DeviceArgument> &args) { args 545 src/CodeGen_OpenCL_Dev.cpp for (size_t i = 0; i < args.size(); i++) { args 546 src/CodeGen_OpenCL_Dev.cpp if (args[i].is_buffer && args 547 src/CodeGen_OpenCL_Dev.cpp CodeGen_GPU_Dev::is_buffer_constant(s, args[i].name) && args 548 src/CodeGen_OpenCL_Dev.cpp args[i].size > 0) { args 549 src/CodeGen_OpenCL_Dev.cpp constants.push_back(BufferSize(args[i].name, args[i].size)); args 566 src/CodeGen_OpenCL_Dev.cpp for (size_t i = 0; i < args.size(); i++) { args 567 src/CodeGen_OpenCL_Dev.cpp if (args[i].is_buffer) { args 570 src/CodeGen_OpenCL_Dev.cpp constant->name != args[i].name) { args 577 src/CodeGen_OpenCL_Dev.cpp stream << "#define " << get_memory_space(args[i].name) << " __constant\n"; args 579 src/CodeGen_OpenCL_Dev.cpp stream << "#define " << get_memory_space(args[i].name) << " __global\n"; args 582 src/CodeGen_OpenCL_Dev.cpp stream << "#define " << get_memory_space(args[i].name) << " __global\n"; args 589 src/CodeGen_OpenCL_Dev.cpp for (size_t i = 0; i < args.size(); i++) { args 590 src/CodeGen_OpenCL_Dev.cpp if (args[i].is_buffer) { args 591 src/CodeGen_OpenCL_Dev.cpp stream << " " << get_memory_space(args[i].name) << " "; args 592 src/CodeGen_OpenCL_Dev.cpp if (!args[i].write) stream << "const "; args 593 src/CodeGen_OpenCL_Dev.cpp stream << print_type(args[i].type) << " *" args 595 src/CodeGen_OpenCL_Dev.cpp << print_name(args[i].name); args 597 src/CodeGen_OpenCL_Dev.cpp alloc.type = args[i].type; args 598 src/CodeGen_OpenCL_Dev.cpp allocations.push(args[i].name, alloc); args 600 src/CodeGen_OpenCL_Dev.cpp Type t = args[i].type; args 606 src/CodeGen_OpenCL_Dev.cpp << print_name(args[i].name); args 609 src/CodeGen_OpenCL_Dev.cpp if (i < args.size()-1) stream << ",\n"; args 619 src/CodeGen_OpenCL_Dev.cpp for (size_t i = 0; i < args.size(); i++) { args 621 src/CodeGen_OpenCL_Dev.cpp if (args[i].is_buffer) { args 622 src/CodeGen_OpenCL_Dev.cpp allocations.pop(args[i].name); args 627 src/CodeGen_OpenCL_Dev.cpp for (size_t i = 0; i < args.size(); i++) { args 628 src/CodeGen_OpenCL_Dev.cpp if (args[i].is_buffer) { args 629 src/CodeGen_OpenCL_Dev.cpp stream << "#undef " << get_memory_space(args[i].name) << "\n"; args 26 src/CodeGen_OpenCL_Dev.h const std::vector<DeviceArgument> &args); args 50 src/CodeGen_OpenCL_Dev.h const std::vector<DeviceArgument> &args); args 233 src/CodeGen_OpenGLCompute_Dev.cpp const vector<DeviceArgument> &args) { args 238 src/CodeGen_OpenGLCompute_Dev.cpp glc.add_kernel(s, name, args); args 259 src/CodeGen_OpenGLCompute_Dev.cpp const vector<DeviceArgument> &args) { args 272 src/CodeGen_OpenGLCompute_Dev.cpp for (size_t i = 0; i < args.size(); i++) { args 273 src/CodeGen_OpenGLCompute_Dev.cpp if (args[i].is_buffer) { args 281 src/CodeGen_OpenGLCompute_Dev.cpp << print_type(args[i].type) << " data[]; } " args 282 src/CodeGen_OpenGLCompute_Dev.cpp << print_name(args[i].name) << ";\n"; args 284 src/CodeGen_OpenGLCompute_Dev.cpp stream << "uniform " << print_type(args[i].type) args 285 src/CodeGen_OpenGLCompute_Dev.cpp << " " << print_name(args[i].name) << ";\n"; args 26 src/CodeGen_OpenGLCompute_Dev.h const std::vector<DeviceArgument> &args); args 47 src/CodeGen_OpenGLCompute_Dev.h const std::vector<DeviceArgument> &args); args 73 src/CodeGen_OpenGL_Dev.cpp const vector<Expr> &args) { args 75 src/CodeGen_OpenGL_Dev.cpp vector<Expr> new_args(args.size()); args 76 src/CodeGen_OpenGL_Dev.cpp for (size_t i = 0; i < args.size(); i++) { args 77 src/CodeGen_OpenGL_Dev.cpp if (!args[i].type().is_float()) { args 78 src/CodeGen_OpenGL_Dev.cpp new_args[i] = Cast::make(float_type, args[i]); args 80 src/CodeGen_OpenGL_Dev.cpp new_args[i] = args[i]; args 100 src/CodeGen_OpenGL_Dev.cpp const vector<DeviceArgument> &args) { args 102 src/CodeGen_OpenGL_Dev.cpp glc->add_kernel(s, name, args); args 199 src/CodeGen_OpenGL_Dev.cpp for (size_t i = 0; i < op->args.size(); i++) { args 201 src/CodeGen_OpenGL_Dev.cpp rhs << print_expr(op->args[i]); args 588 src/CodeGen_OpenGL_Dev.cpp internal_assert(op->args.size() == 5); args 592 src/CodeGen_OpenGL_Dev.cpp internal_assert(op->args[0].as<StringImm>() || args 593 src/CodeGen_OpenGL_Dev.cpp (op->args[0].as<Broadcast>() && op->args[0].as<Broadcast>()->value.as<StringImm>())); args 595 src/CodeGen_OpenGL_Dev.cpp const StringImm *string_imm = op->args[0].as<StringImm>(); args 597 src/CodeGen_OpenGL_Dev.cpp string_imm = op->args[0].as<Broadcast>()->value.as<StringImm>(); args 608 src/CodeGen_OpenGL_Dev.cpp Expr c = op->args[4]; args 612 src/CodeGen_OpenGL_Dev.cpp const Broadcast *bx = op->args[2].as<Broadcast>(); args 613 src/CodeGen_OpenGL_Dev.cpp const Broadcast *by = op->args[3].as<Broadcast>(); args 638 src/CodeGen_OpenGL_Dev.cpp vector<string> xs = print_lanes(op->args[2]); args 639 src/CodeGen_OpenGL_Dev.cpp vector<string> ys = print_lanes(op->args[3]); args 640 src/CodeGen_OpenGL_Dev.cpp vector<string> cs = print_lanes(op->args[4]); args 643 src/CodeGen_OpenGL_Dev.cpp string x = print_expr(op->args[2]), y = print_expr(op->args[3]); args 654 src/CodeGen_OpenGL_Dev.cpp } else if (const int64_t *ic = as_const_int(op->args[4])) { args 657 src/CodeGen_OpenGL_Dev.cpp << print_expr(op->args[2]) << ", " args 658 src/CodeGen_OpenGL_Dev.cpp << print_expr(op->args[3]) << "))." args 662 src/CodeGen_OpenGL_Dev.cpp << print_expr(op->args[2]) << ", " args 663 src/CodeGen_OpenGL_Dev.cpp << print_expr(op->args[3]) << "))[" args 664 src/CodeGen_OpenGL_Dev.cpp << print_expr(op->args[4]) << "]"; args 673 src/CodeGen_OpenGL_Dev.cpp internal_assert(op->args.size() == 6); args 674 src/CodeGen_OpenGL_Dev.cpp string sval = print_expr(op->args[5]); args 675 src/CodeGen_OpenGL_Dev.cpp string suffix = get_vector_suffix(op->args[4]); args 679 src/CodeGen_OpenGL_Dev.cpp if (op->args[5].type().is_uint()) { args 680 src/CodeGen_OpenGL_Dev.cpp stream << " / " << print_expr(cast<float>(op->args[5].type().max())); args 690 src/CodeGen_OpenGL_Dev.cpp debug(2) << "Found skipped varying attribute: " << op->args[0] << "\n"; args 693 src/CodeGen_OpenGL_Dev.cpp print_expr(op->args[1]); args 698 src/CodeGen_OpenGL_Dev.cpp Expr zero_val = op->args[0]; args 699 src/CodeGen_OpenGL_Dev.cpp Expr one_val = op->args[1]; args 700 src/CodeGen_OpenGL_Dev.cpp Expr weight = op->args[2]; args 726 src/CodeGen_OpenGL_Dev.cpp print_expr(call_builtin(op->type, op->name, op->args)); args 729 src/CodeGen_OpenGL_Dev.cpp internal_assert(op->args.size() == 2); args 732 src/CodeGen_OpenGL_Dev.cpp rhs << print_expr(op->args[1]); args 823 src/CodeGen_OpenGL_Dev.cpp const vector<DeviceArgument> &args) { args 848 src/CodeGen_OpenGL_Dev.cpp for (size_t i = 0; i < args.size(); i++) { args 849 src/CodeGen_OpenGL_Dev.cpp if (args[i].is_buffer) { args 850 src/CodeGen_OpenGL_Dev.cpp Type t = args[i].type.element_of(); args 852 src/CodeGen_OpenGL_Dev.cpp user_assert(args[i].read != args[i].write) << args 862 src/CodeGen_OpenGL_Dev.cpp user_error << "GLSL: buffer " << args[i].name << " has invalid type " << t << ".\n"; args 864 src/CodeGen_OpenGL_Dev.cpp header << "/// " << (args[i].read ? "IN_BUFFER " : "OUT_BUFFER ") args 865 src/CodeGen_OpenGL_Dev.cpp << type_name << " " << print_name(args[i].name) << "\n"; args 866 src/CodeGen_OpenGL_Dev.cpp } else if (ends_with(args[i].name, ".varying")) { args 871 src/CodeGen_OpenGL_Dev.cpp << "float " << print_name(args[i].name) << " varyingf" << args[i].packed_index/4 << "[" << args[i].packed_index%4 << "]\n"; args 873 src/CodeGen_OpenGL_Dev.cpp } else if (args[i].type.is_float()) { args 875 src/CodeGen_OpenGL_Dev.cpp << CodeGen_C::print_type(args[i].type) << " " args 876 src/CodeGen_OpenGL_Dev.cpp << print_name(args[i].name) << " uniformf" << args[i].packed_index/4 << "[" << args[i].packed_index%4 << "]\n"; args 878 src/CodeGen_OpenGL_Dev.cpp } else if (args[i].type.is_int()) { args 880 src/CodeGen_OpenGL_Dev.cpp << CodeGen_C::print_type(args[i].type) << " " args 881 src/CodeGen_OpenGL_Dev.cpp << print_name(args[i].name) << " uniformi" << args[i].packed_index/4 << "[" << args[i].packed_index%4 << "]\n"; args 902 src/CodeGen_OpenGL_Dev.cpp for (size_t i = 0; i < args.size(); i++) { args 903 src/CodeGen_OpenGL_Dev.cpp if (args[i].is_buffer && args[i].read) { args 904 src/CodeGen_OpenGL_Dev.cpp stream << "uniform sampler2D " << print_name(args[i].name) << ";\n"; args 930 src/CodeGen_OpenGL_Dev.cpp for (size_t i = 0; i < args.size(); i++) { args 931 src/CodeGen_OpenGL_Dev.cpp if (args[i].is_buffer) { args 933 src/CodeGen_OpenGL_Dev.cpp } else if (ends_with(args[i].name, ".varying")) { args 935 src/CodeGen_OpenGL_Dev.cpp stream << "float " << print_name(args[i].name) args 936 src/CodeGen_OpenGL_Dev.cpp << " = _varyingf" << args[i].packed_index/4 args 937 src/CodeGen_OpenGL_Dev.cpp << "[" << args[i].packed_index%4 << "];\n"; args 938 src/CodeGen_OpenGL_Dev.cpp } else if (args[i].type.is_float()) { args 940 src/CodeGen_OpenGL_Dev.cpp stream << print_type(args[i].type) << " " args 941 src/CodeGen_OpenGL_Dev.cpp << print_name(args[i].name) args 942 src/CodeGen_OpenGL_Dev.cpp << " = _uniformf" << args[i].packed_index/4 args 943 src/CodeGen_OpenGL_Dev.cpp << "[" << args[i].packed_index%4 << "];\n"; args 944 src/CodeGen_OpenGL_Dev.cpp } else if (args[i].type.is_int()) { args 946 src/CodeGen_OpenGL_Dev.cpp stream << print_type(args[i].type) << " " args 947 src/CodeGen_OpenGL_Dev.cpp << print_name(args[i].name) args 948 src/CodeGen_OpenGL_Dev.cpp << " = _uniformi" << args[i].packed_index/4 args 949 src/CodeGen_OpenGL_Dev.cpp << "[" << args[i].packed_index%4 << "];\n"; args 27 src/CodeGen_OpenGL_Dev.h const std::vector<DeviceArgument> &args); args 91 src/CodeGen_OpenGL_Dev.h const std::vector<DeviceArgument> &args); args 49 src/CodeGen_PTX_Dev.cpp const std::vector<DeviceArgument> &args) { args 55 src/CodeGen_PTX_Dev.cpp vector<llvm::Type *> arg_types(args.size()); args 56 src/CodeGen_PTX_Dev.cpp for (size_t i = 0; i < args.size(); i++) { args 57 src/CodeGen_PTX_Dev.cpp if (args[i].is_buffer) { args 60 src/CodeGen_PTX_Dev.cpp arg_types[i] = llvm_type_of(args[i].type); args 70 src/CodeGen_PTX_Dev.cpp for (size_t i = 0; i < args.size(); i++) { args 71 src/CodeGen_PTX_Dev.cpp if (args[i].is_buffer) { args 85 src/CodeGen_PTX_Dev.cpp for (auto &fn_arg : function->args()) { args 87 src/CodeGen_PTX_Dev.cpp string arg_sym_name = args[i].name; args 31 src/CodeGen_PTX_Dev.h const std::vector<DeviceArgument> &args); args 193 src/CodeGen_Posix.cpp Value *args[2] = { get_user_context(), llvm_size }; args 195 src/CodeGen_Posix.cpp Value *call = builder->CreateCall(malloc_fn, args); args 50 src/CodeGen_X86.cpp vector<Expr> args = {lossless_cast(narrow, ma->a), args 54 src/CodeGen_X86.cpp if (!args[0].defined() || !args[1].defined() || args 55 src/CodeGen_X86.cpp !args[2].defined() || !args[3].defined()) { args 59 src/CodeGen_X86.cpp result.swap(args); args 392 src/CodeGen_X86.cpp !is_positive_const(op->args[0])) { args 404 src/CodeGen_X86.cpp cast(wider, op->args[0]) << args 405 src/CodeGen_X86.cpp cast(wider, op->args[1])); args 14 src/DebugArguments.cpp for (LoweredArgument arg : func->args) { args 26 src/DebugToFile.cpp vector<Expr> args; args 32 src/DebugToFile.cpp args.push_back(f.debug_file()); args 68 src/DebugToFile.cpp args.push_back(type_code); args 71 src/DebugToFile.cpp args.push_back(buf); args 73 src/DebugToFile.cpp Expr call = Call::make(Int(32), Call::debug_to_file, args, Call::Intrinsic); args 20 src/Definition.cpp std::vector<Expr> values, args; args 34 src/Definition.cpp for (Expr arg : args) { args 56 src/Definition.cpp for (size_t i = 0; i < args.size(); ++i) { args 57 src/Definition.cpp args[i] = mutator->mutate(args[i]); args 88 src/Definition.cpp Definition::Definition(const std::vector<Expr> &args, const std::vector<Expr> &values, args 93 src/Definition.cpp contents->args = args; args 111 src/Definition.cpp copy.contents->args = contents->args; args 138 src/Definition.cpp return contents->args; args 142 src/Definition.cpp return contents->args; args 189 src/Definition.cpp s.definition.contents->args = contents->args; args 47 src/Definition.h EXPORT Definition(const std::vector<Expr> &args, const std::vector<Expr> &values, args 81 src/Definition.h EXPORT const std::vector<Expr> &args() const; args 82 src/Definition.h EXPORT std::vector<Expr> &args(); args 258 src/Deinterleave.cpp std::vector<Expr> args(op->args.size()); args 259 src/Deinterleave.cpp for (size_t i = 0; i < args.size(); i++) { args 260 src/Deinterleave.cpp args[i] = mutate(op->args[i]); args 263 src/Deinterleave.cpp expr = Call::make(t, op->name, args, op->call_type, args 603 src/Deinterleave.cpp std::vector<Expr> args(stores.size()); args 672 src/Deinterleave.cpp if (args[j].defined()) goto fail; args 677 src/Deinterleave.cpp args[j] = Load::make(t, load_name, stores[i].as<Store>()->index, args 680 src/Deinterleave.cpp args[j] = stores[i].as<Store>()->value; args 691 src/Deinterleave.cpp Expr value = Shuffle::make_interleave(args); args 43 src/DeviceArgument.cpp const StringImm *string_imm = op->args[0].as<StringImm>(); args 45 src/DeviceArgument.cpp internal_assert(op->args[0].as<Broadcast>()); args 46 src/DeviceArgument.cpp string_imm = op->args[0].as<Broadcast>()->value.as<StringImm>(); args 63 src/Func.cpp const std::vector<std::string> arg_names = func.args(); args 64 src/Func.cpp std::vector<Var> args(arg_names.size()); args 66 src/Func.cpp args[i] = Var(arg_names[i]); args 68 src/Func.cpp return args; args 98 src/Func.cpp return func.update(idx).args(); args 163 src/Func.cpp const std::vector<ExternFuncArgument> &args, args 168 src/Func.cpp func.define_extern(function_name, args, types, dimensionality, args 193 src/Func.cpp FuncRef Func::operator()(vector<Var> args) const { args 195 src/Func.cpp std::tie(placeholder_pos, count) = add_implicit_vars(args); args 196 src/Func.cpp return FuncRef(func, args, placeholder_pos, count); args 199 src/Func.cpp FuncRef Func::operator()(vector<Expr> args) const { args 201 src/Func.cpp std::tie(placeholder_pos, count) = add_implicit_vars(args); args 202 src/Func.cpp return FuncRef(func, args, placeholder_pos, count); args 205 src/Func.cpp std::pair<int, int> Func::add_implicit_vars(vector<Var> &args) const { args 208 src/Func.cpp std::vector<Var>::iterator iter = args.begin(); args 210 src/Func.cpp while (iter != args.end() && !iter->same_as(_)) { args 213 src/Func.cpp if (iter != args.end()) { args 214 src/Func.cpp placeholder_pos = (int)(iter - args.begin()); args 216 src/Func.cpp iter = args.erase(iter); args 217 src/Func.cpp while ((int)args.size() < dimensions()) { args 219 src/Func.cpp iter = args.insert(iter, Var::implicit(i++)); args 225 src/Func.cpp if (func.has_pure_definition() && args.size() != (size_t)dimensions()) { args 227 src/Func.cpp << args.size() << " arguments, but was defined with " << dimensions() << "\n"; args 233 src/Func.cpp std::pair<int, int> Func::add_implicit_vars(vector<Expr> &args) const { args 236 src/Func.cpp std::vector<Expr>::iterator iter = args.begin(); args 237 src/Func.cpp while (iter != args.end()) { args 243 src/Func.cpp if (iter != args.end()) { args 244 src/Func.cpp placeholder_pos = (int)(iter - args.begin()); args 246 src/Func.cpp iter = args.erase(iter); args 247 src/Func.cpp while ((int)args.size() < dimensions()) { args 249 src/Func.cpp iter = args.insert(iter, Var::implicit(i++)); args 255 src/Func.cpp if (func.has_pure_definition() && args.size() != (size_t)dimensions()) { args 257 src/Func.cpp << args.size() << " arguments, but was defined with " << dimensions() << "\n"; args 371 src/Func.cpp vector<Expr> args; args 372 src/Func.cpp args.insert(args.end(), c->args.begin(), c->args.end()); args 373 src/Func.cpp args.insert(args.end(), new_args.begin(), new_args.end()); args 374 src/Func.cpp expr = Call::make(substitute, args, c->value_index); args 404 src/Func.cpp vector<Expr> &predicates, vector<Expr> &args, args 413 src/Func.cpp substitute_var_in_exprs(res.name, res.value, args); args 425 src/Func.cpp substitute_var_in_exprs(let.first, let.second, args); args 434 src/Func.cpp vector<Expr> &predicates, vector<Expr> &args, args 457 src/Func.cpp apply_split_result(bounds_let_stmts, splits_result, predicates, args, values); args 467 src/Func.cpp vector<Expr> &predicates, vector<Expr> &args, args 492 src/Func.cpp apply_split_result(bounds_let_stmts, splits_result, predicates, args, values); args 504 src/Func.cpp vector<Expr> &predicates, vector<Expr> &args, args 516 src/Func.cpp apply_split_result(bounds_let_stmts, splits_result, predicates, args, values); args 525 src/Func.cpp vector<Expr> &predicates, vector<Expr> &args, args 536 src/Func.cpp apply_split_result(bounds_let_stmts, splits_result, predicates, args, values); args 546 src/Func.cpp vector<Expr> &predicates, vector<Expr> &args, args 562 src/Func.cpp found = apply_split(s, rvars, predicates, args, values, dim_extent_alignment); args 564 src/Func.cpp found = apply_fuse(s, rvars, predicates, args, values, dim_extent_alignment); args 566 src/Func.cpp found = apply_purify(s, rvars, predicates, args, values, dim_extent_alignment); args 568 src/Func.cpp found = apply_rename(s, rvars, predicates, args, values, dim_extent_alignment); args 574 src/Func.cpp substitute_var_in_exprs(let.first, let.second, args); args 597 src/Func.cpp vector<Expr> &args = definition.args(); args 602 src/Func.cpp const auto &prover_result = prove_associativity(func_name, args, values); args 670 src/Func.cpp if (!apply_split_directive(s, rvars, predicates, args, values)) { args 756 src/Func.cpp vector<Expr> update_args(args.size() + vars_rename.size()); args 766 src/Func.cpp update_args[i + args.size()] = vars_rename[i]; args 773 src/Func.cpp for (size_t i = 0; i < args.size(); i++) { args 774 src/Func.cpp Expr arg = substitute(substitution_map, args[i]); args 899 src/Func.cpp args.swap(f_store_args); args 1760 src/Func.cpp wrapper(args()) = (*this)(args()); args 1801 src/Func.cpp wrapper(args()) = (*this)(args()); args 1843 src/Func.cpp wrapper(args()) = (*this)(args()); args 1857 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()).split(old, outer, inner, factor, tail); args 1863 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()).fuse(inner, outer, fused); args 1869 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()).rename(old_name, new_name); args 1874 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()).allow_race_conditions(); args 1886 src/Func.cpp return Stage(func.definition(), name(), args(), func.schedule().storage_dims()).specialize(c); args 1891 src/Func.cpp (void) Stage(func.definition(), name(), args(), func.schedule().storage_dims()).specialize_fail(message); args 1896 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()).serial(var); args 1902 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()).parallel(var); args 1908 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()).vectorize(var); args 1914 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()).unroll(var); args 1920 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()).parallel(var, factor, tail); args 1926 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()).vectorize(var, factor, tail); args 1932 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()).unroll(var, factor, tail); args 1948 src/Func.cpp for (size_t i = 0; i < func.args().size(); i++) { args 1949 src/Func.cpp if (var.name() == func.args()[i]) { args 1983 src/Func.cpp for (size_t i = 0; i < func.args().size(); i++) { args 1984 src/Func.cpp if (var.name() == func.args()[i]) { args 2005 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()).tile(x, y, xo, yo, xi, yi, xfactor, yfactor, tail); args 2014 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()).tile(x, y, xi, yi, xfactor, yfactor, tail); args 2020 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()).reorder(vars); args 2026 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()).gpu_threads(tx, device_api); args 2032 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()).gpu_threads(tx, ty, device_api); args 2038 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()).gpu_threads(tx, ty, tz, device_api); args 2044 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()).gpu_blocks(bx, device_api); args 2050 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()).gpu_blocks(bx, by, device_api); args 2056 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()).gpu_blocks(bx, by, bz, device_api); args 2062 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()).gpu_single_thread(device_api); args 2068 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()).gpu(bx, tx, device_api); args 2074 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()).gpu(bx, by, tx, ty, device_api); args 2080 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()).gpu(bx, by, bz, tx, ty, tz, device_api); args 2086 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()).gpu_tile(x, bx, tx, x_size, tail, device_api); args 2092 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()).gpu_tile(x, bx, tx, x_size, tail, device_api); args 2098 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()).gpu_tile(x, tx, x_size, tail, device_api); args 2109 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()) args 2120 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()) args 2131 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()) args 2143 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()) args 2154 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()) args 2161 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()).gpu_tile(x, x_size, tail, device_api); args 2170 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()).gpu_tile(x, y, x_size, y_size, tail, device_api); args 2179 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()).gpu_tile(x, y, z, x_size, y_size, z_size, tail, device_api); args 2192 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()).gpu_blocks(x, y, device_api); args 2214 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()).hexagon(x); args 2220 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()).prefetch(f, var, offset, strategy); args 2226 src/Func.cpp Stage(func.definition(), name(), args(), func.schedule().storage_dims()).prefetch(param, var, offset, strategy); args 2373 src/Func.cpp args(), args 2378 src/Func.cpp return Stage(func.definition(), name(), args(), func.schedule().storage_dims()); args 2406 src/Func.cpp Internal::check_call_arg_types(f.name(), &args, args.size()); args 2412 src/Func.cpp args.resize(a.size()); args 2414 src/Func.cpp args[i] = a[i]; args 2419 src/Func.cpp vector<Expr> a = args; args 2484 src/Func.cpp for (size_t i = 0; i < args.size(); ++i) { args 2485 src/Func.cpp const Variable *var = args[i].as<Variable>(); args 2500 src/Func.cpp return Stage(func.definition(), func.name(), func.args(), func.schedule().storage_dims()); args 2503 src/Func.cpp func.define_update(args, e.as_vector()); args 2508 src/Func.cpp func.args(), args 2661 src/Func.cpp return Call::make(func, args); args 2675 src/Func.cpp return FuncTupleElementRef(*this, args, i); args 2683 src/Func.cpp const FuncRef &ref, const std::vector<Expr>& args, int idx) args 2684 src/Func.cpp : func_ref(ref), args(args), idx(idx) { args 2728 src/Func.cpp return Internal::Call::make(func_ref.function(), args, idx); args 2808 src/Func.cpp Module Func::compile_to_module(const vector<Argument> &args, const std::string &fn_name, const Target &target) { args 2809 src/Func.cpp return pipeline().compile_to_module(args, fn_name, target); args 2814 src/Func.cpp const vector<Argument> &args, args 2817 src/Func.cpp pipeline().compile_to(output_files, args, fn_name, target); args 2820 src/Func.cpp void Func::compile_to_bitcode(const string &filename, const vector<Argument> &args, const string &fn_name, args 2822 src/Func.cpp pipeline().compile_to_bitcode(filename, args, fn_name, target); args 2825 src/Func.cpp void Func::compile_to_bitcode(const string &filename, const vector<Argument> &args, args 2827 src/Func.cpp pipeline().compile_to_bitcode(filename, args, "", target); args 2830 src/Func.cpp void Func::compile_to_llvm_assembly(const string &filename, const vector<Argument> &args, const string &fn_name, args 2832 src/Func.cpp pipeline().compile_to_llvm_assembly(filename, args, fn_name, target); args 2835 src/Func.cpp void Func::compile_to_llvm_assembly(const string &filename, const vector<Argument> &args, args 2837 src/Func.cpp pipeline().compile_to_llvm_assembly(filename, args, "", target); args 2840 src/Func.cpp void Func::compile_to_object(const string &filename, const vector<Argument> &args, args 2842 src/Func.cpp pipeline().compile_to_object(filename, args, fn_name, target); args 2845 src/Func.cpp void Func::compile_to_object(const string &filename, const vector<Argument> &args, args 2847 src/Func.cpp pipeline().compile_to_object(filename, args, "", target); args 2850 src/Func.cpp void Func::compile_to_header(const string &filename, const vector<Argument> &args, args 2852 src/Func.cpp pipeline().compile_to_header(filename, args, fn_name, target); args 2855 src/Func.cpp void Func::compile_to_c(const string &filename, const vector<Argument> &args, args 2857 src/Func.cpp pipeline().compile_to_c(filename, args, fn_name, target); args 2861 src/Func.cpp const vector<Argument> &args, args 2864 src/Func.cpp pipeline().compile_to_lowered_stmt(filename, args, fmt, target); args 2872 src/Func.cpp const vector<Argument> &args, args 2875 src/Func.cpp pipeline().compile_to_file(filename_prefix, args, fn_name, target); args 2879 src/Func.cpp const vector<Argument> &args, args 2882 src/Func.cpp pipeline().compile_to_static_library(filename_prefix, args, fn_name, target); args 2886 src/Func.cpp const std::vector<Argument> &args, args 2888 src/Func.cpp pipeline().compile_to_multitarget_static_library(filename_prefix, args, targets); args 2891 src/Func.cpp void Func::compile_to_assembly(const string &filename, const vector<Argument> &args, const string &fn_name, args 2893 src/Func.cpp pipeline().compile_to_assembly(filename, args, fn_name, target); args 2896 src/Func.cpp void Func::compile_to_assembly(const string &filename, const vector<Argument> &args, const Target &target) { args 2897 src/Func.cpp pipeline().compile_to_assembly(filename, args, "", target); args 66 src/Func.h Stage(Internal::Definition d, const std::string &n, const std::vector<Var> &args, args 68 src/Func.h : definition(d), stage_name(n), dim_vars(args), storage_dims(sdims) { args 69 src/Func.h internal_assert(definition.args().size() == dim_vars.size()); args 73 src/Func.h Stage(Internal::Definition d, const std::string &n, const std::vector<std::string> &args, args 78 src/Func.h std::vector<Var> dim_vars(args.size()); args 79 src/Func.h for (size_t i = 0; i < args.size(); i++) { args 80 src/Func.h dim_vars[i] = Var(args[i]); args 82 src/Func.h internal_assert(definition.args().size() == dim_vars.size()); args 197 src/Func.h reorder(VarOrRVar x, VarOrRVar y, Args&&... args) { args 198 src/Func.h std::vector<VarOrRVar> collected_args{x, y, std::forward<Args>(args)...}; args 315 src/Func.h std::vector<Expr> args; args 418 src/Func.h std::vector<Expr> args; // args to the function args 426 src/Func.h FuncTupleElementRef(const FuncRef &ref, const std::vector<Expr>& args, int idx); args 668 src/Func.h const std::vector<Argument> &args, args 681 src/Func.h EXPORT void compile_to_file(const std::string &filename_prefix, const std::vector<Argument> &args, args 689 src/Func.h EXPORT void compile_to_static_library(const std::string &filename_prefix, const std::vector<Argument> &args, args 701 src/Func.h const std::vector<Argument> &args, args 706 src/Func.h EXPORT Module compile_to_module(const std::vector<Argument> &args, const std::string &fn_name = "", args 714 src/Func.h const std::vector<Argument> &args, args 882 src/Func.h EXPORT std::vector<Var> args() const; args 978 src/Func.h operator()(Args&&... args) const { args 979 src/Func.h std::vector<Var> collected_args{std::forward<Args>(args)...}; args 995 src/Func.h operator()(Expr x, Args&&... args) const { args 996 src/Func.h std::vector<Expr> collected_args{x, std::forward<Args>(args)...}; args 1207 src/Func.h reorder(VarOrRVar x, VarOrRVar y, Args&&... args) { args 1208 src/Func.h std::vector<VarOrRVar> collected_args{x, y, std::forward<Args>(args)...}; args 1609 src/Func.h reorder_storage(Var x, Var y, Args&&... args) { args 1610 src/Func.h std::vector<Var> collected_args{x, y, std::forward<Args>(args)...}; args 79 src/Function.cpp for (size_t j = 0; j < init_def.args().size() && j < 4; j++) { args 148 src/Function.cpp for (size_t i = 0; i < op->args.size(); i++) { args 149 src/Function.cpp const Variable *var = op->args[i].as<Variable>(); args 212 src/Function.cpp expr = Call::make(c->type, c->name, c->args, c->call_type, args 371 src/Function.cpp void Function::define(const vector<string> &args, vector<Expr> values) { args 388 src/Function.cpp check.pure_args = args; args 400 src/Function.cpp for (size_t i = 0; i < args.size(); i++) { args 401 src/Function.cpp user_assert(!args[i].empty()) args 406 src/Function.cpp user_assert(args[i] != args[j]) args 410 src/Function.cpp << " both have the name \"" + args[i] + "\"\n"; args 421 src/Function.cpp values[i] = lower_random(values[i], args, tag); args 440 src/Function.cpp auto &pure_def_args = contents->init_def.args(); args 441 src/Function.cpp pure_def_args.resize(args.size()); args 442 src/Function.cpp for (size_t i = 0; i < args.size(); i++) { args 443 src/Function.cpp pure_def_args[i] = Var(args[i]); args 446 src/Function.cpp for (size_t i = 0; i < args.size(); i++) { args 447 src/Function.cpp Dim d = {args[i], ForType::Serial, DeviceAPI::None, Dim::Type::PureVar}; args 449 src/Function.cpp StorageDim sd = {args[i]}; args 469 src/Function.cpp Parameter output(values[i].type(), true, args.size(), buffer_name); args 523 src/Function.cpp vector<Expr> args(_args.size()); args 524 src/Function.cpp for (size_t i = 0; i < args.size(); i++) { args 525 src/Function.cpp args[i] = common_subexpression_elimination(_args[i]); args 532 src/Function.cpp vector<string> pure_args(args.size()); args 533 src/Function.cpp const auto &pure_def_args = contents->init_def.args(); args 534 src/Function.cpp for (size_t i = 0; i < args.size(); i++) { args 536 src/Function.cpp user_assert(args[i].defined()) args 540 src/Function.cpp if (const Variable *var = args[i].as<Variable>()) { args 561 src/Function.cpp for (size_t i = 0; i < args.size(); i++) { args 562 src/Function.cpp args[i].accept(&check); args 574 src/Function.cpp for (size_t i = 0; i < args.size(); i++) { args 575 src/Function.cpp args[i].accept(&freezer); args 601 src/Function.cpp for (size_t i = 0; i < args.size(); i++) { args 602 src/Function.cpp args[i] = lower_random(args[i], free_vars, tag); args 617 src/Function.cpp for (size_t i = 0; i < args.size(); i++) { args 618 src/Function.cpp args[i] = deleter.mutate(args[i]); args 628 src/Function.cpp Definition r(args, values, check.reduction_domain, false); args 682 src/Function.cpp const std::vector<ExternFuncArgument> &args, args 697 src/Function.cpp contents->extern_arguments = args; args 712 src/Function.cpp auto &pure_def_args = contents->init_def.args(); args 739 src/Function.cpp const auto &pure_def_args = contents->init_def.args(); args 750 src/Function.cpp return contents->init_def.args().size(); args 812 src/Function.cpp Expr Function::make_call_to_extern_definition(const std::vector<Expr> &args, args 830 src/Function.cpp return Call::make(Int(32), contents->extern_function_name, args, call_type, contents); args 906 src/Function.cpp expr = Call::make(subs, c->args, c->value_index); args 113 src/Function.h EXPORT void define(const std::vector<std::string> &args, std::vector<Expr> values); args 123 src/Function.h EXPORT void define_update(const std::vector<Expr> &args, std::vector<Expr> values); args 139 src/Function.h EXPORT const std::vector<std::string> args() const; args 205 src/Function.h EXPORT Expr make_call_to_extern_definition(const std::vector<Expr> &args, args 214 src/Function.h const std::vector<ExternFuncArgument> &args, args 162 src/Generator.cpp std::vector<Var> args; args 166 src/Generator.cpp args.push_back(v); args 170 src/Generator.cpp f(args) = Internal::Call::make(p, args_expr); args 973 src/Generator.h Realization realize(Args&&... args) { args 975 src/Generator.h return f.realize(std::forward<Args>(args)..., get_target()); args 1315 src/Generator.h Expr operator()(Args&&... args) const { args 1316 src/Generator.h return this->funcs().at(0)(std::forward<Args>(args)...); args 1319 src/Generator.h Expr operator()(std::vector<Expr> args) const { args 1320 src/Generator.h return this->funcs().at(0)(args); args 1386 src/Generator.h Expr operator()(Args&&... args) const { args 1387 src/Generator.h return this->funcs().at(0)(std::forward<Args>(args)...); args 1390 src/Generator.h Expr operator()(std::vector<Expr> args) const { args 1391 src/Generator.h return this->funcs().at(0)(args); args 1596 src/Generator.h inline auto method(Args&&... args) -> \ args 1597 src/Generator.h decltype(std::declval<Func>().method(std::forward<Args>(args)...)) {\ args 1598 src/Generator.h return get_func_ref().method(std::forward<Args>(args)...); \ args 1603 src/Generator.h inline auto method(Args&&... args) const -> \ args 1604 src/Generator.h decltype(std::declval<Func>().method(std::forward<Args>(args)...)) {\ args 1605 src/Generator.h return get_func_ref().method(std::forward<Args>(args)...); \ args 1612 src/Generator.h HALIDE_OUTPUT_FORWARD_CONST(args) args 1735 src/Generator.h FuncRef operator()(Args&&... args) const { args 1736 src/Generator.h return get_values<ValueType>().at(0)(std::forward<Args>(args)...); args 1740 src/Generator.h FuncRef operator()(std::vector<ExprOrVar> args) const { args 1741 src/Generator.h return get_values<ValueType>().at(0)(args); args 2292 src/Generator.h void set_inputs(const Args &...args) { args 2295 src/Generator.h user_assert(sizeof...(args) == pi.filter_inputs.size()) args 2297 src/Generator.h << " inputs but got " << sizeof...(args) << "\n"; args 2298 src/Generator.h set_inputs_vector(build_inputs(std::forward_as_tuple<const Args &...>(args...), make_index_sequence<sizeof...(Args)>{})); args 2309 src/Generator.h Realization realize(Args&&... args) { args 2311 src/Generator.h return get_pipeline().realize(std::forward<Args>(args)..., get_target()); args 2822 src/Generator.h FuncRef operator()(Args&&... args) const { args 2823 src/Generator.h return get_first_output()(std::forward<Args>(args)...); args 2827 src/Generator.h FuncRef operator()(std::vector<ExprOrVar> args) const { args 2828 src/Generator.h return get_first_output()(args); args 2838 src/Generator.h Realization realize(Args&&... args) { args 2839 src/Generator.h return generator->realize(std::forward<Args>(args)...); args 721 src/HexagonOffload.cpp std::vector<LoweredArgument> args; args 722 src/HexagonOffload.cpp args.insert(args.end(), input_buffers.begin(), input_buffers.end()); args 723 src/HexagonOffload.cpp args.insert(args.end(), output_buffers.begin(), output_buffers.end()); args 729 src/HexagonOffload.cpp args.push_back(arg); args 731 src/HexagonOffload.cpp device_code.append(LoweredFunc(hex_name, args, body, LoweredFunc::ExternalPlusMetadata)); args 49 src/HexagonOptimize.cpp if (!c || c->args.size() != 1) return false; args 883 src/HexagonOptimize.cpp internal_assert(op->args.size() == 3); args 884 src/HexagonOptimize.cpp expr = mutate(lower_lerp(op->args[0], op->args[1], op->args[2])); args 886 src/HexagonOptimize.cpp internal_assert(op->args.size() == 1); args 887 src/HexagonOptimize.cpp Type src_type = op->args[0].type(); args 891 src/HexagonOptimize.cpp expr = mutate(Cast::make(dst_type, op->args[0])); args 895 src/HexagonOptimize.cpp Expr e = op->args[0]; args 995 src/HexagonOptimize.cpp return x.as<Call>()->args[0]; args 1232 src/HexagonOptimize.cpp for (Expr i : op->args) { args 1246 src/HexagonOptimize.cpp Expr arg = mutate(op->args[0]); args 1247 src/HexagonOptimize.cpp if (!arg.same_as(op->args[0]) || interleave_mask) { args 1266 src/HexagonOptimize.cpp vector<Expr> args(op->args); args 1270 src/HexagonOptimize.cpp for (Expr &i : args) { args 1303 src/HexagonOptimize.cpp if (is_native_deinterleave(op) && yields_interleave(args[0])) { args 1305 src/HexagonOptimize.cpp expr = remove_interleave(args[0]); args 1306 src/HexagonOptimize.cpp } else if (is_interleavable(op) && yields_removable_interleave(args)) { args 1310 src/HexagonOptimize.cpp for (Expr &i : args) { args 1313 src/HexagonOptimize.cpp expr = Call::make(op->type, op->name, args, op->call_type, args 1318 src/HexagonOptimize.cpp yields_removable_interleave(args)) { args 1322 src/HexagonOptimize.cpp for (Expr &i : args) { args 1325 src/HexagonOptimize.cpp expr = Call::make(op->type, deinterleaving_alts[op->name], args, op->call_type); args 1326 src/HexagonOptimize.cpp } else if (interleaving_alts.count(op->name) && is_native_deinterleave(args[0])) { args 1331 src/HexagonOptimize.cpp Expr arg = args[0].as<Call>()->args[0]; args 1335 src/HexagonOptimize.cpp expr = Call::make(op->type, op->name, args, op->call_type, args 1471 src/HexagonOptimize.cpp if (const Call *arg = op->args[0].as<Call>()) { args 1474 src/HexagonOptimize.cpp std::vector<Expr> args = arg->args; args 1475 src/HexagonOptimize.cpp for (Expr &j : args) { args 1478 src/HexagonOptimize.cpp expr = Call::make(op->type, i.second, args, Call::PureExtern); args 362 src/IR.cpp Stmt Provide::make(const std::string &name, const std::vector<Expr> &values, const std::vector<Expr> &args) { args 367 src/IR.cpp for (size_t i = 0; i < args.size(); i++) { args 368 src/IR.cpp internal_assert(args[i].defined()) << "Provide to undefined location\n"; args 374 src/IR.cpp node->args = args; args 527 src/IR.cpp Expr Call::make(Function func, const std::vector<Expr> &args, int idx) { args 533 src/IR.cpp return make(func.output_types()[(size_t)idx], func.name(), args, Halide, args 537 src/IR.cpp Expr Call::make(Type type, const std::string &name, const std::vector<Expr> &args, CallType call_type, args 541 src/IR.cpp internal_assert(args.size() % 2 == 0) args 544 src/IR.cpp for (size_t i = 0; i < args.size(); i++) { args 545 src/IR.cpp internal_assert(args[i].defined()) << "Call of undefined\n"; args 548 src/IR.cpp for (size_t i = 0; i < args.size(); i++) { args 549 src/IR.cpp internal_assert(args[i].type() == Int(32)) args 555 src/IR.cpp for (size_t i = 0; i < args.size(); i++) { args 556 src/IR.cpp internal_assert(args[i].type() == Int(32)) args 564 src/IR.cpp node->args = args; args 328 src/IR.h std::vector<Expr> args; args 330 src/IR.h EXPORT static Stmt make(const std::string &name, const std::vector<Expr> &values, const std::vector<Expr> &args); args 455 src/IR.h std::vector<Expr> args; args 559 src/IR.h EXPORT static Expr make(Type type, const std::string &name, const std::vector<Expr> &args, CallType call_type, args 564 src/IR.h EXPORT static Expr make(Function func, const std::vector<Expr> &args, int idx = 0); args 567 src/IR.h static Expr make(Buffer<> image, const std::vector<Expr> &args) { args 568 src/IR.h return make(image.type(), image.name(), args, Image, nullptr, 0, image, Parameter()); args 572 src/IR.h static Expr make(Parameter param, const std::vector<Expr> &args) { args 573 src/IR.h return make(param.type(), param.name(), args, Image, nullptr, 0, Buffer<>(), param); args 326 src/IREquality.cpp compare_expr_vector(e->args, op->args); args 384 src/IREquality.cpp compare_expr_vector(s->args, op->args); args 231 src/IRMatch.cpp e->args.size() == op->args.size()) { args 232 src/IRMatch.cpp for (size_t i = 0; result && (i < e->args.size()); i++) { args 233 src/IRMatch.cpp expr = e->args[i]; args 234 src/IRMatch.cpp op->args[i].accept(this); args 143 src/IRMutator.cpp vector<Expr > new_args(op->args.size()); args 147 src/IRMutator.cpp for (size_t i = 0; i < op->args.size(); i++) { args 148 src/IRMutator.cpp Expr old_arg = op->args[i]; args 229 src/IRMutator.cpp vector<Expr> new_args(op->args.size()); args 234 src/IRMutator.cpp for (size_t i = 0; i < op->args.size(); i++) { args 235 src/IRMutator.cpp Expr old_arg = op->args[i]; args 225 src/IROperator.cpp is_zero(c->args[0]); args 238 src/IROperator.cpp is_one(c->args[0]); args 619 src/IROperator.cpp std::vector<Expr> args(10); args 621 src/IROperator.cpp args[0] = buffer_memory; args 624 src/IROperator.cpp args[0] = Call::make(type_of<struct halide_buffer_t *>(), Call::alloca, {sz}, Call::Intrinsic); args 630 src/IROperator.cpp args[1] = shape_memory; args 632 src/IROperator.cpp args[1] = make_zero(type_of<halide_dimension_t *>()); args 634 src/IROperator.cpp args[1] = shape_var; args 638 src/IROperator.cpp args[2] = host; args 640 src/IROperator.cpp args[2] = make_zero(type_of<void *>()); args 644 src/IROperator.cpp args[3] = device; args 646 src/IROperator.cpp args[3] = make_zero(UInt(64)); args 650 src/IROperator.cpp args[4] = device_interface; args 652 src/IROperator.cpp args[4] = make_zero(type_of<struct halide_device_interface_t *>()); args 655 src/IROperator.cpp args[5] = (int)type.code(); args 656 src/IROperator.cpp args[6] = type.bits(); args 657 src/IROperator.cpp args[7] = dimensions; args 685 src/IROperator.cpp args[8] = shape_arg; args 687 src/IROperator.cpp args[8] = make_zero(type_of<halide_dimension_t *>()); args 689 src/IROperator.cpp args[8] = shape_var; args 703 src/IROperator.cpp args[9] = flags; args 705 src/IROperator.cpp Expr e = Call::make(type_of<struct halide_buffer_t *>(), Call::buffer_init, args, Call::Extern); args 768 src/IROperator.cpp Expr stringify(const std::vector<Expr> &args) { args 770 src/IROperator.cpp args, Internal::Call::Intrinsic); args 773 src/IROperator.cpp Expr combine_strings(const std::vector<Expr> &args) { args 775 src/IROperator.cpp std::vector<Expr> strings(args.size()*2); args 776 src/IROperator.cpp for (size_t i = 0; i < args.size(); i++) { args 777 src/IROperator.cpp strings[i*2] = args[i]; args 778 src/IROperator.cpp if (i < args.size() - 1) { args 788 src/IROperator.cpp Expr print(const std::vector<Expr> &args) { args 789 src/IROperator.cpp Expr combined_string = combine_strings(args); args 798 src/IROperator.cpp Internal::Call::make(args[0].type(), Internal::Call::return_second, args 799 src/IROperator.cpp {print_call, args[0]}, Internal::Call::PureIntrinsic); args 803 src/IROperator.cpp Expr print_when(const Expr &condition, const std::vector<Expr> &args) { args 804 src/IROperator.cpp Expr p = print(args); args 807 src/IROperator.cpp {condition, p, args[0]}, args 811 src/IROperator.cpp Expr require(const Expr &condition, const std::vector<Expr> &args) { args 814 src/IROperator.cpp user_assert(args.at(0).defined()) << "Require of undefined value\n"; args 819 src/IROperator.cpp {stringify({condition}), combine_strings(args)}, args 824 src/IROperator.cpp Expr failure_value = cast(args[0].type(), requirement_failed_error); args 825 src/IROperator.cpp return Internal::Call::make(args[0].type(), args 827 src/IROperator.cpp {likely(condition), args[0], failure_value}, args 834 src/IROperator.cpp std::vector<Expr> args; args 835 src/IROperator.cpp args.push_back(result); args 836 src/IROperator.cpp args.insert(args.end(), cache_key_values.begin(), cache_key_values.end()); args 838 src/IROperator.cpp args, Internal::Call::PureIntrinsic); args 860 src/IROperator.h inline Expr select(const Expr &c0, const Expr &v0, const Expr &c1, const Expr &v1, Args&&... args) { args 861 src/IROperator.h return select(c0, v0, select(c1, v1, std::forward<Args>(args)...)); args 1654 src/IROperator.h std::vector<Expr> args; args 1659 src/IROperator.h args.push_back(seed); args 1661 src/IROperator.h args.push_back(id); args 1666 src/IROperator.h args, Internal::Call::PureIntrinsic); args 1676 src/IROperator.h std::vector<Expr> args; args 1681 src/IROperator.h args.push_back(seed); args 1683 src/IROperator.h args.push_back(id); args 1686 src/IROperator.h args, Internal::Call::PureIntrinsic); args 1697 src/IROperator.h inline NO_INLINE void collect_print_args(std::vector<Expr> &args) { args 1701 src/IROperator.h inline NO_INLINE void collect_print_args(std::vector<Expr> &args, const char *arg, Args&&... more_args) { args 1702 src/IROperator.h args.push_back(Expr(std::string(arg))); args 1703 src/IROperator.h collect_print_args(args, std::forward<Args>(more_args)...); args 1707 src/IROperator.h inline NO_INLINE void collect_print_args(std::vector<Expr> &args, const Expr &arg, Args&&... more_args) { args 1708 src/IROperator.h args.push_back(arg); args 1709 src/IROperator.h collect_print_args(args, std::forward<Args>(more_args)...); args 1721 src/IROperator.h inline NO_INLINE Expr print(const Expr &a, Args&&... args) { args 1723 src/IROperator.h Internal::collect_print_args(collected_args, std::forward<Args>(args)...); args 1734 src/IROperator.h inline NO_INLINE Expr print_when(const Expr &condition, const Expr &a, Args&&... args) { args 1736 src/IROperator.h Internal::collect_print_args(collected_args, std::forward<Args>(args)...); args 1766 src/IROperator.h inline NO_INLINE Expr require(const Expr &condition, const Expr &value, Args&&... args) { args 1768 src/IROperator.h Internal::collect_print_args(collected_args, std::forward<Args>(args)...); args 1836 src/IROperator.h inline NO_INLINE Expr memoize_tag(const Expr &result, Args&&... args) { args 1837 src/IROperator.h std::vector<Expr> collected_args{std::forward<Args>(args)...}; args 111 src/IRPrinter.cpp vector<Expr> args(1); args[0] = x % 3; args 112 src/IRPrinter.cpp Expr call = Call::make(i32, "buf", args, Call::Extern); args 222 src/IRPrinter.cpp for (size_t i = 0; i < function.args.size(); i++) { args 223 src/IRPrinter.cpp stream << function.args[i].name; args 224 src/IRPrinter.cpp if (i + 1 < function.args.size()) { args 516 src/IRPrinter.cpp print_list(op->args); args 594 src/IRPrinter.cpp print_list(op->args); args 128 src/IRVisitor.cpp for (size_t i = 0; i < op->args.size(); i++) { args 129 src/IRVisitor.cpp op->args[i].accept(this); args 181 src/IRVisitor.cpp for (size_t i = 0; i < op->args.size(); i++) { args 182 src/IRVisitor.cpp op->args[i].accept(this); args 380 src/IRVisitor.cpp for (size_t i = 0; i < op->args.size(); i++) { args 381 src/IRVisitor.cpp include(op->args[i]); args 420 src/IRVisitor.cpp for (size_t i = 0; i < op->args.size(); i++) { args 421 src/IRVisitor.cpp include(op->args[i]); args 22 src/ImageParam.cpp std::vector<Var> args; args 25 src/ImageParam.cpp args.push_back(Var::implicit(i)); args 28 src/ImageParam.cpp func(args) = Internal::Call::make(param, args_expr); args 59 src/ImageParam.h NO_INLINE Expr operator()(Args&&... args) const { args 60 src/ImageParam.h return func(std::forward<Args>(args)...); args 19 src/InferArguments.cpp vector<InferredArgument> &args; args 22 src/InferArguments.cpp : args(a), outputs(o) { args 23 src/InferArguments.cpp args.clear(); args 45 src/InferArguments.cpp for (const InferredArgument &arg : args) { args 104 src/InferArguments.cpp args.push_back(a); args 128 src/InferArguments.cpp args.push_back(a); args 18 src/InjectHostDevBufferCopies.cpp Stmt call_extern_and_assert(const string& name, const vector<Expr>& args) { args 19 src/InjectHostDevBufferCopies.cpp Expr call = Call::make(Int(32), name, args, Call::Extern); args 240 src/InjectHostDevBufferCopies.cpp std::vector<Expr> args; args 242 src/InjectHostDevBufferCopies.cpp args.push_back(buffer); args 244 src/InjectHostDevBufferCopies.cpp args.push_back(make_device_interface_call(target_device_api)); args 248 src/InjectHostDevBufferCopies.cpp return call_extern_and_assert("halide_copy_to_" + suffix, args); args 437 src/InjectHostDevBufferCopies.cpp internal_assert(op->args.size() >= 2); args 438 src/InjectHostDevBufferCopies.cpp const Variable *buffer_var = op->args[1].as<Variable>(); args 448 src/InjectHostDevBufferCopies.cpp internal_assert(op->args.size() >= 2); args 449 src/InjectHostDevBufferCopies.cpp const Variable *buffer_var = op->args[1].as<Variable>(); args 16 src/InjectHostDevBufferCopies.h EXPORT Stmt call_extern_and_assert(const std::string& name, const std::vector<Expr>& args); args 35 src/InjectImageIntrinsics.cpp user_assert(provide->args.size() == 3) args 41 src/InjectImageIntrinsics.cpp vector<Expr> args = { args 44 src/InjectImageIntrinsics.cpp provide->args[0], args 45 src/InjectImageIntrinsics.cpp provide->args[1], args 46 src/InjectImageIntrinsics.cpp provide->args[2], args 51 src/InjectImageIntrinsics.cpp args, args 72 src/InjectImageIntrinsics.cpp vector<Expr> padded_call_args = call->args; args 82 src/InjectImageIntrinsics.cpp vector<Expr> args(2); args 83 src/InjectImageIntrinsics.cpp args[0] = call->name; args 84 src/InjectImageIntrinsics.cpp args[1] = Variable::make(type_of<struct halide_buffer_t *>(), call->name + ".buffer"); args 92 src/InjectImageIntrinsics.cpp if (i < call->args.size()) { args 106 src/InjectImageIntrinsics.cpp args.push_back(mutate(padded_call_args[i]) - min); args 107 src/InjectImageIntrinsics.cpp args.push_back(Variable::make(Int(32), extent_name)); args 109 src/InjectImageIntrinsics.cpp args.push_back(0); args 110 src/InjectImageIntrinsics.cpp args.push_back(1); args 120 src/InjectImageIntrinsics.cpp args, args 28 src/InjectOpenGLIntrinsics.cpp vector<Expr> call_args = call->args; args 44 src/InjectOpenGLIntrinsics.cpp vector<Expr> args(5); args 45 src/InjectOpenGLIntrinsics.cpp args[0] = call_args[0]; // "name" args 46 src/InjectOpenGLIntrinsics.cpp args[1] = call_args[1]; // name.buffer args 52 src/InjectOpenGLIntrinsics.cpp args[to_index] = args 65 src/InjectOpenGLIntrinsics.cpp << "for ImageParam '" << args[0] << "'. " args 70 src/InjectOpenGLIntrinsics.cpp args[4] = c_coordinate; args 73 src/InjectOpenGLIntrinsics.cpp vector<Expr>(&args[0], &args[5]), args 77 src/InjectOpenGLIntrinsics.cpp user_assert(call->args.size() == 6) args 84 src/InjectOpenGLIntrinsics.cpp vector<Expr> args(call->args); args 85 src/InjectOpenGLIntrinsics.cpp args[5] = mutate(call->args[5]); // mutate value args 87 src/InjectOpenGLIntrinsics.cpp args, Call::Intrinsic); args 102 src/Inline.cpp vector<Expr> args(op->args.size()); args 103 src/Inline.cpp for (size_t i = 0; i < args.size(); i++) { args 104 src/Inline.cpp args[i] = mutate(op->args[i]); args 109 src/Inline.cpp const vector<string> func_args = func.args(); args 112 src/Inline.cpp internal_assert(args.size() == func_args.size()); args 114 src/Inline.cpp for (size_t i = 0; i < args.size(); i++) { args 115 src/Inline.cpp body = Let::make(func.name() + "." + func_args[i], args[i], body); args 2084 src/Introspection.cpp uint8_t args = standard_opcode_length[opcode]; args 2085 src/Introspection.cpp for (int i = 0; i < args; i++) { args 86 src/JITModule.h typedef int (*argv_wrapper)(const void **args); args 537 src/LLVM_Runtime_Linker.cpp vector<llvm::Value *> args; args 538 src/LLVM_Runtime_Linker.cpp for (auto &arg : f.args()) { args 539 src/LLVM_Runtime_Linker.cpp args.push_back(&arg); args 542 src/LLVM_Runtime_Linker.cpp llvm::CallInst *c = builder.CreateCall(unmangled, args); args 429 src/LoopCarry.cpp initial_scratch_values = call.as<Call>()->args; args 76 src/Lower.cpp vector<Argument> &args, const Internal::LoweredFunc::LinkageType linkage_type, args 329 src/Lower.cpp vector<Argument> public_args = args; args 349 src/Lower.cpp for (Argument a : args) { args 368 src/Lower.cpp for (size_t i = 0; i < args.size(); i++) { args 369 src/Lower.cpp err << args[i].name << " "; args 409 src/Lower.cpp vector<Argument> args; args 412 src/Lower.cpp args.push_back(ia.arg); args 416 src/Lower.cpp Module module = lower(output_funcs, pipeline_name, t, args, Internal::LoweredFunc::External, custom_passes); args 30 src/Lower.h std::vector<Argument> &args, const Internal::LoweredFunc::LinkageType linkage_type, args 49 src/Memoization.cpp internal_assert(!call->args.empty()); args 50 src/Memoization.cpp if (call->args.size() == 1) { args 51 src/Memoization.cpp record(call->args[0]); args 54 src/Memoization.cpp for (size_t i = 1; i < call->args.size(); i++) { args 55 src/Memoization.cpp record(call->args[i]); args 264 src/Memoization.cpp std::vector<Expr> args; args 265 src/Memoization.cpp args.push_back(Variable::make(type_of<uint8_t *>(), key_allocation_name)); args 266 src/Memoization.cpp args.push_back(key_size()); args 267 src/Memoization.cpp args.push_back(Variable::make(type_of<halide_buffer_t *>(), computed_bounds_name)); args 268 src/Memoization.cpp args.push_back(tuple_count); args 277 src/Memoization.cpp args.push_back(Call::make(type_of<halide_buffer_t **>(), Call::make_struct, buffers, Call::Intrinsic)); args 279 src/Memoization.cpp return Call::make(Int(32), "halide_memoization_cache_lookup", args, Call::Extern); args 285 src/Memoization.cpp std::vector<Expr> args; args 286 src/Memoization.cpp args.push_back(Variable::make(type_of<uint8_t *>(), key_allocation_name)); args 287 src/Memoization.cpp args.push_back(key_size()); args 288 src/Memoization.cpp args.push_back(Variable::make(type_of<halide_buffer_t *>(), computed_bounds_name)); args 289 src/Memoization.cpp args.push_back(tuple_count); args 298 src/Memoization.cpp args.push_back(Call::make(type_of<halide_buffer_t **>(), Call::make_struct, buffers, Call::Intrinsic)); args 301 src/Memoization.cpp return Evaluate::make(Call::make(Int(32), "halide_memoization_cache_store", args, Call::Extern)); args 370 src/Memoization.cpp for (const std::string arg : f.args()) { args 482 src/Memoization.cpp internal_assert(call->args.size() >= 3) args 486 src/Memoization.cpp const Variable *var = call->args[2].as<Variable>(); args 489 src/Memoization.cpp std::vector<Expr> args = call->args; args 490 src/Memoization.cpp args[2] = make_zero(Handle()); args 492 src/Memoization.cpp args, Call::Extern); args 130 src/Module.cpp const std::vector<LoweredArgument> &args, args 134 src/Module.cpp : name(name), args(args), body(body), linkage(linkage), name_mangling(name_mangling) {} args 137 src/Module.cpp const std::vector<Argument> &args, args 142 src/Module.cpp for (const Argument &i : args) { args 143 src/Module.cpp this->args.push_back(i); args 496 src/Module.cpp base_target_args = sub_module.get_function_by_name(sub_fn_name).args; args 44 src/Module.h std::vector<LoweredArgument> args; args 64 src/Module.h const std::vector<LoweredArgument> &args, args 69 src/Module.h const std::vector<Argument> &args, args 294 src/Monotonic.cpp op->args.back().accept(this); args 298 src/Monotonic.cpp for (size_t i = 0; i < op->args.size(); i++) { args 299 src/Monotonic.cpp op->args[i].accept(this); args 25 src/OutputImageParam.h void add_implicit_args_if_placeholder(std::vector<Expr> &args, args 28 src/ParallelRVar.cpp loads.push_back(op->args); args 96 src/ParallelRVar.cpp const vector<Expr> &args = r.args(); args 106 src/ParallelRVar.cpp vector<Expr> other_store(args.size()); args 107 src/ParallelRVar.cpp for (size_t i = 0; i < args.size(); i++) { args 108 src/ParallelRVar.cpp other_store[i] = renamer.mutate(args[i]); args 120 src/ParallelRVar.cpp for (size_t i = 0; i < args.size(); i++) { args 121 src/ParallelRVar.cpp hazard = hazard && (distinct_v && (args[i] == other_store[i])); args 352 src/Parameter.cpp void check_call_arg_types(const std::string &name, std::vector<Expr> *args, int dims) { args 353 src/Parameter.cpp user_assert(args->size() == (size_t)dims) args 354 src/Parameter.cpp << args->size() << "-argument call to \"" args 357 src/Parameter.cpp for (size_t i = 0; i < args->size(); i++) { args 358 src/Parameter.cpp user_assert((*args)[i].defined()) args 360 src/Parameter.cpp Type t = (*args)[i].type(); args 367 src/Parameter.cpp (*args)[i] = Cast::make(Int(32), (*args)[i]); args 228 src/Parameter.h void check_call_arg_types(const std::string &name, std::vector<Expr> *args, int dims); args 85 src/PartitionLoops.cpp internal_assert(op->args.size() == 1); args 86 src/PartitionLoops.cpp expr = mutate(op->args[0]); args 962 src/PartitionLoops.cpp internal_assert(op->args.size() == 1); args 964 src/PartitionLoops.cpp expr = Call::make(op->type, Call::likely, {mutate(op->args[0])}, Call::PureIntrinsic); args 966 src/PartitionLoops.cpp expr = mutate(op->args[0]); args 152 src/Pipeline.cpp const vector<Argument> &args, args 162 src/Pipeline.cpp compile_to_module(args, fn_name, target).compile(output_files); args 167 src/Pipeline.cpp const vector<Argument> &args, args 170 src/Pipeline.cpp Module m = compile_to_module(args, fn_name, target); args 175 src/Pipeline.cpp const vector<Argument> &args, args 178 src/Pipeline.cpp Module m = compile_to_module(args, fn_name, target); args 183 src/Pipeline.cpp const vector<Argument> &args, args 186 src/Pipeline.cpp Module m = compile_to_module(args, fn_name, target); args 192 src/Pipeline.cpp const vector<Argument> &args, args 195 src/Pipeline.cpp Module m = compile_to_module(args, fn_name, target); args 200 src/Pipeline.cpp const vector<Argument> &args, args 203 src/Pipeline.cpp Module m = compile_to_module(args, fn_name, target); args 209 src/Pipeline.cpp const vector<Argument> &args, args 212 src/Pipeline.cpp Module m = compile_to_module(args, fn_name, target); args 222 src/Pipeline.cpp const vector<Argument> &args, args 225 src/Pipeline.cpp Module m = compile_to_module(args, "", target); args 236 src/Pipeline.cpp const vector<Argument> &args, args 239 src/Pipeline.cpp Module m = compile_to_module(args, fn_name, target); args 245 src/Pipeline.cpp const std::vector<Argument> &args, args 247 src/Pipeline.cpp auto module_producer = [this, &args](const std::string &name, const Target &target) -> Module { args 248 src/Pipeline.cpp return compile_to_module(args, name, target); args 255 src/Pipeline.cpp const vector<Argument> &args, args 258 src/Pipeline.cpp Module m = compile_to_module(args, fn_name, target); args 304 src/Pipeline.cpp Module Pipeline::compile_to_module(const vector<Argument> &args, args 316 src/Pipeline.cpp vector<Argument> lowering_args(args); args 346 src/Pipeline.cpp same_compile = same_compile && (lowering_args.size() + outputs().size()) == old_module.functions().front().args.size(); args 348 src/Pipeline.cpp same_compile = same_compile && std::equal(lowering_args.begin(), lowering_args.end(), old_module.functions().front().args.begin()); args 406 src/Pipeline.cpp vector<Argument> args; args 408 src/Pipeline.cpp args.push_back(arg.arg); args 415 src/Pipeline.cpp Module module = compile_to_module(args, name, target).resolve_submodules(); args 810 src/Pipeline.cpp vector<const void *> args = prepare_jit_call_arguments(dst, target); args 874 src/Pipeline.cpp int exit_status = contents->jit_module.argv_function()(&(args[0])); args 900 src/Pipeline.cpp vector<const void *> args = prepare_jit_call_arguments(dst, target); args 909 src/Pipeline.cpp vector<TrackedBuffer> tracked_buffers(args.size()); args 913 src/Pipeline.cpp if (args[i] == nullptr) { args 921 src/Pipeline.cpp args[i] = tracked_buffers[i].query.raw_buffer(); args 943 src/Pipeline.cpp int exit_status = contents->jit_module.argv_function()(&(args[0])); args 86 src/Pipeline.h const std::vector<Argument> &args, args 95 src/Pipeline.h const std::vector<Argument> &args, args 104 src/Pipeline.h const std::vector<Argument> &args, args 135 src/Pipeline.h const std::vector<Argument> &args, args 152 src/Pipeline.h const std::vector<Argument> &args, args 164 src/Pipeline.h const std::vector<Argument> &args, args 171 src/Pipeline.h const std::vector<Argument> &args, args 183 src/Pipeline.h const std::vector<Argument> &args, args 188 src/Pipeline.h EXPORT Module compile_to_module(const std::vector<Argument> &args, args 417 src/Pipeline.h ExternSignature(RT (*f)(Args... args)) args 449 src/Pipeline.h ExternCFunction(RT (*f)(Args... args)) : ExternCFunction((void *)f, ExternSignature(f)) {} args 468 src/Pipeline.h JITExtern(RT (*f)(Args... args)) : JITExtern(ExternCFunction(f)) {} args 281 src/Prefetch.cpp if (call && call->is_intrinsic(Call::prefetch) && (call->args.size() > max_arg_size)) { args 282 src/Prefetch.cpp const Variable *base = call->args[0].as<Variable>(); args 286 src/Prefetch.cpp Expr new_offset = call->args[1]; args 287 src/Prefetch.cpp for (size_t i = max_arg_size; i < call->args.size(); i += 2) { args 288 src/Prefetch.cpp Expr stride = call->args[i+1]; args 294 src/Prefetch.cpp vector<Expr> args = {base, new_offset}; args 296 src/Prefetch.cpp args.push_back(call->args[i]); args 299 src/Prefetch.cpp stmt = Evaluate::make(Call::make(call->type, Call::prefetch, args, Call::Intrinsic)); args 301 src/Prefetch.cpp stmt = For::make(index_names[i], 0, call->args[(i+max_dim)*2 + 2], args 328 src/Prefetch.cpp const Variable *base = call->args[0].as<Variable>(); args 335 src/Prefetch.cpp Expr new_offset = call->args[1]; args 336 src/Prefetch.cpp for (size_t i = 2; i < call->args.size(); i += 2) { args 337 src/Prefetch.cpp Expr extent = call->args[i]; args 338 src/Prefetch.cpp Expr stride = call->args[i+1]; args 361 src/Prefetch.cpp vector<Expr> args = {base, new_offset, Expr(1), simplify(max_byte_size / elem_size)}; args 362 src/Prefetch.cpp stmt = Evaluate::make(Call::make(call->type, Call::prefetch, args, Call::Intrinsic)); args 187 src/RDom.h NO_INLINE void initialize_from_ranges(std::vector<std::pair<Expr, Expr>> &ranges, Expr min, Expr extent, Args&&... args) { args 189 src/RDom.h initialize_from_ranges(ranges, std::forward<Args>(args)...); args 204 src/RDom.h NO_INLINE RDom(Expr min, Expr extent, Args&&... args) { args 208 src/RDom.h initialize_from_ranges(ranges, min, extent, std::forward<Args>(args)...); args 101 src/Random.cpp vector<Expr> args = op->args; args 102 src/Random.cpp args.insert(args.end(), extra_args.begin(), extra_args.end()); args 104 src/Random.cpp expr = random_float(args); args 106 src/Random.cpp expr = cast<int32_t>(random_int(args)); args 108 src/Random.cpp expr = random_int(args); args 17 src/RemoveDeadAllocations.cpp for (size_t i = 0; i < op->args.size(); i++) { args 18 src/RemoveDeadAllocations.cpp const Variable *var = op->args[i].as<Variable>(); args 156 src/RemoveUndef.cpp vector<Expr> new_args(op->args.size()); args 160 src/RemoveUndef.cpp for (size_t i = 0; i < op->args.size(); i++) { args 161 src/RemoveUndef.cpp Expr old_arg = op->args[i]; args 301 src/RemoveUndef.cpp vector<Expr> new_args(op->args.size()); args 308 src/RemoveUndef.cpp for (size_t i = 0; i < op->args.size(); i++) { args 309 src/RemoveUndef.cpp Expr old_arg = op->args[i]; args 273 src/ScheduleFunctions.cpp vector<Expr> site(def.args().size()); args 283 src/ScheduleFunctions.cpp for (size_t i = 0; i < def.args().size(); i++) { args 284 src/ScheduleFunctions.cpp Expr s = def.args()[i]; args 333 src/ScheduleFunctions.cpp const vector<ExternFuncArgument> &args = f.extern_arguments(); args 344 src/ScheduleFunctions.cpp for (const ExternFuncArgument &arg : args) { args 408 src/ScheduleFunctions.cpp const vector<string> f_args = f.args(); args 421 src/ScheduleFunctions.cpp vector<Expr> args(5); args 422 src/ScheduleFunctions.cpp args[0] = output_buffer_t; args 423 src/ScheduleFunctions.cpp args[1] = Call::make(type_of<struct halide_dimension_t *>(), Call::alloca, args 425 src/ScheduleFunctions.cpp args[2] = src_buffer; args 428 src/ScheduleFunctions.cpp internal_assert(f.dimensions() == (int)f.args().size()); args 429 src/ScheduleFunctions.cpp for (const string arg : f.args()) { args 436 src/ScheduleFunctions.cpp args[3] = Call::make(Handle(), Call::make_struct, mins, Call::Intrinsic); args 437 src/ScheduleFunctions.cpp args[4] = Call::make(Handle(), Call::make_struct, extents, Call::Intrinsic); args 439 src/ScheduleFunctions.cpp output_buffer_t = Call::make(type_of<struct halide_buffer_t *>(), Call::buffer_crop, args, Call::Extern); args 508 src/ScheduleFunctions.cpp vector<string> dims = f.args(); args 523 src/ScheduleFunctions.cpp vector<string> dims = f.args(); args 656 src/ScheduleFunctions.cpp const vector<string> func_args = func.args(); args 2465 src/Simplify.cpp equal(call_a->args[0], b)) { args 2470 src/Simplify.cpp equal(call_b->args[0], a)) { args 2827 src/Simplify.cpp equal(call_a->args[0], b)) { args 2832 src/Simplify.cpp equal(call_b->args[0], a)) { args 3753 src/Simplify.cpp equal(ct->args[0], false_value)) { args 3758 src/Simplify.cpp equal(cf->args[0], true_value)) { args 4000 src/Simplify.cpp found_buffer_reference(op->name, op->args.size()); args 4005 src/Simplify.cpp Expr a = mutate(op->args[0]), b = mutate(op->args[1]); args 4036 src/Simplify.cpp if (a.same_as(op->args[0]) && b.same_as(op->args[1])) { args 4044 src/Simplify.cpp Expr a = mutate(op->args[0]), b = mutate(op->args[1]); args 4063 src/Simplify.cpp } else if (a.same_as(op->args[0]) && b.same_as(op->args[1])) { args 4069 src/Simplify.cpp Expr a = mutate(op->args[0]), b = mutate(op->args[1]); args 4073 src/Simplify.cpp if (a.same_as(op->args[0]) && b.same_as(op->args[1])) { args 4080 src/Simplify.cpp Expr a = mutate(op->args[0]); args 4100 src/Simplify.cpp } else if (a.same_as(op->args[0])) { args 4107 src/Simplify.cpp Expr arg = mutate(op->args[0]); args 4111 src/Simplify.cpp } else if (arg.same_as(op->args[0])) { args 4121 src/Simplify.cpp for (size_t i = 0; i < op->args.size(); i++) { args 4122 src/Simplify.cpp Expr arg = mutate(op->args[i]); args 4123 src/Simplify.cpp if (!arg.same_as(op->args[i])) { args 4168 src/Simplify.cpp Expr arg = mutate(op->args[0]); args 4174 src/Simplify.cpp } else if (!arg.same_as(op->args[0])) { args 4181 src/Simplify.cpp Expr arg = mutate(op->args[0]); args 4187 src/Simplify.cpp } else if (!arg.same_as(op->args[0])) { args 4194 src/Simplify.cpp Expr arg = mutate(op->args[0]); args 4200 src/Simplify.cpp } else if (!arg.same_as(op->args[0])) { args 4207 src/Simplify.cpp Expr arg0 = mutate(op->args[0]); args 4208 src/Simplify.cpp Expr arg1 = mutate(op->args[1]); args 4216 src/Simplify.cpp } else if (!arg0.same_as(op->args[0]) || !arg1.same_as(op->args[1])) { args 4224 src/Simplify.cpp internal_assert(op->args.size() == 1); args 4225 src/Simplify.cpp Expr arg = mutate(op->args[0]); args 4246 src/Simplify.cpp } else if (!arg.same_as(op->args[0])) { args 4255 src/Simplify.cpp internal_assert(op->args.size() % 2 == 0); // Format: {base, offset, extent0, min0, ...} args 4257 src/Simplify.cpp vector<Expr> args(op->args); args 4259 src/Simplify.cpp for (size_t i = 0; i < op->args.size(); ++i) { args 4260 src/Simplify.cpp args[i] = mutate(op->args[i]); args 4261 src/Simplify.cpp if (!args[i].same_as(op->args[i])) { args 4270 src/Simplify.cpp for (size_t i = 2; i < args.size(); i += 2) { args 4271 src/Simplify.cpp Expr extent_0 = args[i]; args 4272 src/Simplify.cpp Expr stride_0 = args[i + 1]; args 4273 src/Simplify.cpp for (size_t j = i + 2; j < args.size(); j += 2) { args 4274 src/Simplify.cpp Expr extent_1 = args[j]; args 4275 src/Simplify.cpp Expr stride_1 = args[j + 1]; args 4280 src/Simplify.cpp args.erase(args.begin() + j, args.begin() + j + 2); args 4281 src/Simplify.cpp args[i] = new_extent; args 4282 src/Simplify.cpp args[i + 1] = new_stride; args 4288 src/Simplify.cpp internal_assert(args.size() <= op->args.size()); args 4290 src/Simplify.cpp if (changed || (args.size() != op->args.size())) { args 4291 src/Simplify.cpp expr = Call::make(op->type, Call::prefetch, args, Call::Intrinsic); args 4815 src/Simplify.cpp found_buffer_reference(op->name, op->args.size()); args 23 src/SimplifySpecializations.cpp for (auto &def_arg : def.args()) { args 59 src/SimplifySpecializations.cpp for (auto &def_arg : def.args()) { args 110 src/SimplifySpecializations.cpp def.args() = s_def.args(); args 28 src/SkipStages.cpp for (size_t i = 0; i < op->args.size(); i++) { args 29 src/SkipStages.cpp const Variable *var = op->args[i].as<Variable>(); args 252 src/SkipStages.cpp for (size_t i = 0; i < op->args.size(); i++) { args 253 src/SkipStages.cpp const Variable *var = op->args[i].as<Variable>(); args 95 src/SlidingWindow.cpp const Variable *var = def.args()[dim_idx].as<Variable>(); args 128 src/SlidingWindow.cpp const std::vector<string> func_args = func.args(); args 351 src/Solve.cpp expr = mutate(op->args[0]); args 114 src/SplitTuples.cpp vector<Expr> args; args 115 src/SplitTuples.cpp for (Expr e : op->args) { args 116 src/SplitTuples.cpp args.push_back(mutate(e)); args 122 src/SplitTuples.cpp expr = Call::make(op->type, name, args, op->call_type, f.get_contents()); args 155 src/SplitTuples.cpp vector<Expr> args; args 156 src/SplitTuples.cpp for (Expr e : op->args) { args 157 src/SplitTuples.cpp args.push_back(mutate(e)); args 178 src/SplitTuples.cpp provides.push_back(Provide::make(name, {val}, args)); args 112 src/StmtToHtml.cpp void print_list(const std::vector<Expr> &args) { args 113 src/StmtToHtml.cpp for (size_t i = 0; i < args.size(); i++) { args 117 src/StmtToHtml.cpp print(args[i]); args 120 src/StmtToHtml.cpp void print_list(const string &l, const std::vector<Expr> &args, const string &r) { args 122 src/StmtToHtml.cpp print_list(args); args 286 src/StmtToHtml.cpp print_list(symbol(op->name) + "(", op->args, ")"); args 321 src/StmtToHtml.cpp std::vector<Expr> args; args 322 src/StmtToHtml.cpp args.push_back(op->condition); args 323 src/StmtToHtml.cpp args.push_back(op->message); args 324 src/StmtToHtml.cpp print_list(symbol("assert") + "(", args, ")"); args 402 src/StmtToHtml.cpp print_list(op->args); args 573 src/StmtToHtml.cpp std::vector<Expr> args = op->vectors; args 574 src/StmtToHtml.cpp args.push_back(op->slice_begin()); args 575 src/StmtToHtml.cpp print_list(symbol("extract_element("), args, ")"); args 577 src/StmtToHtml.cpp std::vector<Expr> args = op->vectors; args 578 src/StmtToHtml.cpp args.push_back(op->slice_begin()); args 579 src/StmtToHtml.cpp args.push_back(op->slice_stride()); args 580 src/StmtToHtml.cpp args.push_back(static_cast<int>(op->indices.size())); args 581 src/StmtToHtml.cpp print_list(symbol("slice_vectors("), args, ")"); args 583 src/StmtToHtml.cpp std::vector<Expr> args = op->vectors; args 585 src/StmtToHtml.cpp args.push_back(i); args 587 src/StmtToHtml.cpp print_list(symbol("shuffle("), args, ")"); args 611 src/StmtToHtml.cpp for (size_t i = 0; i < op.args.size(); i++) { args 615 src/StmtToHtml.cpp stream << var(op.args[i].name); args 39 src/StorageFlattening.cpp Expr flatten_args(const string &name, const vector<Expr> &args, args 43 src/StorageFlattening.cpp vector<Expr> mins(args.size()), strides(args.size()); args 46 src/StorageFlattening.cpp for (size_t i = 0; i < args.size(); i++) { args 66 src/StorageFlattening.cpp for (size_t i = 0; i < args.size(); i++) { args 68 src/StorageFlattening.cpp idx += cast<int64_t>(args[i] - mins[i]) * cast<int64_t>(strides[i]); args 70 src/StorageFlattening.cpp idx += (args[i] - mins[i]) * strides[i]; args 80 src/StorageFlattening.cpp for (size_t i = 0; i < args.size(); i++) { args 82 src/StorageFlattening.cpp idx += cast<int64_t>(args[i]) * cast<int64_t>(strides[i]); args 85 src/StorageFlattening.cpp idx += args[i] * strides[i]; args 118 src/StorageFlattening.cpp const vector<string> &args = f.args(); args 120 src/StorageFlattening.cpp for (size_t j = 0; j < args.size(); j++) { args 121 src/StorageFlattening.cpp if (args[j] == storage_dims[i].var) { args 209 src/StorageFlattening.cpp Expr idx = mutate(flatten_args(op->name, op->args, Buffer<>(), output_buf)); args 218 src/StorageFlattening.cpp Expr idx = mutate(flatten_args(op->name, op->args, op->image, op->param)); args 241 src/StorageFlattening.cpp vector<Expr> args = {base_address, base_offset}; args 251 src/StorageFlattening.cpp const vector<string> &args = f.args(); args 253 src/StorageFlattening.cpp for (size_t j = 0; j < args.size(); j++) { args 254 src/StorageFlattening.cpp if (args[j] == storage_dims[i].var) { args 265 src/StorageFlattening.cpp args.push_back(prefetch_extent[storage_permutation[i]]); args 266 src/StorageFlattening.cpp args.push_back(prefetch_stride[storage_permutation[i]]); args 270 src/StorageFlattening.cpp args.push_back(prefetch_extent[i]); args 271 src/StorageFlattening.cpp args.push_back(prefetch_stride[i]); args 275 src/StorageFlattening.cpp stmt = Evaluate::make(Call::make(op->types[0], Call::prefetch, args, Call::Intrinsic)); args 66 src/StorageFolding.cpp vector<Expr> args = op->args; args 67 src/StorageFolding.cpp internal_assert(dim < (int)args.size()); args 68 src/StorageFolding.cpp args[dim] = is_one(factor) ? 0 : (args[dim] % factor); args 69 src/StorageFolding.cpp expr = Call::make(op->type, op->name, args, op->call_type, args 79 src/StorageFolding.cpp vector<Expr> args = op->args; args 80 src/StorageFolding.cpp args[dim] = is_one(factor) ? 0 : (args[dim] % factor); args 81 src/StorageFolding.cpp stmt = Provide::make(op->name, op->values, args); args 115 src/ThreadPool.h std::future<T> async(Func func, Args... args) { args 127 src/ThreadPool.h job.func = std::bind(func, args...); args 32 src/Tracing.cpp vector<Expr> args = {Expr(func), args 37 src/Tracing.cpp return Call::make(Int(32), Call::trace, args, Call::Extern); args 93 src/Tracing.cpp builder.coordinates = op->args; args 124 src/Tracing.cpp builder.coordinates = op->args; args 145 src/Tracing.cpp vector<Expr> args = op->args; args 147 src/Tracing.cpp for (size_t i = 0; i < args.size(); i++) { args 148 src/Tracing.cpp if (!args[i].as<Variable>() && !is_const(args[i])) { args 150 src/Tracing.cpp lets.push_back({name, args[i]}); args 151 src/Tracing.cpp args[i] = Variable::make(args[i].type(), name); args 155 src/Tracing.cpp stmt = Provide::make(op->name, traces, args); args 214 src/Tracing.cpp const vector<string> f_args = f.args(); args 33 src/TrimNoOps.cpp expr = mutate(op->args.back()); args 46 src/Tuple.h Tuple(Expr a, Expr b, Args&&... args) { args 47 src/Tuple.h exprs = std::vector<Expr>{a, b, std::forward<Args>(args)...}; args 100 src/Tuple.h Realization(Buffer<T> &a, Args&&... args) { args 101 src/Tuple.h images = std::vector<Buffer<>>({a, args...}); args 76 src/UnpackBuffers.cpp vector<Expr> args = {info.handle}; args 79 src/UnpackBuffers.cpp Expr host_val = Call::make(type_of<void *>(), Call::buffer_get_host, args, Call::Extern); args 83 src/UnpackBuffers.cpp Expr dev_val = Call::make(type_of<uint64_t>(), Call::buffer_get_device, args, Call::Extern); args 88 src/UnpackBuffers.cpp Call::buffer_get_device_interface, args, Call::Extern); args 92 src/UnpackBuffers.cpp Expr type_code_val = Call::make(UInt(8), Call::buffer_get_type_code, args, Call::Extern); args 96 src/UnpackBuffers.cpp Expr type_bits_val = Call::make(UInt(8), Call::buffer_get_type_bits, args, Call::Extern); args 100 src/UnpackBuffers.cpp Expr type_lanes_val = Call::make(UInt(16), Call::buffer_get_type_lanes, args, Call::Extern); args 104 src/UnpackBuffers.cpp Expr host_dirty_val = Call::make(Bool(), Call::buffer_get_host_dirty, args, Call::Extern); args 108 src/UnpackBuffers.cpp Expr dev_dirty_val = Call::make(Bool(), Call::buffer_get_device_dirty, args, Call::Extern); args 112 src/UnpackBuffers.cpp vector<Expr> args = {info.handle, i}; args 115 src/UnpackBuffers.cpp Expr min_val = Call::make(Int(32), Call::buffer_get_min, args, Call::Extern); args 119 src/UnpackBuffers.cpp Expr extent_val = Call::make(Int(32), Call::buffer_get_extent, args, Call::Extern); args 123 src/UnpackBuffers.cpp Expr stride_val = Call::make(Int(32), Call::buffer_get_stride, args, Call::Extern); args 148 src/Util.h const T3 &a1, const T4 &a2, Args&&... args) { args 150 src/Util.h collect_paired_args(collected_args, std::forward<Args>(args)...); args 59 src/VaryingAttributes.cpp std::vector<Expr> new_args = op->args; args 69 src/VaryingAttributes.cpp new_args[i] = mutate(op->args[i]); args 398 src/VaryingAttributes.cpp std::string name = op->args[0].as<StringImm>()->value; args 399 src/VaryingAttributes.cpp varyings[name] = op->args[1]; args 415 src/VaryingAttributes.cpp expr = op->args[1]; args 439 src/VaryingAttributes.cpp std::string name = op->args[0].as<StringImm>()->value; args 814 src/VaryingAttributes.cpp std::vector<Stmt> new_args(op->args.size()); args 817 src/VaryingAttributes.cpp for (size_t i = 0; i < op->args.size(); i++) { args 818 src/VaryingAttributes.cpp Expr old_arg = op->args[i]; args 857 src/VaryingAttributes.cpp for (size_t i = 0; i < op->args.size(); i++) { args 858 src/VaryingAttributes.cpp Stmt new_arg = mutate(op->args[i]); args 948 src/VaryingAttributes.cpp std::string attribute_name = op->args[0].as<StringImm>()->value; args 953 src/VaryingAttributes.cpp stmt = Store::make(vertex_buffer_name, op->args[1], offset_expression, args 954 src/VaryingAttributes.cpp Parameter(), const_true(op->args[1].type().lanes())); args 475 src/VectorizeLoops.cpp vector<Expr> new_args(op->args.size()); args 480 src/VectorizeLoops.cpp for (size_t i = 0; i < op->args.size(); i++) { args 481 src/VectorizeLoops.cpp Expr old_arg = op->args[i]; args 500 src/VectorizeLoops.cpp vector<Expr> call_args(call->args.size()); args 502 src/VectorizeLoops.cpp call_args[i] = widen(call->args[i], max_lanes); args 618 src/VectorizeLoops.cpp vector<Expr> new_args(op->args.size()); args 624 src/VectorizeLoops.cpp for (size_t i = 0; i < op->args.size(); i++) { args 625 src/VectorizeLoops.cpp Expr old_arg = op->args[i]; args 632 src/VectorizeLoops.cpp for (size_t i = 0; i < op->args.size(); i++) { args 717 src/VectorizeLoops.cpp Expr all_true = bounds_of_lanes(c->args[0]).min; args 728 src/VectorizeLoops.cpp IfThenElse::make(op->condition.as<Call>()->args[0], args 43 src/WrapExternStages.cpp vector<Argument> args; args 48 src/WrapExternStages.cpp args.emplace_back(b.name(), Argument::InputBuffer, args 52 src/WrapExternStages.cpp args.emplace_back(arg.buffer.name(), Argument::InputBuffer, args 55 src/WrapExternStages.cpp args.emplace_back(unique_name('a'), Argument::InputScalar, args 58 src/WrapExternStages.cpp args.emplace_back(arg.image_param.name(), Argument::InputBuffer, args 63 src/WrapExternStages.cpp args.emplace_back(b.name(), Argument::OutputBuffer, b.type(), b.dimensions()); args 70 src/WrapExternStages.cpp for (Argument a : args) { args 114 src/WrapExternStages.cpp LoweredFunc wrapper(wrapper_name, args, body, LoweredFunc::Internal, NameMangling::C); args 129 src/WrapExternStages.cpp for (Expr e : op->args) { args 165 src/WrapExternStages.cpp vector<LoweredArgument> args; args 169 src/WrapExternStages.cpp for (LoweredArgument arg : fn.args) { args 171 src/WrapExternStages.cpp args.push_back(arg); args 175 src/WrapExternStages.cpp args.emplace_back(arg.name, Argument::InputScalar, type_of<buffer_t *>(), 0); args 245 src/WrapExternStages.cpp LoweredFunc wrapper(name, args, body, LoweredFunc::External, NameMangling::Default); args 1096 src/runtime/HalideBuffer.h void set_min(Args... args) { args 1097 src/runtime/HalideBuffer.h assert(sizeof...(args) <= (size_t)dimensions()); args 1099 src/runtime/HalideBuffer.h const int x[] = {args...}; args 1100 src/runtime/HalideBuffer.h for (size_t i = 0; i < sizeof...(args); i++) { args 1107 src/runtime/HalideBuffer.h bool contains(Args... args) { args 1108 src/runtime/HalideBuffer.h assert(sizeof...(args) <= (size_t)dimensions()); args 1109 src/runtime/HalideBuffer.h const int x[] = {args...}; args 1110 src/runtime/HalideBuffer.h for (size_t i = 0; i < sizeof...(args); i++) { args 1400 src/runtime/HalideBuffer.h storage_T *address_of(Args... args) const { args 1402 src/runtime/HalideBuffer.h return (storage_T *)(this->buf.host) + offset_of(0, args...) * type().bytes(); args 1404 src/runtime/HalideBuffer.h return (storage_T *)(this->buf.host) + offset_of(0, args...); args 1664 src/runtime/HalideBuffer.h static void for_each_element_variadic(int, int, const for_each_element_task_dim *, Fn &&f, Args... args) { args 1665 src/runtime/HalideBuffer.h f(args...); args 1673 src/runtime/HalideBuffer.h static void for_each_element_variadic(double, int d, const for_each_element_task_dim *t, Fn &&f, Args... args) { args 1675 src/runtime/HalideBuffer.h for_each_element_variadic(0, d - 1, t, std::forward<Fn>(f), i, args...); args 1695 src/runtime/HalideBuffer.h static int num_args(double, Fn &&f, Args... args) { args 1696 src/runtime/HalideBuffer.h static_assert(sizeof...(args) <= 256, args 1699 src/runtime/HalideBuffer.h return num_args(0, std::forward<Fn>(f), 0, args...); args 1768 src/runtime/HalideBuffer.h int args = num_args(0, std::forward<Fn>(f)); args 1769 src/runtime/HalideBuffer.h assert(dims >= args); args 1770 src/runtime/HalideBuffer.h for_each_element_variadic(0, args - 1, t, std::forward<Fn>(f)); args 1849 src/runtime/HalideBuffer.h void operator()(Args... args) { args 1850 src/runtime/HalideBuffer.h (*buf)(args...) = f(args...); args 28 src/runtime/HalideRuntimeCuda.h void *args[], args 123 src/runtime/HalideRuntimeHexagonHost.h void *args[], args 29 src/runtime/HalideRuntimeMetal.h void *args[], args 28 src/runtime/HalideRuntimeOpenCL.h void *args[], args 29 src/runtime/HalideRuntimeOpenGL.h void *args[], args 39 src/runtime/HalideRuntimeOpenGLCompute.h void *args[], args 7 src/runtime/cl_functions.h #define CL_FN(ret, fn, args) args 12 src/runtime/cuda.cpp #define CUDA_FN(ret, fn, args) WEAK ret (CUDAAPI *fn)args; args 13 src/runtime/cuda.cpp #define CUDA_FN_3020(ret, fn, fn_3020, args) WEAK ret (CUDAAPI *fn)args; args 14 src/runtime/cuda.cpp #define CUDA_FN_4000(ret, fn, fn_4000, args) WEAK ret (CUDAAPI *fn)args; args 64 src/runtime/cuda.cpp #define CUDA_FN(ret, fn, args) fn = get_cuda_symbol<ret (CUDAAPI *)args>(user_context, #fn); args 65 src/runtime/cuda.cpp #define CUDA_FN_3020(ret, fn, fn_3020, args) fn = get_cuda_symbol<ret (CUDAAPI *)args>(user_context, #fn_3020); args 66 src/runtime/cuda.cpp #define CUDA_FN_4000(ret, fn, fn_4000, args) fn = get_cuda_symbol<ret (CUDAAPI *)args>(user_context, #fn_4000); args 713 src/runtime/cuda.cpp void* args[], args 756 src/runtime/cuda.cpp << " [" << (*((void **)args[num_args])) << " ...] " args 768 src/runtime/cuda.cpp dev_handles[i] = (*(uint64_t *)args[i]); args 773 src/runtime/cuda.cpp translated_args[i] = args[i]; args 7 src/runtime/cuda_functions.h #define CUDA_FN(ret, fn, args) args 10 src/runtime/cuda_functions.h #define CUDA_FN_3020(ret, fn, fn_3020, args) CUDA_FN(ret, fn, args) args 13 src/runtime/cuda_functions.h #define CUDA_FN_4000(ret, fn, fn_4000, args) CUDA_FN(ret, fn, args) args 248 src/runtime/hexagon_host.cpp uint64_t arg_sizes[], void *args[], int arg_flags[], int flag_mask, int flag_value, args 258 src/runtime/hexagon_host.cpp uint64_t device_handle = *((uint64_t *)args[i]); args 265 src/runtime/hexagon_host.cpp mapped_arg.data = (uint8_t*)args[i]; args 279 src/runtime/hexagon_host.cpp void *args[], args 316 src/runtime/hexagon_host.cpp int input_buffer_count = map_arguments(user_context, arg_count, arg_sizes, args, arg_flags, 0x3, 0x1, args 322 src/runtime/hexagon_host.cpp int output_buffer_count = map_arguments(user_context, arg_count, arg_sizes, args, arg_flags, 0x2, 0x2, args 328 src/runtime/hexagon_host.cpp int input_scalar_count = map_arguments(user_context, arg_count, arg_sizes, args, arg_flags, 0x3, 0x0, args 381 src/runtime/hexagon_remote/halide_remote.cpp void **args = (void **)__builtin_alloca((input_buffersLen + input_scalarsLen + output_buffersLen) * sizeof(void *)); args 384 src/runtime/hexagon_remote/halide_remote.cpp void **next_arg = &args[0]; args 408 src/runtime/hexagon_remote/halide_remote.cpp result = run_context.run(pipeline, args); args 23 src/runtime/hexagon_remote/pipeline_context.h void **args; args 32 src/runtime/hexagon_remote/pipeline_context.h result = function(args); args 46 src/runtime/hexagon_remote/pipeline_context.h : stack(NULL), function(NULL), args(NULL), running(true) { args 79 src/runtime/hexagon_remote/pipeline_context.h int run(pipeline_argv_t function, void **args) { args 83 src/runtime/hexagon_remote/pipeline_context.h this->args = args; args 369 src/runtime/hexagon_remote/sim_remote.cpp void **args = (void **)__builtin_alloca((input_buffersLen + input_scalarsLen + output_buffersLen) * sizeof(void *)); args 372 src/runtime/hexagon_remote/sim_remote.cpp void **next_arg = &args[0]; args 390 src/runtime/hexagon_remote/sim_remote.cpp return pipeline(args); args 75 src/runtime/matlab.cpp #define MEX_FN(ret, func, args) ret (*func)args; args 233 src/runtime/matlab.cpp #define MEX_FN(ret, func, args) func = get_mex_symbol<ret (*)args>(user_context, #func, true); args 234 src/runtime/matlab.cpp #define MEX_FN_700(ret, func, func_700, args) func_700 = get_mex_symbol<ret (*)args>(user_context, #func, false); args 235 src/runtime/matlab.cpp #define MEX_FN_730(ret, func, func_730, args) func_730 = get_mex_symbol<ret (*)args>(user_context, #func_730, false); args 372 src/runtime/matlab.cpp int (*pipeline)(void **args), const halide_filter_metadata_t *metadata, args 411 src/runtime/matlab.cpp void **args = (void **)__builtin_alloca(nrhs * sizeof(void *)); args 427 src/runtime/matlab.cpp args[i] = buf; args 437 src/runtime/matlab.cpp args[i] = scalar; args 441 src/runtime/matlab.cpp result = pipeline(args); args 448 src/runtime/matlab.cpp halide_buffer_t *buf = (halide_buffer_t *)args[i]; args 453 src/runtime/matlab.cpp halide_buffer_t *buf = (halide_buffer_t *)args[i]; args 609 src/runtime/metal.cpp void* args[], args 678 src/runtime/metal.cpp memcpy(&args_ptr[offset], args[i], arg_sizes[i]); args 692 src/runtime/metal.cpp mtl_buffer *metal_buffer = *((mtl_buffer **)args[i]); args 17 src/runtime/mex_functions.h #define MEX_FN(ret, func, args) args 21 src/runtime/mex_functions.h #define MEX_FN_730(ret, func, func_730, args) MEX_FN(ret, func_730, args) args 25 src/runtime/mex_functions.h #define MEX_FN_700(ret, func, func_700, args) MEX_FN(ret, func_700, args) args 16 src/runtime/opencl.cpp #define CL_FN(ret, fn, args) WEAK ret (CL_API_CALL *fn) args; args 64 src/runtime/opencl.cpp #define CL_FN(ret, fn, args) fn = get_cl_symbol<ret (CL_API_CALL *)args>(user_context, #fn); args 918 src/runtime/opencl.cpp void* args[], args 970 src/runtime/opencl.cpp << " [" << (*((void **)args[i])) << " ...] " args 972 src/runtime/opencl.cpp void *this_arg = args[i]; args 468 src/runtime/opengl.cpp const char *args; args 469 src/runtime/opengl.cpp if ((args = match_prefix(line, kernel_marker))) { args 471 src/runtime/opengl.cpp kernel->name = strstrip(strndup(args, next_line - args), next_line - args); args 472 src/runtime/opengl.cpp } else if ((args = match_prefix(line, uniform_marker))) { args 474 src/runtime/opengl.cpp parse_argument(user_context, args, next_line - 1)) { args 482 src/runtime/opengl.cpp } else if ((args = match_prefix(line, varying_marker))) { args 484 src/runtime/opengl.cpp parse_argument(user_context, args, next_line - 1)) { args 492 src/runtime/opengl.cpp } else if ((args = match_prefix(line, input_marker))) { args 493 src/runtime/opengl.cpp if (Argument *arg = parse_argument(user_context, args, next_line - 1)) { args 501 src/runtime/opengl.cpp } else if ((args = match_prefix(line, output_marker))) { args 502 src/runtime/opengl.cpp if (Argument *arg = parse_argument(user_context, args, next_line - 1)) { args 1422 src/runtime/opengl.cpp size_t arg_sizes[], void *args[], int8_t is_buffer[], args 1459 src/runtime/opengl.cpp for (int i = 0; args[i]; i++, kernel_arg = kernel_arg->next) { args 1466 src/runtime/opengl.cpp << "Argument " << i << ": size=" << i << " value=" << args[i]; args 1510 src/runtime/opengl.cpp for (int i = 0; args[i]; i++, kernel_arg = kernel_arg->next) { args 1516 src/runtime/opengl.cpp uint64_t handle = *(uint64_t *)args[i]; args 1537 src/runtime/opengl.cpp uint64_t handle = *(uint64_t *)args[i]; args 1562 src/runtime/opengl.cpp uniform_float[uniform_float_idx++] = *(float*)args[i]; args 1565 src/runtime/opengl.cpp uniform_int[uniform_int_idx++] = *((bool*)args[i]) ? 1 : 0; args 1568 src/runtime/opengl.cpp uniform_float[uniform_float_idx++] = *((int8_t*)args[i]); args 1571 src/runtime/opengl.cpp uniform_float[uniform_float_idx++] = *((uint8_t*)args[i]); args 1574 src/runtime/opengl.cpp uniform_float[uniform_float_idx++] = *((int16_t*)args[i]); args 1578 src/runtime/opengl.cpp uniform_float[uniform_float_idx++] = *((uint16_t*)args[i]); args 1582 src/runtime/opengl.cpp uniform_int[uniform_int_idx++] = *((int32_t*)args[i]); args 1586 src/runtime/opengl.cpp uint32_t value = *((uint32_t*)args[i]); args 1658 src/runtime/opengl.cpp for (int i = 0; args[i]; i++, kernel_arg = kernel_arg->next) { args 1670 src/runtime/opengl.cpp uint64_t handle = *(uint64_t *)args[i]; args 427 src/runtime/openglcompute.cpp int shared_mem_bytes, size_t arg_sizes[], void *args[], args 473 src/runtime/openglcompute.cpp << " [" << (*((void **)args[i])) << " ...] " args 477 src/runtime/openglcompute.cpp int value = *((int *)args[i]); args 483 src/runtime/openglcompute.cpp uint64_t arg_value = *(uint64_t *)args[i]; args 147 src/runtime/runtime_internal.h int (*pipeline)(void **args), const halide_filter_metadata_t *metadata, args 57 test/correctness/extern_bounds_inference.cpp std::vector<ExternFuncArgument> args(3); args 58 test/correctness/extern_bounds_inference.cpp args[0] = input; args 59 test/correctness/extern_bounds_inference.cpp args[1] = Expr(3); args 60 test/correctness/extern_bounds_inference.cpp args[2] = Expr(7); args 62 test/correctness/extern_bounds_inference.cpp f.define_extern("translate", args, UInt(8), 2); args 76 test/correctness/extern_bounds_inference.cpp std::vector<ExternFuncArgument> args(3); args 77 test/correctness/extern_bounds_inference.cpp args[0] = input; args 78 test/correctness/extern_bounds_inference.cpp args[1] = Expr(3); args 79 test/correctness/extern_bounds_inference.cpp args[2] = Expr(7); args 81 test/correctness/extern_bounds_inference.cpp f1.define_extern("translate", args, UInt(8), 2); args 83 test/correctness/extern_bounds_inference.cpp args[1] = Expr(8); args 84 test/correctness/extern_bounds_inference.cpp args[2] = Expr(17); args 85 test/correctness/extern_bounds_inference.cpp f2.define_extern("translate", args, UInt(8), 2); args 107 test/correctness/extern_bounds_inference.cpp std::vector<ExternFuncArgument> args(3); args 108 test/correctness/extern_bounds_inference.cpp args[0] = input; args 109 test/correctness/extern_bounds_inference.cpp args[1] = Expr(3); args 110 test/correctness/extern_bounds_inference.cpp args[2] = Expr(7); args 112 test/correctness/extern_bounds_inference.cpp f1.define_extern("translate", args, UInt(8), 2); args 79 test/correctness/extern_consumer.cpp std::vector<ExternFuncArgument> args; args 80 test/correctness/extern_consumer.cpp args.push_back(source); args 81 test/correctness/extern_consumer.cpp args.push_back(filename); args 82 test/correctness/extern_consumer.cpp args.push_back(min); args 83 test/correctness/extern_consumer.cpp args.push_back(extent); args 84 test/correctness/extern_consumer.cpp sink.define_extern("dump_to_file", args, Int(32), 0); args 27 test/correctness/extern_error.cpp std::vector<ExternFuncArgument> args; args 28 test/correctness/extern_error.cpp args.push_back(user_context_value()); args 31 test/correctness/extern_error.cpp f.define_extern("extern_error", args, Float(32), 1); args 36 test/correctness/extern_sort.cpp std::vector<ExternFuncArgument> args; args 37 test/correctness/extern_sort.cpp args.push_back(data); args 38 test/correctness/extern_sort.cpp sorted.define_extern("sort_buffer", args, Float(32), 1); args 82 test/correctness/extern_stage.cpp std::vector<ExternFuncArgument> args(2); args 83 test/correctness/extern_stage.cpp args[0] = input; args 84 test/correctness/extern_stage.cpp args[1] = f; args 85 test/correctness/extern_stage.cpp g.define_extern("flip_x", args, UInt(8), 1); args 60 test/correctness/host_alignment.cpp Expr name = reinterpret_call->args[0]; args 27 test/correctness/image_io.cpp std::vector<Expr> args; args 29 test/correctness/image_io.cpp args = {r.x, r.y}; args 31 test/correctness/image_io.cpp args = {r.x, r.y, r.z}; args 33 test/correctness/image_io.cpp uint32_t diff = evaluate<uint32_t>(maximum(abs(cast<int>(buf(args)) - cast<int>(reloaded(args))))); args 35 test/correctness/infer_arguments.cpp std::vector<Argument> args = f.infer_arguments(); args 36 test/correctness/infer_arguments.cpp EXPECT(7, args.size()); args 38 test/correctness/infer_arguments.cpp Argument input1_arg = args[0]; args 39 test/correctness/infer_arguments.cpp Argument input2_arg = args[1]; args 40 test/correctness/infer_arguments.cpp Argument frac_arg = args[2]; args 41 test/correctness/infer_arguments.cpp Argument height_arg = args[3]; args 42 test/correctness/infer_arguments.cpp Argument thresh_arg = args[4]; args 43 test/correctness/infer_arguments.cpp Argument width_arg = args[5]; args 44 test/correctness/infer_arguments.cpp Argument z_unsigned_arg = args[6]; args 120 test/correctness/infer_arguments.cpp args = f_tuple.infer_arguments(); args 121 test/correctness/infer_arguments.cpp EXPECT(3, args.size()); args 123 test/correctness/infer_arguments.cpp input1_arg = args[0]; args 124 test/correctness/infer_arguments.cpp frac_arg = args[1]; args 125 test/correctness/infer_arguments.cpp thresh_arg = args[2]; args 191 test/correctness/math.cpp TestArgs<type> args(steps, start, end); \ args 192 test/correctness/math.cpp test_##type##_##name(args.data); \ args 198 test/correctness/math.cpp TestArgs<type> args(steps, start1, end1, start2, end2); \ args 199 test/correctness/math.cpp test_##type##_##name(args.data); \ args 507 test/correctness/memoize.cpp std::vector<ExternFuncArgument> args(3); args 508 test/correctness/memoize.cpp args[0] = cast<int32_t>(i); args 509 test/correctness/memoize.cpp args[1] = cast<int32_t>(val); args 510 test/correctness/memoize.cpp args[2] = prev_func; args 512 test/correctness/memoize.cpp args, args 20 test/correctness/pipeline_set_jit_externs_func.cpp std::vector<ExternFuncArgument> args; args 21 test/correctness/pipeline_set_jit_externs_func.cpp args.push_back(user_context_value()); args 28 test/correctness/pipeline_set_jit_externs_func.cpp f.define_extern("extern_func", args, Float(32), 2); args 96 test/correctness/print.cpp std::vector<Expr> args; args 106 test/correctness/print.cpp args.push_back((cast<uint64_t>(hi) << 32) | lo); args 108 test/correctness/print.cpp args.push_back(dn); args 110 test/correctness/print.cpp f(x) = print(args); args 14 test/error/missing_args.cpp std::vector<Argument> args; args 17 test/error/missing_args.cpp f.compile_to_object("f.o", args, "f"); args 44 test/generator/argvcall_aottest.cpp void* args[3] = { &arg0, &arg1, (halide_buffer_t *)output }; args 45 test/generator/argvcall_aottest.cpp result = argvcall_argv(args); args 24 test/generator/cxx_mangling_define_extern_generator.cpp std::vector<ExternFuncArgument> args; args 25 test/generator/cxx_mangling_define_extern_generator.cpp args.push_back(Halide::user_context_value()); args 26 test/generator/cxx_mangling_define_extern_generator.cpp args.push_back(g); args 27 test/generator/cxx_mangling_define_extern_generator.cpp args.push_back(cast<int8_t>(1)); args 28 test/generator/cxx_mangling_define_extern_generator.cpp args.push_back(cast<uint8_t>(2)); args 29 test/generator/cxx_mangling_define_extern_generator.cpp args.push_back(cast<int16_t>(3)); args 30 test/generator/cxx_mangling_define_extern_generator.cpp args.push_back(cast<uint16_t>(4)); args 31 test/generator/cxx_mangling_define_extern_generator.cpp args.push_back(cast<int32_t>(5)); args 32 test/generator/cxx_mangling_define_extern_generator.cpp args.push_back(cast<uint32_t>(6)); args 33 test/generator/cxx_mangling_define_extern_generator.cpp args.push_back(cast<int64_t>(7)); args 34 test/generator/cxx_mangling_define_extern_generator.cpp args.push_back(cast<uint64_t>(8)); args 35 test/generator/cxx_mangling_define_extern_generator.cpp args.push_back(cast<bool>(9 == 9)); args 36 test/generator/cxx_mangling_define_extern_generator.cpp args.push_back(cast<float>(10.0f)); args 37 test/generator/cxx_mangling_define_extern_generator.cpp args.push_back(Expr(11.0)); args 38 test/generator/cxx_mangling_define_extern_generator.cpp args.push_back(int_ptr); args 39 test/generator/cxx_mangling_define_extern_generator.cpp args.push_back(const_int_ptr); args 40 test/generator/cxx_mangling_define_extern_generator.cpp args.push_back(void_ptr); args 41 test/generator/cxx_mangling_define_extern_generator.cpp args.push_back(const_void_ptr); args 42 test/generator/cxx_mangling_define_extern_generator.cpp args.push_back(string_ptr); args 43 test/generator/cxx_mangling_define_extern_generator.cpp args.push_back(const_string_ptr); args 45 test/generator/cxx_mangling_define_extern_generator.cpp args, Float(64), 1, NameMangling::Default); args 47 test/generator/cxx_mangling_define_extern_generator.cpp args, Float(64), 1, NameMangling::CPlusPlus); args 49 test/generator/cxx_mangling_define_extern_generator.cpp args, Float(64), 1, NameMangling::C); args 48 test/generator/nested_externs_generator.cpp auto args = f.args(); args 49 test/generator/nested_externs_generator.cpp f.compute_root().reorder_storage(args[2], args[0], args[1]); args 91 test/generator/nested_externs_generator.cpp auto args = f.args(); args 92 test/generator/nested_externs_generator.cpp f.compute_at(root, y).reorder_storage(args[2], args[0], args[1]); args 83 test/generator/stubtest_jittest.cpp gen.intermediate_level.set(LoopLevel(gen.tuple_output, gen.tuple_output.args().at(1))); args 72 test/generator/user_context_aottest.cpp void* args[3] = { &arg0, input.raw_buffer(), output.raw_buffer() }; args 77 test/generator/user_context_aottest.cpp result = user_context_argv(args); args 32 tools/halide_image_io.h va_list args; args 33 tools/halide_image_io.h va_start(args, fmt); args 34 tools/halide_image_io.h vsnprintf(buffer, sizeof(buffer), fmt, args); args 35 tools/halide_image_io.h va_end(args); args 33 tutorial/lesson_11_cross_compilation.cpp std::vector<Argument> args(2); args 34 tutorial/lesson_11_cross_compilation.cpp args[0] = input; args 35 tutorial/lesson_11_cross_compilation.cpp args[1] = offset; args 48 tutorial/lesson_11_cross_compilation.cpp brighter.compile_to_file("lesson_11_host", args, "brighter"); args 62 tutorial/lesson_11_cross_compilation.cpp brighter.compile_to_file("lesson_11_arm_32_android", args, "brighter", target); args 72 tutorial/lesson_11_cross_compilation.cpp brighter.compile_to_file("lesson_11_x86_64_windows", args, "brighter", target); args 86 tutorial/lesson_11_cross_compilation.cpp brighter.compile_to_file("lesson_11_arm_32_ios", args, "brighter", target);