root/test/generator/can_use_target_generator.cpp

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

DEFINITIONS

This source file includes following definitions.
  1. build

#include "Halide.h"

namespace {

class CanUseTarget : public Halide::Generator<CanUseTarget> {
public:
    // Current really just a placeholder: can_use_target_aottest.cpp just
    // needs to test the runtime itself, not the generator function.
    Func build() {
        Var x, y;
        Func f("f");
        f(x, y) = cast<uint32_t>((int32_t)0xdeadbeef);
        return f;
    }
};

Halide::RegisterGenerator<CanUseTarget> register_my_gen{"can_use_target"};

}  // namespace

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