Open piotrklos-tcl opened 5 years ago
Feel free to submit a PR with a documentation update. Also note that ahead of time compiled generators can have their lowered statements dumped to a file at the command line by passing -e html
to the generator executable.
If it's possible, it might not be a bad idea to have an overload that calls infer_arguments
internally.
I cannot figure out how to call compile_to_lowered_stmt by reading documentation. I'm annoyed by this for the third time, so I'm submitting an issue. :)
I tried this:
and I got an error:
(parameter names changed for legal reasons).
Then I tried
but the push_back calls didn't compile. I cant figure out how to construct Argument objects because they have many fields and complicated constructors.
I had to grep halide repo with
to finally find a clue as to what the solution may look like. Grep was necessary, because google doesn't find those calls for me on github.
The final thing that worked for me was:
I doubt that any beginner will go to such great lengths to find this, so in my opinion the documentation (including the tutorial
https://halide-lang.org/docs/tutorial_2lesson_03_debugging_1_8cpp-example.html) is pretty useless for any non-trivial pipeline.