root/test/generator/error_codes_generator.cpp

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. build

#include "Halide.h"

namespace {

class ErrorCodes : public Halide::Generator<ErrorCodes> {
public:
    ImageParam input { Int(32), 2, "input" };
    Param<int> f_explicit_bound {"f_explicit_bound", 1, 0, 64};


    Func build() {
        target.set(get_target().without_feature(Target::LargeBuffers));
        Func f;
        Var x, y;

        f(x, y) = input(x, y);
        f.bound(x, 0, f_explicit_bound);

        return f;
    }
};

Halide::RegisterGenerator<ErrorCodes> register_my_gen{"error_codes"};

}  // namespace

/* [<][>][^][v][top][bottom][index][help] */