Halide 20.0.0
Halide compiler and libraries
Loading...
Searching...
No Matches
HalidePlugin.h
Go to the documentation of this file.
1#ifndef HALIDE_HALIDEPLUGIN_H
2#define HALIDE_HALIDEPLUGIN_H
3
4#define HALIDE_KEEP_MACROS
5#include "Halide.h"
6
7#include "Errors.h"
8
9#define REGISTER_AUTOSCHEDULER(NAME) \
10 struct HALIDE_EXPORT Register##NAME { \
11 Register##NAME() { \
12 debug(1) << "Registering autoscheduler '" #NAME "'...\n"; \
13 Pipeline::add_autoscheduler(#NAME, NAME()); \
14 } \
15 } register_##NAME;
16
17#endif // HALIDE_HALIDEPLUGIN_H