Skip to content

Commit

Permalink
Add forwarders for 'name()' method for Funcs, ImageParam
Browse files Browse the repository at this point in the history
(followup to #6772)
  • Loading branch information
steven-johnson committed May 19, 2022
1 parent 61f6af7 commit c15a2a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Generator.h
Original file line number Diff line number Diff line change
Expand Up @@ -1804,6 +1804,7 @@ class GeneratorInput_Buffer : public GeneratorInputImpl<T, Func> {
HALIDE_FORWARD_METHOD_CONST(ImageParam, trace_loads)
HALIDE_FORWARD_METHOD_CONST(ImageParam, add_trace_tag)
HALIDE_FORWARD_METHOD_CONST(ImageParam, type)
HALIDE_FORWARD_METHOD_CONST(Func, name)
// }@
};

Expand Down Expand Up @@ -1919,6 +1920,7 @@ class GeneratorInput_Func : public GeneratorInputImpl<T, Func> {
HALIDE_FORWARD_METHOD_CONST(Func, dimensions)
HALIDE_FORWARD_METHOD_CONST(Func, has_update_definition)
HALIDE_FORWARD_METHOD_CONST(Func, num_update_definitions)
HALIDE_FORWARD_METHOD_CONST(Func, name)
HALIDE_ATTRIBUTE_DEPRECATED("Func::output_type() is deprecated; use Func::type() instead.")
const Type &output_type() const {
this->check_gio_access();
Expand Down Expand Up @@ -2293,6 +2295,7 @@ class GeneratorOutputBase : public GIOBase {
HALIDE_FORWARD_METHOD(Func, hexagon)
HALIDE_FORWARD_METHOD(Func, in)
HALIDE_FORWARD_METHOD(Func, memoize)
HALIDE_FORWARD_METHOD_CONST(Func, name)
HALIDE_FORWARD_METHOD_CONST(Func, num_update_definitions)
HALIDE_ATTRIBUTE_DEPRECATED("Func::output_type() is deprecated; use Func::type() instead.")
const Type &output_type() const {
Expand Down Expand Up @@ -2334,9 +2337,6 @@ class GeneratorOutputBase : public GIOBase {

// }@

#undef HALIDE_OUTPUT_FORWARD
#undef HALIDE_OUTPUT_FORWARD_CONST

protected:
GeneratorOutputBase(size_t array_size,
const std::string &name,
Expand Down

0 comments on commit c15a2a7

Please sign in to comment.