Revision f2143bf0a4fca92bbb8e3064c30a8dcafdbc6d21 authored by Steven Johnson on 30 March 2021, 19:29:32 UTC, committed by GitHub on 30 March 2021, 19:29:32 UTC
* Add a way to set a GeneratorInput's type in code Currently, if you want to vary the type of a Generator's inputs or outputs, you have to specify the types in the makefile. This can be awkward for things with complex logic. This PR proposes adding a way to do this: a new `set_type()` method which can only be called from the rarely-used Generator::configure() method. It only allows setting the type for an input or output that has no type specified. I'm not 100% sure if this is a good idea, but for certain rare corner cases, it may be quite handy. (Note that extending this to allow specifying dimensions and/or array size in the same way might be handy, but is omitted from this PR.) * Update Generator.h * Also add set_dimensions, set_array_size
1 parent 2dd7a6b
File | Mode | Size |
---|---|---|
CMakeLists.txt | -rw-r--r-- | 290 bytes |
Halide-VS2017.natvis | -rw-r--r-- | 2.2 KB |
Halide.natvis | -rw-r--r-- | 1.4 KB |
HalideTraceDump.cpp | -rw-r--r-- | 11.6 KB |
HalideTraceUtils.cpp | -rw-r--r-- | 1.4 KB |
HalideTraceUtils.h | -rw-r--r-- | 2.7 KB |
HalideTraceViz.cpp | -rw-r--r-- | 56.1 KB |
inconsolata.h | -rw-r--r-- | 228.4 KB |
Computing file changes ...