stream 447 src/Associativity.cpp std::ostringstream stream; stream 448 src/Associativity.cpp stream << f << "("; stream 450 src/Associativity.cpp stream << args[i]; stream 452 src/Associativity.cpp stream << ", "; stream 455 src/Associativity.cpp stream << ") = "; stream 458 src/Associativity.cpp stream << exprs[0]; stream 460 src/Associativity.cpp stream << "Tuple("; stream 462 src/Associativity.cpp stream << exprs[i]; stream 464 src/Associativity.cpp stream << ", "; stream 467 src/Associativity.cpp stream << ")"; stream 469 src/Associativity.cpp return stream.str(); stream 79 src/CanonicalizeGPUVars.cpp std::ostringstream stream; stream 81 src/CanonicalizeGPUVars.cpp stream << v[i]; stream 83 src/CanonicalizeGPUVars.cpp stream << "."; stream 86 src/CanonicalizeGPUVars.cpp return stream.str(); stream 120 src/CodeGen_C.cpp stream << "#ifndef HALIDE_" << print_name(guard) << '\n' stream 128 src/CodeGen_C.cpp stream << "// For the definitions of these structs, include HalideRuntime.h\n"; stream 130 src/CodeGen_C.cpp stream << "// Definitions for these structs are below.\n"; stream 132 src/CodeGen_C.cpp stream << "\n" stream 151 src/CodeGen_C.cpp stream stream 160 src/CodeGen_C.cpp stream << "#ifndef HALIDE_FUNCTION_ATTRS\n"; stream 161 src/CodeGen_C.cpp stream << "#define HALIDE_FUNCTION_ATTRS\n"; stream 162 src/CodeGen_C.cpp stream << "#endif\n"; stream 170 src/CodeGen_C.cpp stream << "\n" stream 176 src/CodeGen_C.cpp stream stream 183 src/CodeGen_C.cpp stream stream 190 src/CodeGen_C.cpp stream << "//\n" stream 199 src/CodeGen_C.cpp stream << halide_internal_runtime_header_HalideRuntimeCuda_h << '\n'; stream 203 src/CodeGen_C.cpp stream << halide_internal_runtime_header_HalideRuntimeHexagonHost_h << '\n'; stream 206 src/CodeGen_C.cpp stream << halide_internal_runtime_header_HalideRuntimeMetal_h << '\n'; stream 209 src/CodeGen_C.cpp stream << halide_internal_runtime_header_HalideRuntimeOpenCL_h << '\n'; stream 212 src/CodeGen_C.cpp stream << halide_internal_runtime_header_HalideRuntimeOpenGLCompute_h << '\n'; stream 215 src/CodeGen_C.cpp stream << halide_internal_runtime_header_HalideRuntimeOpenGL_h << '\n'; stream 218 src/CodeGen_C.cpp stream << "#endif\n"; stream 305 src/CodeGen_C.cpp stream << "\n#ifdef __cplusplus\n"; stream 306 src/CodeGen_C.cpp stream << "} // extern \"C\"\n"; stream 307 src/CodeGen_C.cpp stream << "#endif\n"; stream 310 src/CodeGen_C.cpp stream << "#ifdef __cplusplus\n"; stream 311 src/CodeGen_C.cpp stream << "extern \"C\" {\n"; stream 312 src/CodeGen_C.cpp stream << "#endif\n"; stream 387 src/CodeGen_C.cpp void emit_function_decl(ostream &stream, const Call *op, const std::string &name) { stream 388 src/CodeGen_C.cpp stream << type_to_c_type(op->type, true) << " " << name << "("; stream 390 src/CodeGen_C.cpp stream << "void *"; stream 392 src/CodeGen_C.cpp stream << ", "; stream 397 src/CodeGen_C.cpp stream << ", "; stream 400 src/CodeGen_C.cpp stream << "const char *"; stream 402 src/CodeGen_C.cpp stream << type_to_c_type(op->args[i].type(), true); stream 405 src/CodeGen_C.cpp stream << ");\n"; stream 408 src/CodeGen_C.cpp void emit_namespace_or_call(ostream &stream, const NamespaceOrCall &ns_or_call, const std::string &name) { stream 410 src/CodeGen_C.cpp stream << "namespace " << name << " {\n"; stream 412 src/CodeGen_C.cpp emit_namespace_or_call(stream, ns_or_call_inner.second, ns_or_call_inner.first); stream 414 src/CodeGen_C.cpp stream << "} // namespace " << name << "\n"; stream 416 src/CodeGen_C.cpp emit_function_decl(stream, ns_or_call.call, name); stream 457 src/CodeGen_C.cpp void emit_c_declarations(ostream &stream) { stream 459 src/CodeGen_C.cpp emit_function_decl(stream, call.second, call.first); stream 461 src/CodeGen_C.cpp stream << "\n"; stream 464 src/CodeGen_C.cpp void emit_c_plus_plus_declarations(ostream &stream) { stream 466 src/CodeGen_C.cpp emit_namespace_or_call(stream, ns_or_call.second, ns_or_call.first); stream 468 src/CodeGen_C.cpp stream << "\n"; stream 498 src/CodeGen_C.cpp stream << "namespace " << handle_type->namespaces[ns] << " {\n"; stream 501 src/CodeGen_C.cpp stream << "struct " << handle_type->inner_name.name << ";\n"; stream 503 src/CodeGen_C.cpp stream << "class " << handle_type->inner_name.name << ";\n"; stream 505 src/CodeGen_C.cpp stream << "union " << handle_type->inner_name.name << ";\n"; stream 510 src/CodeGen_C.cpp stream << "}\n"; stream 523 src/CodeGen_C.cpp stream << "\n"; stream 529 src/CodeGen_C.cpp e.emit_c_plus_plus_declarations(stream); stream 534 src/CodeGen_C.cpp e.emit_c_declarations(stream); stream 545 src/CodeGen_C.cpp stream << "\n"; stream 557 src/CodeGen_C.cpp stream << separator << "namespace " << ns << " {"; stream 560 src/CodeGen_C.cpp stream << "\n\n"; stream 566 src/CodeGen_C.cpp stream << "static "; stream 568 src/CodeGen_C.cpp stream << "int " << simple_name << "("; stream 571 src/CodeGen_C.cpp stream << "struct halide_buffer_t *" stream 575 src/CodeGen_C.cpp stream << print_type(args[i].type, AppendSpace) stream 579 src/CodeGen_C.cpp if (i < args.size()-1) stream << ", "; stream 583 src/CodeGen_C.cpp stream << ") HALIDE_FUNCTION_ATTRS;\n"; stream 585 src/CodeGen_C.cpp stream << ") HALIDE_FUNCTION_ATTRS {\n"; stream 593 src/CodeGen_C.cpp stream << "return 0;\n"; stream 596 src/CodeGen_C.cpp stream << "}\n"; stream 601 src/CodeGen_C.cpp stream << "int " << simple_name << "_argv(void **args) HALIDE_FUNCTION_ATTRS;\n"; stream 604 src/CodeGen_C.cpp stream << "const struct halide_filter_metadata_t *" << simple_name << "_metadata() HALIDE_FUNCTION_ATTRS;\n"; stream 608 src/CodeGen_C.cpp stream << "\n"; stream 610 src/CodeGen_C.cpp stream << "}"; stream 612 src/CodeGen_C.cpp stream << " // Close namespaces "; stream 615 src/CodeGen_C.cpp stream << separator << ns; stream 619 src/CodeGen_C.cpp stream << "\n\n"; stream 642 src/CodeGen_C.cpp stream << "static uint8_t " << name << "_data[] __attribute__ ((aligned (32))) = {"; stream 644 src/CodeGen_C.cpp if (i > 0) stream << ", "; stream 645 src/CodeGen_C.cpp stream << (int)(b.host[i]); stream 647 src/CodeGen_C.cpp stream << "};\n"; stream 650 src/CodeGen_C.cpp stream << "static halide_dimension_t " << name << "_buffer_shape[] = {"; stream 652 src/CodeGen_C.cpp stream << "{" << buffer.dim(i).min() stream 656 src/CodeGen_C.cpp stream << ", "; stream 659 src/CodeGen_C.cpp stream << "};\n"; stream 664 src/CodeGen_C.cpp stream << "static halide_buffer_t " << name << "_buffer = {" stream 674 src/CodeGen_C.cpp stream << "static halide_buffer_t *" << name << " = &" << name << "_buffer;\n"; stream 694 src/CodeGen_C.cpp stream << print_type(t, AppendSpace) << id << " = " << rhs << ";\n"; stream 706 src/CodeGen_C.cpp stream << "{\n"; stream 714 src/CodeGen_C.cpp stream << "} // " << comment << "\n"; stream 716 src/CodeGen_C.cpp stream << "}\n"; stream 948 src/CodeGen_C.cpp stream << print_type(op->args[1].type(), AppendSpace) stream 954 src/CodeGen_C.cpp stream << "if (" << cond_id << ")\n"; stream 958 src/CodeGen_C.cpp stream << result_id << " = " << true_case << ";\n"; stream 961 src/CodeGen_C.cpp stream << "else\n"; stream 965 src/CodeGen_C.cpp stream << result_id << " = " << false_case << ";\n"; stream 985 src/CodeGen_C.cpp stream << "halide_buffer_t " << buf_name << ";\n"; stream 992 src/CodeGen_C.cpp stream << "uint64_t " << array_name << "[" << size << "];"; stream 1008 src/CodeGen_C.cpp stream << "struct {"; stream 1011 src/CodeGen_C.cpp stream << "const " << print_type(op->args[i].type()) << " f_" << i << "; "; stream 1014 src/CodeGen_C.cpp stream << "} " << struct_name << " = {"; stream 1017 src/CodeGen_C.cpp if (i > 0) stream << ", "; stream 1018 src/CodeGen_C.cpp stream << values[i]; stream 1020 src/CodeGen_C.cpp stream << "};\n"; stream 1056 src/CodeGen_C.cpp stream << "char " << buf_name << "[1024];\n"; stream 1058 src/CodeGen_C.cpp stream << "snprintf(" << buf_name << ", 1024, \"" << format_string << "\""; stream 1060 src/CodeGen_C.cpp stream << ", " << printf_args[i]; stream 1062 src/CodeGen_C.cpp stream << ");\n"; stream 1080 src/CodeGen_C.cpp stream << "struct " << struct_name << "{ " stream 1170 src/CodeGen_C.cpp stream << "((" stream 1176 src/CodeGen_C.cpp stream << print_name(op->name); stream 1178 src/CodeGen_C.cpp stream << "[" stream 1194 src/CodeGen_C.cpp stream << print_type(op->value.type()) stream 1224 src/CodeGen_C.cpp stream << print_type(op->value.type()) stream 1243 src/CodeGen_C.cpp stream << "if (!" << id_cond << ") "; stream 1247 src/CodeGen_C.cpp stream << "return " << id_msg << ";\n"; stream 1254 src/CodeGen_C.cpp stream << "// produce " << op->name << '\n'; stream 1256 src/CodeGen_C.cpp stream << "// consume " << op->name << '\n'; stream 1264 src/CodeGen_C.cpp stream << "#pragma omp parallel for\n"; stream 1274 src/CodeGen_C.cpp stream << "for (int " stream 1308 src/CodeGen_C.cpp stream << print_type(op->type) << "*" << print_name(op->name) << " = (" << print_expr(op->new_expr) << ");\n"; stream 1342 src/CodeGen_C.cpp stream << "if ((" << size_id << " > ((int64_t(1) << 31) - 1)) || ((" << size_id << stream 1346 src/CodeGen_C.cpp stream << "halide_error(" stream 1351 src/CodeGen_C.cpp stream << "return -1;\n"; stream 1372 src/CodeGen_C.cpp stream << print_type(op->type) << ' '; stream 1375 src/CodeGen_C.cpp stream << print_name(op->name) stream 1378 src/CodeGen_C.cpp stream << "*" stream 1407 src/CodeGen_C.cpp stream << free_function << "(" stream 1428 src/CodeGen_C.cpp stream << "if (" << cond_id << ")\n"; stream 1435 src/CodeGen_C.cpp stream << "else\n"; stream 1446 src/CodeGen_C.cpp stream << "(void)" << id << ";\n"; stream 96 src/CodeGen_Metal_Dev.cpp stream << print_type(e.type()) << " " << temp << " = " << expr << ";\n"; stream 161 src/CodeGen_Metal_Dev.cpp stream << print_type(Int(32)) << " " << print_name(loop->name) stream 269 src/CodeGen_Metal_Dev.cpp stream << print_type(op->type) stream 274 src/CodeGen_Metal_Dev.cpp stream stream 299 src/CodeGen_Metal_Dev.cpp stream << "*(" << get_memory_space(op->name) << " " << print_storage_type(t) << " *)((" stream 310 src/CodeGen_Metal_Dev.cpp stream << "((" << get_memory_space(op->name) << " " stream 326 src/CodeGen_Metal_Dev.cpp stream << "((" stream 333 src/CodeGen_Metal_Dev.cpp stream << print_name(op->name); stream 335 src/CodeGen_Metal_Dev.cpp stream << "[" << id_index << "] = " stream 376 src/CodeGen_Metal_Dev.cpp stream << print_storage_type(op->type) << ' ' stream 379 src/CodeGen_Metal_Dev.cpp stream << "#define " << get_memory_space(op->name) << " thread\n"; stream 402 src/CodeGen_Metal_Dev.cpp stream << "#undef " << get_memory_space(op->name) << "\n"; stream 470 src/CodeGen_Metal_Dev.cpp stream << "// Address spaces for " << name << "\n"; stream 480 src/CodeGen_Metal_Dev.cpp stream << "#if " << constant->size << " < MAX_CONSTANT_BUFFER_SIZE && " stream 482 src/CodeGen_Metal_Dev.cpp stream << "#define " << get_memory_space(args[i].name) << " constant\n"; stream 483 src/CodeGen_Metal_Dev.cpp stream << "#else\n"; stream 484 src/CodeGen_Metal_Dev.cpp stream << "#define " << get_memory_space(args[i].name) << " device\n"; stream 485 src/CodeGen_Metal_Dev.cpp stream << "#endif\n"; stream 487 src/CodeGen_Metal_Dev.cpp stream << "#define " << get_memory_space(args[i].name) << " device\n"; stream 497 src/CodeGen_Metal_Dev.cpp stream << "struct " + name + "_args {\n"; stream 500 src/CodeGen_Metal_Dev.cpp stream << print_type(args[i].type) stream 507 src/CodeGen_Metal_Dev.cpp stream << "};\n"; stream 511 src/CodeGen_Metal_Dev.cpp stream << "kernel void " << name << "(\n"; stream 512 src/CodeGen_Metal_Dev.cpp stream << "uint3 tgroup_index [[ threadgroup_position_in_grid ]],\n" stream 516 src/CodeGen_Metal_Dev.cpp stream << ",\nconst device " << name << "_args *_scalar_args [[ buffer(0) ]]"; stream 522 src/CodeGen_Metal_Dev.cpp stream << ",\n"; stream 523 src/CodeGen_Metal_Dev.cpp stream << " " << get_memory_space(args[i].name) << " "; stream 524 src/CodeGen_Metal_Dev.cpp if (!args[i].write) stream << "const "; stream 525 src/CodeGen_Metal_Dev.cpp stream << print_storage_type(args[i].type) << " *" stream 532 src/CodeGen_Metal_Dev.cpp stream << ",\n" << " threadgroup int16_t* __shared [[ threadgroup(0) ]]"; stream 534 src/CodeGen_Metal_Dev.cpp stream << ")\n"; stream 541 src/CodeGen_Metal_Dev.cpp stream << print_type(args[i].type) stream 562 src/CodeGen_Metal_Dev.cpp stream << "#undef " << get_memory_space(args[i].name) << "\n"; stream 118 src/CodeGen_OpenCL_Dev.cpp stream << print_type(Int(32)) << " " << print_name(loop->name) stream 271 src/CodeGen_OpenCL_Dev.cpp stream << print_type(op->type) stream 276 src/CodeGen_OpenCL_Dev.cpp stream stream 301 src/CodeGen_OpenCL_Dev.cpp stream << "vstore" << t.lanes() << "(" stream 316 src/CodeGen_OpenCL_Dev.cpp stream << "((" << get_memory_space(op->name) << " " stream 332 src/CodeGen_OpenCL_Dev.cpp stream << "((" stream 339 src/CodeGen_OpenCL_Dev.cpp stream << print_name(op->name); stream 341 src/CodeGen_OpenCL_Dev.cpp stream << "[" << id_index << "] = " stream 411 src/CodeGen_OpenCL_Dev.cpp stream << print_type(op->type) << ' ' stream 414 src/CodeGen_OpenCL_Dev.cpp stream << "#define " << get_memory_space(op->name) << " __private\n"; stream 437 src/CodeGen_OpenCL_Dev.cpp stream << "#undef " << get_memory_space(op->name) << "\n"; stream 464 src/CodeGen_OpenCL_Dev.cpp stream << print_type(op->type) << " " << id << ";\n"; stream 466 src/CodeGen_OpenCL_Dev.cpp stream << id << ".even = " << a1 << ";\n"; stream 468 src/CodeGen_OpenCL_Dev.cpp stream << id << ".odd = " << a2 << ";\n"; stream 483 src/CodeGen_OpenCL_Dev.cpp stream << print_type(op->type) << " " << id; stream 484 src/CodeGen_OpenCL_Dev.cpp stream << " = (" << print_type(op->type) << ")("; stream 489 src/CodeGen_OpenCL_Dev.cpp stream << arg_exprs[arg] << ".s" << vector_elements[arg_idx]; stream 491 src/CodeGen_OpenCL_Dev.cpp stream << ", "; stream 494 src/CodeGen_OpenCL_Dev.cpp stream << ");\n"; stream 565 src/CodeGen_OpenCL_Dev.cpp stream << "// Address spaces for " << name << "\n"; stream 575 src/CodeGen_OpenCL_Dev.cpp stream << "#if " << constant->size << " <= MAX_CONSTANT_BUFFER_SIZE && " stream 577 src/CodeGen_OpenCL_Dev.cpp stream << "#define " << get_memory_space(args[i].name) << " __constant\n"; stream 578 src/CodeGen_OpenCL_Dev.cpp stream << "#else\n"; stream 579 src/CodeGen_OpenCL_Dev.cpp stream << "#define " << get_memory_space(args[i].name) << " __global\n"; stream 580 src/CodeGen_OpenCL_Dev.cpp stream << "#endif\n"; stream 582 src/CodeGen_OpenCL_Dev.cpp stream << "#define " << get_memory_space(args[i].name) << " __global\n"; stream 588 src/CodeGen_OpenCL_Dev.cpp stream << "__kernel void " << name << "(\n"; stream 591 src/CodeGen_OpenCL_Dev.cpp stream << " " << get_memory_space(args[i].name) << " "; stream 592 src/CodeGen_OpenCL_Dev.cpp if (!args[i].write) stream << "const "; stream 593 src/CodeGen_OpenCL_Dev.cpp stream << print_type(args[i].type) << " *" stream 603 src/CodeGen_OpenCL_Dev.cpp stream << " const " stream 609 src/CodeGen_OpenCL_Dev.cpp if (i < args.size()-1) stream << ",\n"; stream 611 src/CodeGen_OpenCL_Dev.cpp stream << ",\n" << " __address_space___shared int16* __shared"; stream 613 src/CodeGen_OpenCL_Dev.cpp stream << ")\n"; stream 629 src/CodeGen_OpenCL_Dev.cpp stream << "#undef " << get_memory_space(args[i].name) << "\n"; stream 116 src/CodeGen_OpenGLCompute_Dev.cpp stream << "barrier();\n"; stream 148 src/CodeGen_OpenGLCompute_Dev.cpp stream << print_type(Int(32)) << " " << print_name(loop->name) stream 207 src/CodeGen_OpenGLCompute_Dev.cpp stream << print_name(op->name); stream 209 src/CodeGen_OpenGLCompute_Dev.cpp stream << ".data"; stream 211 src/CodeGen_OpenGLCompute_Dev.cpp stream << "[" << id_index << "] = " << print_type(op->value.type()) << "(" << id_value << ");\n"; stream 265 src/CodeGen_OpenGLCompute_Dev.cpp stream << "#version 310 es\n" stream 268 src/CodeGen_OpenGLCompute_Dev.cpp stream << "#version 430\n"; stream 270 src/CodeGen_OpenGLCompute_Dev.cpp stream << "float float_from_bits(int x) { return intBitsToFloat(int(x)); }\n"; stream 279 src/CodeGen_OpenGLCompute_Dev.cpp stream << "layout(binding=" << i << ")" stream 284 src/CodeGen_OpenGLCompute_Dev.cpp stream << "uniform " << print_type(args[i].type) stream 294 src/CodeGen_OpenGLCompute_Dev.cpp stream << "shared " stream 305 src/CodeGen_OpenGLCompute_Dev.cpp stream << "void main()\n{\n"; stream 309 src/CodeGen_OpenGLCompute_Dev.cpp stream << "}\n"; stream 313 src/CodeGen_OpenGLCompute_Dev.cpp stream << "layout(local_size_x = " << workgroup_size[0]; stream 314 src/CodeGen_OpenGLCompute_Dev.cpp if (workgroup_size[1] > 1) { stream << ", local_size_y = " << workgroup_size[1]; } stream 315 src/CodeGen_OpenGLCompute_Dev.cpp if (workgroup_size[2] > 1) { stream << ", local_size_z = " << workgroup_size[2]; } stream 316 src/CodeGen_OpenGLCompute_Dev.cpp stream << ") in;\n// end of kernel " << name << "\n"; stream 344 src/CodeGen_OpenGLCompute_Dev.cpp stream << print_type(op->type) << " " stream 403 src/CodeGen_OpenGL_Dev.cpp stream << print_type(Int(32)) << " " << print_name(loop->name) << " = " << idx << ";\n"; stream 433 src/CodeGen_OpenGL_Dev.cpp stream << print_type(op->type) << " " << id_value << ";\n"; stream 436 src/CodeGen_OpenGL_Dev.cpp stream << "if (" << cond << ") "; stream 441 src/CodeGen_OpenGL_Dev.cpp stream << id_value << " = " << true_val << ";\n"; stream 446 src/CodeGen_OpenGL_Dev.cpp stream << "else "; stream 451 src/CodeGen_OpenGL_Dev.cpp stream << id_value << " = " << false_val<< ";\n"; stream 468 src/CodeGen_OpenGL_Dev.cpp stream << print_type(op->type) << " " << id_value << " = " stream 471 src/CodeGen_OpenGL_Dev.cpp stream << ids[i] << ((i < lanes - 1) ? ", " : ");\n"); stream 555 src/CodeGen_OpenGL_Dev.cpp stream << print_name(op->name) << " = " << val << ";\n"; stream 559 src/CodeGen_OpenGL_Dev.cpp stream << print_name(op->name) << get_vector_suffix(op->index) stream 565 src/CodeGen_OpenGL_Dev.cpp stream << print_name(op->name) << "[" << idx << "] = " << val << ";\n"; stream 571 src/CodeGen_OpenGL_Dev.cpp stream << print_name(op->name) stream 677 src/CodeGen_OpenGL_Dev.cpp stream << "gl_FragColor" << suffix stream 680 src/CodeGen_OpenGL_Dev.cpp stream << " / " << print_expr(cast<float>(op->args[5].type().max())); stream 682 src/CodeGen_OpenGL_Dev.cpp stream << ";\n"; stream 776 src/CodeGen_OpenGL_Dev.cpp stream << print_type(op->type) << " " << print_name(op->name) << ";\n"; stream 782 src/CodeGen_OpenGL_Dev.cpp stream << print_type(op->type.with_lanes(size)) << " " << print_name(op->name) << ";\n"; stream 787 src/CodeGen_OpenGL_Dev.cpp stream << print_type(op->type) << " " << print_name(op->name) << "[" << size << "];\n"; stream 891 src/CodeGen_OpenGL_Dev.cpp stream << header.str(); stream 896 src/CodeGen_OpenGL_Dev.cpp stream << "#ifdef GL_FRAGMENT_PRECISION_HIGH\n" stream 904 src/CodeGen_OpenGL_Dev.cpp stream << "uniform sampler2D " << print_name(args[i].name) << ";\n"; stream 909 src/CodeGen_OpenGL_Dev.cpp stream << "varying vec4 _varyingf" << i << ";\n"; stream 913 src/CodeGen_OpenGL_Dev.cpp stream << "uniform vec4 _uniformf" << i << ";\n"; stream 917 src/CodeGen_OpenGL_Dev.cpp stream << "uniform ivec4 _uniformi" << i << ";\n"; stream 921 src/CodeGen_OpenGL_Dev.cpp stream << stream 926 src/CodeGen_OpenGL_Dev.cpp stream << "void main() {\n"; stream 935 src/CodeGen_OpenGL_Dev.cpp stream << "float " << print_name(args[i].name) stream 940 src/CodeGen_OpenGL_Dev.cpp stream << print_type(args[i].type) << " " stream 946 src/CodeGen_OpenGL_Dev.cpp stream << print_type(args[i].type) << " " stream 955 src/CodeGen_OpenGL_Dev.cpp stream << "}\n"; stream 19 src/Debug.h EXPORT std::ostream &operator<<(std::ostream &stream, const Expr &); stream 20 src/Debug.h EXPORT std::ostream &operator<<(std::ostream &stream, const Type &); stream 23 src/Debug.h EXPORT std::ostream &operator<<(std::ostream &stream, const Module &); stream 28 src/Debug.h EXPORT std::ostream &operator<<(std::ostream &stream, const Stmt &); stream 257 src/Generator.cpp : stream(dest), stream 276 src/Generator.cpp std::ostream &stream; stream 316 src/Generator.cpp stream << indent() << "struct " << name << " final {\n"; stream 320 src/Generator.cpp stream << indent() << p->get_c_type() << " " << p->name << "{ " << p->get_default_value() << " };\n"; stream 322 src/Generator.cpp stream << "\n"; stream 325 src/Generator.cpp stream << indent() << name << "() {}\n"; stream 326 src/Generator.cpp stream << "\n"; stream 329 src/Generator.cpp stream << indent() << name << "(\n"; stream 333 src/Generator.cpp stream << indent() << comma << p->get_c_type() << " " << p->name << "\n"; stream 337 src/Generator.cpp stream << indent() << ") : \n"; stream 341 src/Generator.cpp stream << indent() << comma << p->name << "(" << p->name << ")\n"; stream 345 src/Generator.cpp stream << indent() << "{\n"; stream 346 src/Generator.cpp stream << indent() << "}\n"; stream 347 src/Generator.cpp stream << "\n"; stream 350 src/Generator.cpp stream << indent() << "inline NO_INLINE std::map<std::string, std::string> to_string_map() const {\n"; stream 352 src/Generator.cpp stream << indent() << "std::map<std::string, std::string> m;\n"; stream 354 src/Generator.cpp stream << indent() << "if (" << p->name << " != " << p->get_default_value() << ") " stream 357 src/Generator.cpp stream << indent() << "return m;\n"; stream 359 src/Generator.cpp stream << indent() << "}\n"; stream 362 src/Generator.cpp stream << indent() << "};\n"; stream 363 src/Generator.cpp stream << "\n"; stream 367 src/Generator.cpp stream << indent() << "// set_schedule_param methods\n"; stream 368 src/Generator.cpp stream << indent() << "template <typename T>\n"; stream 369 src/Generator.cpp stream << indent() << class_name << " &set_schedule_param(const std::string &name, const T &value) {\n"; stream 371 src/Generator.cpp stream << indent() << "(void) GeneratorStub::set_schedule_param(name, value);\n"; stream 372 src/Generator.cpp stream << indent() << "return *this;\n"; stream 374 src/Generator.cpp stream << indent() << "}\n"; stream 385 src/Generator.cpp stream << "\n"; stream 403 src/Generator.cpp stream << indent() << "struct " << name << " final {\n"; stream 406 src/Generator.cpp stream << indent() << in.c_type << " " << in.name << ";\n"; stream 408 src/Generator.cpp stream << "\n"; stream 410 src/Generator.cpp stream << indent() << name << "() {}\n"; stream 411 src/Generator.cpp stream << "\n"; stream 413 src/Generator.cpp stream << indent() << name << "(\n"; stream 417 src/Generator.cpp stream << indent() << comma << "const " << in.c_type << "& " << in.name << "\n"; stream 421 src/Generator.cpp stream << indent() << ") : \n"; stream 425 src/Generator.cpp stream << indent() << comma << in.name << "(" << in.name << ")\n"; stream 429 src/Generator.cpp stream << indent() << "{\n"; stream 430 src/Generator.cpp stream << indent() << "}\n"; stream 433 src/Generator.cpp stream << indent() << "};\n"; stream 434 src/Generator.cpp stream << "\n"; stream 445 src/Generator.cpp stream << "/* MACHINE-GENERATED - DO NOT EDIT */\n"; stream 446 src/Generator.cpp stream << "/* The Generator named " << generator_name << " uses ImageParam or Param, thus cannot have a Stub generated. */\n"; stream 476 src/Generator.cpp stream << indent() << "#ifndef " << guard.str() << "\n"; stream 477 src/Generator.cpp stream << indent() << "#define " << guard.str() << "\n"; stream 478 src/Generator.cpp stream << "\n"; stream 480 src/Generator.cpp stream << indent() << "/* MACHINE-GENERATED - DO NOT EDIT */\n"; stream 481 src/Generator.cpp stream << "\n"; stream 483 src/Generator.cpp stream << indent() << "#include <cassert>\n"; stream 484 src/Generator.cpp stream << indent() << "#include <map>\n"; stream 485 src/Generator.cpp stream << indent() << "#include <memory>\n"; stream 486 src/Generator.cpp stream << indent() << "#include <string>\n"; stream 487 src/Generator.cpp stream << indent() << "#include <utility>\n"; stream 488 src/Generator.cpp stream << indent() << "#include <vector>\n"; stream 489 src/Generator.cpp stream << "\n"; stream 490 src/Generator.cpp stream << indent() << "#include \"Halide.h\"\n"; stream 491 src/Generator.cpp stream << "\n"; stream 494 src/Generator.cpp stream << indent() << "namespace " << ns << " {\n"; stream 496 src/Generator.cpp stream << "\n"; stream 501 src/Generator.cpp stream << decl << "\n"; stream 504 src/Generator.cpp stream << indent() << "class " << class_name << " final : public Halide::Internal::GeneratorStub {\n"; stream 505 src/Generator.cpp stream << indent() << "public:\n"; stream 512 src/Generator.cpp stream << indent() << "NO_INLINE " << class_name << "() :\n"; stream 516 src/Generator.cpp stream << indent() << sp->name() << "(\"" << sp->name() << "\")" << comma << "\n"; stream 519 src/Generator.cpp stream << indent() << "{}\n"; stream 522 src/Generator.cpp stream << indent() << class_name << "() {}\n"; stream 524 src/Generator.cpp stream << "\n"; stream 526 src/Generator.cpp stream << indent() << "NO_INLINE " << class_name << "(\n"; stream 528 src/Generator.cpp stream << indent() << "const GeneratorContext& context,\n"; stream 529 src/Generator.cpp stream << indent() << "const Inputs& inputs,\n"; stream 530 src/Generator.cpp stream << indent() << "const GeneratorParams& params = GeneratorParams()\n"; stream 532 src/Generator.cpp stream << indent() << ")\n"; stream 534 src/Generator.cpp stream << indent() << ": GeneratorStub(context, &factory, params.to_string_map(), {\n"; stream 537 src/Generator.cpp stream << indent() << "to_stub_input_vector(inputs." << inputs[i]->name() << ")"; stream 538 src/Generator.cpp stream << ",\n"; stream 541 src/Generator.cpp stream << indent() << "})\n"; stream 543 src/Generator.cpp stream << indent() << ", " << sp->name() << "(get_schedule_param(\"" << sp->name() << "\"))\n"; stream 546 src/Generator.cpp stream << indent() << ", " << out.name << "(" << out.getter << ")\n"; stream 549 src/Generator.cpp stream << indent() << "{\n"; stream 550 src/Generator.cpp stream << indent() << "}\n"; stream 551 src/Generator.cpp stream << "\n"; stream 553 src/Generator.cpp stream << indent() << "// delegating ctor to allow GeneratorContext-pointer\n"; stream 554 src/Generator.cpp stream << indent() << class_name << "(\n"; stream 556 src/Generator.cpp stream << indent() << "const GeneratorContext* context,\n"; stream 557 src/Generator.cpp stream << indent() << "const Inputs& inputs,\n"; stream 558 src/Generator.cpp stream << indent() << "const GeneratorParams& params = GeneratorParams()\n"; stream 560 src/Generator.cpp stream << indent() << ")\n"; stream 562 src/Generator.cpp stream << indent() << ": " << class_name << "(*context, inputs, params) {}\n"; stream 563 src/Generator.cpp stream << "\n"; stream 567 src/Generator.cpp stream << indent() << "// templated construction method with inputs\n"; stream 568 src/Generator.cpp stream << indent() << "template<\n"; stream 580 src/Generator.cpp stream << indent() << comma << "typename" << " " << p->name << " = std::ratio<" << ratio.first << ", " << ratio.second << ">\n"; stream 582 src/Generator.cpp stream << indent() << comma << type << " " << p->name << " = " << value << "\n"; stream 587 src/Generator.cpp stream << indent() << ">\n"; stream 588 src/Generator.cpp stream << indent() << "static " << class_name << " make(const GeneratorContext& context, const Inputs& inputs) {\n"; stream 590 src/Generator.cpp stream << indent() << "GeneratorParams gp(\n"; stream 596 src/Generator.cpp stream << indent() << comma << "Halide::type_of<" << p->name << ">()\n"; stream 598 src/Generator.cpp stream << indent() << comma << "ratio_to_double<" << p->name << ">()\n"; stream 600 src/Generator.cpp stream << indent() << comma << p->name << "\n"; stream 605 src/Generator.cpp stream << indent() << ");\n"; stream 606 src/Generator.cpp stream << indent() << "return " << class_name << "(context, inputs, gp);\n"; stream 608 src/Generator.cpp stream << indent() << "}\n"; stream 609 src/Generator.cpp stream << "\n"; stream 612 src/Generator.cpp stream << indent() << "// schedule method\n"; stream 613 src/Generator.cpp stream << indent() << class_name << " &schedule() {\n"; stream 615 src/Generator.cpp stream << indent() << "(void) GeneratorStub::schedule();\n"; stream 616 src/Generator.cpp stream << indent() << "return *this;\n"; stream 618 src/Generator.cpp stream << indent() << "}\n"; stream 619 src/Generator.cpp stream << "\n"; stream 623 src/Generator.cpp stream << indent() << "// move constructor\n"; stream 624 src/Generator.cpp stream << indent() << class_name << "("<< class_name << "&& that)\n"; stream 626 src/Generator.cpp stream << indent() << ": GeneratorStub(std::move(that))\n"; stream 628 src/Generator.cpp stream << indent() << ", " << sp->name() << "(std::move(that." << sp->name() << "))\n"; stream 631 src/Generator.cpp stream << indent() << ", " << out.name << "(std::move(that." << out.name << "))\n"; stream 634 src/Generator.cpp stream << indent() << "{\n"; stream 635 src/Generator.cpp stream << indent() << "}\n"; stream 636 src/Generator.cpp stream << "\n"; stream 638 src/Generator.cpp stream << indent() << "// move assignment operator\n"; stream 639 src/Generator.cpp stream << indent() << class_name << "& operator=("<< class_name << "&& that) {\n"; stream 641 src/Generator.cpp stream << indent() << "GeneratorStub::operator=(std::move(that));\n"; stream 643 src/Generator.cpp stream << indent() << sp->name() << " = std::move(that." << sp->name() << ");\n"; stream 646 src/Generator.cpp stream << indent() << out.name << " = std::move(that." << out.name << ");\n"; stream 648 src/Generator.cpp stream << indent() << "return *this;\n"; stream 650 src/Generator.cpp stream << indent() << "}\n"; stream 651 src/Generator.cpp stream << "\n"; stream 653 src/Generator.cpp stream << indent() << "// ScheduleParams(s)\n"; stream 656 src/Generator.cpp stream << indent() << "ScheduleParam<" << c_type << "> " << sp->name() << ";\n"; stream 658 src/Generator.cpp stream << "\n"; stream 660 src/Generator.cpp stream << indent() << "// Output(s)\n"; stream 661 src/Generator.cpp stream << indent() << "// TODO: identify vars used\n"; stream 663 src/Generator.cpp stream << indent() << out.ctype << " " << out.name << ";\n"; stream 665 src/Generator.cpp stream << "\n"; stream 667 src/Generator.cpp stream << indent() << "~" << class_name << "() { if (has_generator()) verify(); }\n"; stream 668 src/Generator.cpp stream << "\n"; stream 671 src/Generator.cpp stream << indent() << "protected:\n"; stream 673 src/Generator.cpp stream << indent() << "NO_INLINE void verify() {\n"; stream 676 src/Generator.cpp stream << indent() << "verify_same_funcs(" << out.name << ", " << out.getter << ");\n"; stream 679 src/Generator.cpp stream << indent() << "}\n"; stream 680 src/Generator.cpp stream << "\n"; stream 683 src/Generator.cpp stream << indent() << "private:\n"; stream 685 src/Generator.cpp stream << indent() << "static std::unique_ptr<Halide::Internal::GeneratorBase> factory(const GeneratorContext& context, const std::map<std::string, std::string>& params) {\n"; stream 687 src/Generator.cpp stream << indent() << "return Halide::Internal::GeneratorRegistry::create(\"" << generator_name << "\", context, params);\n"; stream 689 src/Generator.cpp stream << indent() << "};\n"; stream 690 src/Generator.cpp stream << "\n"; stream 693 src/Generator.cpp stream << indent() << "};\n"; stream 694 src/Generator.cpp stream << "\n"; stream 697 src/Generator.cpp stream << indent() << "} // namespace " << namespaces[i] << "\n"; stream 699 src/Generator.cpp stream << "\n"; stream 701 src/Generator.cpp stream << indent() << "#endif // " << guard.str() << "\n"; stream 43 src/IRPrinter.cpp ostream &operator<<(ostream &stream, const Expr &ir) { stream 45 src/IRPrinter.cpp stream << "(undefined)"; stream 47 src/IRPrinter.cpp Internal::IRPrinter p(stream); stream 50 src/IRPrinter.cpp return stream; stream 53 src/IRPrinter.cpp ostream &operator<<(ostream &stream, const Buffer<> &buffer) { stream 54 src/IRPrinter.cpp return stream << "buffer " << buffer.name() << " = {...}\n"; stream 57 src/IRPrinter.cpp ostream &operator<<(ostream &stream, const Module &m) { stream 58 src/IRPrinter.cpp stream << "Target = " << m.target().to_string() << "\n"; stream 60 src/IRPrinter.cpp stream << b << "\n"; stream 63 src/IRPrinter.cpp stream << f << "\n"; stream 65 src/IRPrinter.cpp return stream; stream 149 src/IRPrinter.cpp ostream& operator<<(ostream &stream, const AssociativePattern &p) { stream 150 src/IRPrinter.cpp stream << "{\n"; stream 152 src/IRPrinter.cpp stream << " op_" << i << " ->" << p.ops[i] << ", id_" << i << " -> " << p.identities[i] << "\n"; stream 154 src/IRPrinter.cpp stream << " is commutative? " << p.is_commutative << "\n"; stream 155 src/IRPrinter.cpp stream << "}\n"; stream 156 src/IRPrinter.cpp return stream; stream 159 src/IRPrinter.cpp ostream& operator<<(ostream &stream, const AssociativeOp &op) { stream 160 src/IRPrinter.cpp stream << "Pattern:\n" << op.pattern; stream 161 src/IRPrinter.cpp stream << "is associative? " << op.is_associative << "\n"; stream 163 src/IRPrinter.cpp stream << " " << op.xs[i].var << " -> " << op.xs[i].expr << "\n"; stream 164 src/IRPrinter.cpp stream << " " << op.ys[i].var << " -> " << op.ys[i].expr << "\n"; stream 166 src/IRPrinter.cpp stream << "\n"; stream 167 src/IRPrinter.cpp return stream; stream 209 src/IRPrinter.cpp ostream &operator<<(ostream &stream, const Stmt &ir) { stream 211 src/IRPrinter.cpp stream << "(undefined)\n"; stream 213 src/IRPrinter.cpp Internal::IRPrinter p(stream); stream 216 src/IRPrinter.cpp return stream; stream 220 src/IRPrinter.cpp ostream &operator <<(ostream &stream, const LoweredFunc &function) { stream 221 src/IRPrinter.cpp stream << function.linkage << " func " << function.name << " ("; stream 223 src/IRPrinter.cpp stream << function.args[i].name; stream 225 src/IRPrinter.cpp stream << ", "; stream 228 src/IRPrinter.cpp stream << ") {\n"; stream 229 src/IRPrinter.cpp stream << function.body; stream 230 src/IRPrinter.cpp stream << "}\n\n"; stream 231 src/IRPrinter.cpp return stream; stream 250 src/IRPrinter.cpp IRPrinter::IRPrinter(ostream &s) : stream(s), indent(0) { stream 266 src/IRPrinter.cpp stream << ", "; stream 272 src/IRPrinter.cpp for (int i = 0; i < indent; i++) stream << ' '; stream 277 src/IRPrinter.cpp stream << op->value; stream 279 src/IRPrinter.cpp stream << "(" << op->type << ")" << op->value; stream 284 src/IRPrinter.cpp stream << "(" << op->type << ")" << op->value; stream 290 src/IRPrinter.cpp stream << op->value; stream 293 src/IRPrinter.cpp stream << op->value << 'f'; stream 296 src/IRPrinter.cpp stream << op->value << 'h'; stream 304 src/IRPrinter.cpp stream << '"'; stream 308 src/IRPrinter.cpp stream << c; stream 310 src/IRPrinter.cpp stream << '\\'; stream 313 src/IRPrinter.cpp stream << '"'; stream 316 src/IRPrinter.cpp stream << '\\'; stream 319 src/IRPrinter.cpp stream << 't'; stream 322 src/IRPrinter.cpp stream << 'r'; stream 325 src/IRPrinter.cpp stream << 'n'; stream 329 src/IRPrinter.cpp stream << 'x' << hex_digits[c >> 4] << hex_digits[c & 0xf]; stream 333 src/IRPrinter.cpp stream << '"'; stream 337 src/IRPrinter.cpp stream << op->type << '('; stream 339 src/IRPrinter.cpp stream << ')'; stream 345 src/IRPrinter.cpp stream << op->name; stream 349 src/IRPrinter.cpp stream << '('; stream 351 src/IRPrinter.cpp stream << " + "; stream 353 src/IRPrinter.cpp stream << ')'; stream 357 src/IRPrinter.cpp stream << '('; stream 359 src/IRPrinter.cpp stream << " - "; stream 361 src/IRPrinter.cpp stream << ')'; stream 365 src/IRPrinter.cpp stream << '('; stream 367 src/IRPrinter.cpp stream << "*"; stream 369 src/IRPrinter.cpp stream << ')'; stream 373 src/IRPrinter.cpp stream << '('; stream 375 src/IRPrinter.cpp stream << "/"; stream 377 src/IRPrinter.cpp stream << ')'; stream 381 src/IRPrinter.cpp stream << '('; stream 383 src/IRPrinter.cpp stream << " % "; stream 385 src/IRPrinter.cpp stream << ')'; stream 389 src/IRPrinter.cpp stream << "min("; stream 391 src/IRPrinter.cpp stream << ", "; stream 393 src/IRPrinter.cpp stream << ")"; stream 397 src/IRPrinter.cpp stream << "max("; stream 399 src/IRPrinter.cpp stream << ", "; stream 401 src/IRPrinter.cpp stream << ")"; stream 405 src/IRPrinter.cpp stream << '('; stream 407 src/IRPrinter.cpp stream << " == "; stream 409 src/IRPrinter.cpp stream << ')'; stream 413 src/IRPrinter.cpp stream << '('; stream 415 src/IRPrinter.cpp stream << " != "; stream 417 src/IRPrinter.cpp stream << ')'; stream 421 src/IRPrinter.cpp stream << '('; stream 423 src/IRPrinter.cpp stream << " < "; stream 425 src/IRPrinter.cpp stream << ')'; stream 429 src/IRPrinter.cpp stream << '('; stream 431 src/IRPrinter.cpp stream << " <= "; stream 433 src/IRPrinter.cpp stream << ')'; stream 437 src/IRPrinter.cpp stream << '('; stream 439 src/IRPrinter.cpp stream << " > "; stream 441 src/IRPrinter.cpp stream << ')'; stream 445 src/IRPrinter.cpp stream << '('; stream 447 src/IRPrinter.cpp stream << " >= "; stream 449 src/IRPrinter.cpp stream << ')'; stream 453 src/IRPrinter.cpp stream << '('; stream 455 src/IRPrinter.cpp stream << " && "; stream 457 src/IRPrinter.cpp stream << ')'; stream 461 src/IRPrinter.cpp stream << '('; stream 463 src/IRPrinter.cpp stream << " || "; stream 465 src/IRPrinter.cpp stream << ')'; stream 469 src/IRPrinter.cpp stream << '!'; stream 474 src/IRPrinter.cpp stream << "select("; stream 476 src/IRPrinter.cpp stream << ", "; stream 478 src/IRPrinter.cpp stream << ", "; stream 480 src/IRPrinter.cpp stream << ")"; stream 484 src/IRPrinter.cpp stream << op->name << "["; stream 486 src/IRPrinter.cpp stream << "]"; stream 488 src/IRPrinter.cpp stream << " if "; stream 494 src/IRPrinter.cpp stream << "ramp("; stream 496 src/IRPrinter.cpp stream << ", "; stream 498 src/IRPrinter.cpp stream << ", " << op->lanes << ")"; stream 502 src/IRPrinter.cpp stream << "x" << op->lanes << "("; stream 504 src/IRPrinter.cpp stream << ")"; stream 509 src/IRPrinter.cpp stream << op->name << "("; stream 514 src/IRPrinter.cpp stream << op->type << ", "; stream 517 src/IRPrinter.cpp stream << ")"; stream 521 src/IRPrinter.cpp stream << "(let " << op->name << " = "; stream 523 src/IRPrinter.cpp stream << " in "; stream 525 src/IRPrinter.cpp stream << ")"; stream 530 src/IRPrinter.cpp stream << "let " << op->name << " = "; stream 532 src/IRPrinter.cpp stream << '\n'; stream 539 src/IRPrinter.cpp stream << "assert("; stream 541 src/IRPrinter.cpp stream << ", "; stream 543 src/IRPrinter.cpp stream << ")\n"; stream 549 src/IRPrinter.cpp stream << "produce " << op->name << " {\n"; stream 554 src/IRPrinter.cpp stream << "}\n"; stream 564 src/IRPrinter.cpp stream << op->for_type << op->device_api << " (" << op->name << ", "; stream 566 src/IRPrinter.cpp stream << ", "; stream 568 src/IRPrinter.cpp stream << ") {\n"; stream 575 src/IRPrinter.cpp stream << "}\n"; stream 580 src/IRPrinter.cpp stream << op->name << "["; stream 582 src/IRPrinter.cpp stream << "] = "; stream 585 src/IRPrinter.cpp stream << " if "; stream 588 src/IRPrinter.cpp stream << '\n'; stream 593 src/IRPrinter.cpp stream << op->name << "("; stream 595 src/IRPrinter.cpp stream << ") = "; stream 597 src/IRPrinter.cpp stream << "{"; stream 601 src/IRPrinter.cpp stream << "}"; stream 604 src/IRPrinter.cpp stream << '\n'; stream 609 src/IRPrinter.cpp stream << "allocate " << op->name << "[" << op->type; stream 611 src/IRPrinter.cpp stream << " * "; stream 614 src/IRPrinter.cpp stream << "]"; stream 616 src/IRPrinter.cpp stream << " if "; stream 620 src/IRPrinter.cpp stream << "\n custom_new { " << op->new_expr << " }"; stream 623 src/IRPrinter.cpp stream << "\n custom_delete { " << op->free_function << "(<args>); }"; stream 625 src/IRPrinter.cpp stream << "\n"; stream 631 src/IRPrinter.cpp stream << "free " << op->name; stream 632 src/IRPrinter.cpp stream << '\n'; stream 637 src/IRPrinter.cpp stream << "realize " << op->name << "("; stream 639 src/IRPrinter.cpp stream << "["; stream 641 src/IRPrinter.cpp stream << ", "; stream 643 src/IRPrinter.cpp stream << "]"; stream 644 src/IRPrinter.cpp if (i < op->bounds.size() - 1) stream << ", "; stream 646 src/IRPrinter.cpp stream << ")"; stream 648 src/IRPrinter.cpp stream << " if "; stream 651 src/IRPrinter.cpp stream << " {\n"; stream 658 src/IRPrinter.cpp stream << "}\n"; stream 663 src/IRPrinter.cpp stream << "prefetch " << op->name << "("; stream 665 src/IRPrinter.cpp stream << "["; stream 667 src/IRPrinter.cpp stream << ", "; stream 669 src/IRPrinter.cpp stream << "]"; stream 670 src/IRPrinter.cpp if (i < op->bounds.size() - 1) stream << ", "; stream 672 src/IRPrinter.cpp stream << ")\n"; stream 683 src/IRPrinter.cpp stream << "if (" << op->condition << ") {\n"; stream 694 src/IRPrinter.cpp stream << "} else "; stream 698 src/IRPrinter.cpp stream << "} else {\n"; stream 707 src/IRPrinter.cpp stream << "}\n"; stream 714 src/IRPrinter.cpp stream << "\n"; stream 719 src/IRPrinter.cpp stream << "concat_vectors("; stream 721 src/IRPrinter.cpp stream << ")"; stream 723 src/IRPrinter.cpp stream << "interleave_vectors("; stream 725 src/IRPrinter.cpp stream << ")"; stream 727 src/IRPrinter.cpp stream << "extract_element("; stream 729 src/IRPrinter.cpp stream << ", " << op->indices[0]; stream 730 src/IRPrinter.cpp stream << ")"; stream 732 src/IRPrinter.cpp stream << "slice_vectors("; stream 734 src/IRPrinter.cpp stream << ", " << op->slice_begin() << ", " << op->slice_stride() << ", " << op->indices.size(); stream 735 src/IRPrinter.cpp stream << ")"; stream 737 src/IRPrinter.cpp stream << "shuffle("; stream 739 src/IRPrinter.cpp stream << ", "; stream 743 src/IRPrinter.cpp stream << ", "; stream 746 src/IRPrinter.cpp stream << ")"; stream 26 src/IRPrinter.h EXPORT std::ostream &operator<<(std::ostream &stream, const Expr &); stream 30 src/IRPrinter.h EXPORT std::ostream &operator<<(std::ostream &stream, const Type &); stream 34 src/IRPrinter.h EXPORT std::ostream &operator<<(std::ostream &stream, const Module &); stream 37 src/IRPrinter.h EXPORT std::ostream &operator<<(std::ostream &stream, const DeviceAPI &); stream 46 src/IRPrinter.h EXPORT std::ostream &operator<<(std::ostream &stream, const AssociativePattern &); stream 50 src/IRPrinter.h EXPORT std::ostream &operator<<(std::ostream &stream, const AssociativeOp &); stream 54 src/IRPrinter.h EXPORT std::ostream &operator<<(std::ostream &stream, const Stmt &); stream 58 src/IRPrinter.h EXPORT std::ostream &operator<<(std::ostream &stream, const ForType &); stream 61 src/IRPrinter.h EXPORT std::ostream &operator<<(std::ostream &stream, const NameMangling &); stream 87 src/IRPrinter.h std::ostream &stream; stream 221 src/RDom.cpp std::ostream &operator<<(std::ostream &stream, RVar v) { stream 222 src/RDom.cpp stream << v.name() << "(" << v.min() << ", " << v.extent() << ")"; stream 223 src/RDom.cpp return stream; stream 227 src/RDom.cpp std::ostream &operator<<(std::ostream &stream, RDom dom) { stream 228 src/RDom.cpp stream << "RDom(\n"; stream 230 src/RDom.cpp stream << " " << dom[i] << "\n"; stream 232 src/RDom.cpp stream << ")"; stream 235 src/RDom.cpp stream << " where (\n " << pred << ")"; stream 237 src/RDom.cpp stream << "\n"; stream 238 src/RDom.cpp return stream; stream 320 src/RDom.h std::ostream &operator<<(std::ostream &stream, RVar); stream 323 src/RDom.h std::ostream &operator<<(std::ostream &stream, RDom); stream 913 src/ScheduleFunctions.cpp std::ostream &stream; stream 917 src/ScheduleFunctions.cpp stream << " "; stream 934 src/ScheduleFunctions.cpp stream << "...\n"; stream 939 src/ScheduleFunctions.cpp stream << "for " << op->name << ":\n"; stream 963 src/ScheduleFunctions.cpp stream << caller << " uses " << func << "\n"; stream 242 src/Scope.h std::ostream &operator<<(std::ostream &stream, const Scope<T>& s) { stream 243 src/Scope.h stream << "{\n"; stream 246 src/Scope.h stream << " " << iter.name() << "\n"; stream 248 src/Scope.h stream << "}"; stream 249 src/Scope.h return stream; stream 33 src/StmtToHtml.cpp std::ofstream stream; stream 115 src/StmtToHtml.cpp stream << matched(",") << " "; stream 121 src/StmtToHtml.cpp stream << matched(l); stream 123 src/StmtToHtml.cpp stream << matched(r); stream 141 src/StmtToHtml.cpp stream << open_span("IntImm Imm"); stream 142 src/StmtToHtml.cpp stream << Expr(op); stream 143 src/StmtToHtml.cpp stream << close_span(); stream 147 src/StmtToHtml.cpp stream << open_span("UIntImm Imm"); stream 148 src/StmtToHtml.cpp stream << Expr(op); stream 149 src/StmtToHtml.cpp stream << close_span(); stream 153 src/StmtToHtml.cpp stream << open_span("FloatImm Imm"); stream 154 src/StmtToHtml.cpp stream << Expr(op); stream 155 src/StmtToHtml.cpp stream << close_span(); stream 159 src/StmtToHtml.cpp stream << open_span("StringImm"); stream 160 src/StmtToHtml.cpp stream << '"'; stream 164 src/StmtToHtml.cpp stream << c; stream 166 src/StmtToHtml.cpp stream << '\\'; stream 169 src/StmtToHtml.cpp stream << '"'; stream 172 src/StmtToHtml.cpp stream << '\\'; stream 175 src/StmtToHtml.cpp stream << 't'; stream 178 src/StmtToHtml.cpp stream << 'r'; stream 181 src/StmtToHtml.cpp stream << 'n'; stream 185 src/StmtToHtml.cpp stream << 'x' << hex_digits[c >> 4] << hex_digits[c & 0xf]; stream 189 src/StmtToHtml.cpp stream << '"'; stream 190 src/StmtToHtml.cpp stream << close_span(); stream 194 src/StmtToHtml.cpp stream << var(op->name); stream 198 src/StmtToHtml.cpp stream << open_span("Cast"); stream 200 src/StmtToHtml.cpp stream << open_span("Matched"); stream 201 src/StmtToHtml.cpp stream << open_span("Type") << op->type << close_span(); stream 202 src/StmtToHtml.cpp stream << "("; stream 203 src/StmtToHtml.cpp stream << close_span(); stream 205 src/StmtToHtml.cpp stream << matched(")"); stream 207 src/StmtToHtml.cpp stream << close_span(); stream 211 src/StmtToHtml.cpp stream << open_span("BinaryOp"); stream 213 src/StmtToHtml.cpp stream << matched("("); stream 215 src/StmtToHtml.cpp stream << " " << matched("Operator", op) << " "; stream 217 src/StmtToHtml.cpp stream << matched(")"); stream 219 src/StmtToHtml.cpp stream << close_span(); stream 237 src/StmtToHtml.cpp stream << open_span("Min"); stream 239 src/StmtToHtml.cpp stream << close_span(); stream 242 src/StmtToHtml.cpp stream << open_span("Max"); stream 244 src/StmtToHtml.cpp stream << close_span(); stream 247 src/StmtToHtml.cpp stream << open_span("Not"); stream 248 src/StmtToHtml.cpp stream << '!'; stream 250 src/StmtToHtml.cpp stream << close_span(); stream 253 src/StmtToHtml.cpp stream << open_span("Select"); stream 255 src/StmtToHtml.cpp stream << close_span(); stream 258 src/StmtToHtml.cpp stream << open_span("Load"); stream 259 src/StmtToHtml.cpp stream << open_span("Matched"); stream 260 src/StmtToHtml.cpp stream << var(op->name) << "["; stream 261 src/StmtToHtml.cpp stream << close_span(); stream 263 src/StmtToHtml.cpp stream << matched("]"); stream 265 src/StmtToHtml.cpp stream << " " << keyword("if") << " "; stream 268 src/StmtToHtml.cpp stream << close_span(); stream 271 src/StmtToHtml.cpp stream << open_span("Ramp"); stream 273 src/StmtToHtml.cpp stream << close_span(); stream 276 src/StmtToHtml.cpp stream << open_span("Broadcast"); stream 277 src/StmtToHtml.cpp stream << open_span("Matched"); stream 278 src/StmtToHtml.cpp stream << symbol("x") << op->lanes << "("; stream 279 src/StmtToHtml.cpp stream << close_span(); stream 281 src/StmtToHtml.cpp stream << matched(")"); stream 282 src/StmtToHtml.cpp stream << close_span(); stream 285 src/StmtToHtml.cpp stream << open_span("Call"); stream 287 src/StmtToHtml.cpp stream << close_span(); stream 292 src/StmtToHtml.cpp stream << open_span("Let"); stream 293 src/StmtToHtml.cpp stream << open_span("Matched"); stream 294 src/StmtToHtml.cpp stream << "(" << keyword("let") << " "; stream 295 src/StmtToHtml.cpp stream << var(op->name); stream 296 src/StmtToHtml.cpp stream << close_span(); stream 297 src/StmtToHtml.cpp stream << " " << matched("Operator Assign", "=") << " "; stream 299 src/StmtToHtml.cpp stream << " " << matched("Keyword", "in") << " "; stream 301 src/StmtToHtml.cpp stream << matched(")"); stream 302 src/StmtToHtml.cpp stream << close_span(); stream 307 src/StmtToHtml.cpp stream << open_div("LetStmt") << open_line(); stream 308 src/StmtToHtml.cpp stream << open_span("Matched"); stream 309 src/StmtToHtml.cpp stream << keyword("let") << " "; stream 310 src/StmtToHtml.cpp stream << var(op->name); stream 311 src/StmtToHtml.cpp stream << close_span(); stream 312 src/StmtToHtml.cpp stream << " " << matched("Operator Assign", "=") << " "; stream 314 src/StmtToHtml.cpp stream << close_line(); stream 316 src/StmtToHtml.cpp stream << close_div(); stream 320 src/StmtToHtml.cpp stream << open_div("AssertStmt WrapLine"); stream 325 src/StmtToHtml.cpp stream << close_div(); stream 329 src/StmtToHtml.cpp stream << open_div(op->is_producer ? "Produce" : "Consumer"); stream 331 src/StmtToHtml.cpp stream << open_span("Matched"); stream 332 src/StmtToHtml.cpp stream << open_expand_button(produce_id); stream 333 src/StmtToHtml.cpp stream << keyword(op->is_producer ? "produce" : "consume") << " "; stream 334 src/StmtToHtml.cpp stream << var(op->name); stream 335 src/StmtToHtml.cpp stream << close_expand_button() << " {"; stream 336 src/StmtToHtml.cpp stream << close_span();; stream 337 src/StmtToHtml.cpp stream << open_div(op->is_producer ? "ProduceBody Indent" : "ConsumeBody Indent", produce_id); stream 339 src/StmtToHtml.cpp stream << close_div(); stream 340 src/StmtToHtml.cpp stream << matched("}"); stream 341 src/StmtToHtml.cpp stream << close_div(); stream 346 src/StmtToHtml.cpp stream << open_div("For"); stream 349 src/StmtToHtml.cpp stream << open_expand_button(id); stream 350 src/StmtToHtml.cpp stream << open_span("Matched"); stream 352 src/StmtToHtml.cpp stream << keyword("for"); stream 354 src/StmtToHtml.cpp stream << keyword("parallel"); stream 356 src/StmtToHtml.cpp stream << keyword("vectorized"); stream 358 src/StmtToHtml.cpp stream << keyword("unrolled"); stream 360 src/StmtToHtml.cpp stream << keyword("gpu_block"); stream 362 src/StmtToHtml.cpp stream << keyword("gpu_thread"); stream 366 src/StmtToHtml.cpp stream << " ("; stream 367 src/StmtToHtml.cpp stream << close_span(); stream 369 src/StmtToHtml.cpp stream << matched(")"); stream 370 src/StmtToHtml.cpp stream << close_expand_button(); stream 371 src/StmtToHtml.cpp stream << " " << matched("{"); stream 372 src/StmtToHtml.cpp stream << open_div("ForBody Indent", id); stream 374 src/StmtToHtml.cpp stream << close_div(); stream 375 src/StmtToHtml.cpp stream << matched("}"); stream 377 src/StmtToHtml.cpp stream << close_div(); stream 381 src/StmtToHtml.cpp stream << open_div("Store WrapLine"); stream 382 src/StmtToHtml.cpp stream << open_span("Matched"); stream 383 src/StmtToHtml.cpp stream << var(op->name) << "["; stream 384 src/StmtToHtml.cpp stream << close_span(); stream 386 src/StmtToHtml.cpp stream << matched("]"); stream 387 src/StmtToHtml.cpp stream << " " << span("Operator Assign Matched", "=") << " "; stream 388 src/StmtToHtml.cpp stream << open_span("StoreValue"); stream 391 src/StmtToHtml.cpp stream << " " << keyword("if") << " "; stream 394 src/StmtToHtml.cpp stream << close_span(); stream 395 src/StmtToHtml.cpp stream << close_div(); stream 398 src/StmtToHtml.cpp stream << open_div("Provide WrapLine"); stream 399 src/StmtToHtml.cpp stream << open_span("Matched"); stream 400 src/StmtToHtml.cpp stream << var(op->name) << "("; stream 401 src/StmtToHtml.cpp stream << close_span(); stream 403 src/StmtToHtml.cpp stream << matched(")") << " "; stream 404 src/StmtToHtml.cpp stream << matched("=") << " "; stream 410 src/StmtToHtml.cpp stream << close_div(); stream 414 src/StmtToHtml.cpp stream << open_div("Allocate"); stream 415 src/StmtToHtml.cpp stream << open_span("Matched"); stream 416 src/StmtToHtml.cpp stream << keyword("allocate") << " "; stream 417 src/StmtToHtml.cpp stream << var(op->name) << "["; stream 418 src/StmtToHtml.cpp stream << close_span(); stream 420 src/StmtToHtml.cpp stream << open_span("Type"); stream 421 src/StmtToHtml.cpp stream << op->type; stream 422 src/StmtToHtml.cpp stream << close_span(); stream 425 src/StmtToHtml.cpp stream << " * "; stream 428 src/StmtToHtml.cpp stream << matched("]"); stream 430 src/StmtToHtml.cpp stream << " " << keyword("if") << " "; stream 434 src/StmtToHtml.cpp stream << open_span("Matched"); stream 435 src/StmtToHtml.cpp stream << keyword("custom_new") << "{"; stream 437 src/StmtToHtml.cpp stream << matched("}"); stream 440 src/StmtToHtml.cpp stream << open_span("Matched"); stream 441 src/StmtToHtml.cpp stream << keyword("custom_delete") << "{ " << op->free_function << "(); "; stream 442 src/StmtToHtml.cpp stream << matched("}"); stream 445 src/StmtToHtml.cpp stream << open_div("AllocateBody"); stream 447 src/StmtToHtml.cpp stream << close_div(); stream 449 src/StmtToHtml.cpp stream << close_div(); stream 453 src/StmtToHtml.cpp stream << open_div("Free WrapLine"); stream 454 src/StmtToHtml.cpp stream << keyword("free") << " "; stream 455 src/StmtToHtml.cpp stream << var(op->name); stream 456 src/StmtToHtml.cpp stream << close_div(); stream 460 src/StmtToHtml.cpp stream << open_div("Realize"); stream 462 src/StmtToHtml.cpp stream << open_expand_button(id); stream 463 src/StmtToHtml.cpp stream << keyword("realize") << " "; stream 464 src/StmtToHtml.cpp stream << var(op->name); stream 465 src/StmtToHtml.cpp stream << matched("("); stream 468 src/StmtToHtml.cpp if (i < op->bounds.size() - 1) stream << ", "; stream 470 src/StmtToHtml.cpp stream << matched(")"); stream 472 src/StmtToHtml.cpp stream << " " << keyword("if") << " "; stream 475 src/StmtToHtml.cpp stream << close_expand_button(); stream 477 src/StmtToHtml.cpp stream << " " << matched("{"); stream 478 src/StmtToHtml.cpp stream << open_div("RealizeBody Indent", id); stream 480 src/StmtToHtml.cpp stream << close_div(); stream 481 src/StmtToHtml.cpp stream << matched("}"); stream 482 src/StmtToHtml.cpp stream << close_div(); stream 487 src/StmtToHtml.cpp stream << open_span("Prefetch"); stream 488 src/StmtToHtml.cpp stream << keyword("prefetch") << " "; stream 489 src/StmtToHtml.cpp stream << var(op->name); stream 490 src/StmtToHtml.cpp stream << matched("("); stream 493 src/StmtToHtml.cpp if (i < op->bounds.size() - 1) stream << ", "; stream 495 src/StmtToHtml.cpp stream << matched(")"); stream 496 src/StmtToHtml.cpp stream << close_span(); stream 509 src/StmtToHtml.cpp stream << open_div("Block"); stream 512 src/StmtToHtml.cpp stream << close_div(); stream 515 src/StmtToHtml.cpp stream << open_div("IfThenElse"); stream 517 src/StmtToHtml.cpp stream << open_expand_button(id); stream 518 src/StmtToHtml.cpp stream << open_span("Matched"); stream 519 src/StmtToHtml.cpp stream << keyword("if") << " ("; stream 520 src/StmtToHtml.cpp stream << close_span(); stream 523 src/StmtToHtml.cpp stream << matched(")"); stream 524 src/StmtToHtml.cpp stream << close_expand_button() << " "; stream 525 src/StmtToHtml.cpp stream << matched("{"); // close if (or else if) span stream 527 src/StmtToHtml.cpp stream << open_div("ThenBody Indent", id); stream 529 src/StmtToHtml.cpp stream << close_div(); // close thenbody div stream 532 src/StmtToHtml.cpp stream << matched("}"); stream 539 src/StmtToHtml.cpp stream << matched("}") << " "; stream 540 src/StmtToHtml.cpp stream << open_expand_button(id); stream 541 src/StmtToHtml.cpp stream << open_span("Matched"); stream 542 src/StmtToHtml.cpp stream << keyword("else if") << " ("; stream 543 src/StmtToHtml.cpp stream << close_span(); stream 546 src/StmtToHtml.cpp stream << open_span("Matched") << "} "; stream 547 src/StmtToHtml.cpp stream << open_expand_button(id); stream 548 src/StmtToHtml.cpp stream << keyword("else"); stream 549 src/StmtToHtml.cpp stream << close_expand_button() << "{"; stream 550 src/StmtToHtml.cpp stream << close_span(); stream 551 src/StmtToHtml.cpp stream << open_div("ElseBody Indent", id); stream 553 src/StmtToHtml.cpp stream << close_div() << matched("}"); stream 557 src/StmtToHtml.cpp stream << close_div(); // Closing ifthenelse div. stream 561 src/StmtToHtml.cpp stream << open_div("Evaluate"); stream 563 src/StmtToHtml.cpp stream << close_div(); stream 567 src/StmtToHtml.cpp stream << open_span("Shuffle"); stream 589 src/StmtToHtml.cpp stream << close_span(); stream 603 src/StmtToHtml.cpp stream << open_div("Function"); stream 606 src/StmtToHtml.cpp stream << open_expand_button(id); stream 607 src/StmtToHtml.cpp stream << open_span("Matched"); stream 608 src/StmtToHtml.cpp stream << keyword("func"); stream 609 src/StmtToHtml.cpp stream << " " << op.name << "("; stream 610 src/StmtToHtml.cpp stream << close_span(); stream 613 src/StmtToHtml.cpp stream << matched(",") << " "; stream 615 src/StmtToHtml.cpp stream << var(op.args[i].name); stream 617 src/StmtToHtml.cpp stream << matched(")"); stream 618 src/StmtToHtml.cpp stream << close_expand_button(); stream 619 src/StmtToHtml.cpp stream << " " << matched("{"); stream 620 src/StmtToHtml.cpp stream << open_div("FunctionBody Indent", id); stream 622 src/StmtToHtml.cpp stream << close_div(); stream 623 src/StmtToHtml.cpp stream << matched("}"); stream 625 src/StmtToHtml.cpp stream << close_div(); stream 630 src/StmtToHtml.cpp stream << open_div("Buffer<>"); stream 631 src/StmtToHtml.cpp stream << keyword("buffer ") << var(op.name()); stream 632 src/StmtToHtml.cpp stream << close_div(); stream 636 src/StmtToHtml.cpp stream.open(filename.c_str()); stream 637 src/StmtToHtml.cpp stream << "<head>"; stream 638 src/StmtToHtml.cpp stream << "<style type='text/css'>" << css << "</style>\n"; stream 639 src/StmtToHtml.cpp stream << "<script language='javascript' type='text/javascript'>" + js + "</script>\n"; stream 640 src/StmtToHtml.cpp stream <<"<link rel='stylesheet' type='text/css' href='my.css'>\n"; stream 641 src/StmtToHtml.cpp stream << "<script language='javascript' type='text/javascript' src='my.js'></script>\n"; stream 642 src/StmtToHtml.cpp stream << "<link href='http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css' rel='stylesheet'>\n"; stream 643 src/StmtToHtml.cpp stream << "<script src='http://code.jquery.com/jquery-1.10.2.js'></script>\n"; stream 644 src/StmtToHtml.cpp stream << "</head>\n <body>\n"; stream 648 src/StmtToHtml.cpp stream << "<script>\n" stream 654 src/StmtToHtml.cpp stream << "</body>";