Halide 21.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#define REGISTER_AUTOSCHEDULER(NAME) \
8 struct HALIDE_EXPORT Register##NAME { \
9 Register##NAME() { \
10 debug(1) << "Registering autoscheduler '" #NAME "'...\n"; \
11 Pipeline::add_autoscheduler(#NAME, NAME()); \
12 } \
13 } register_##NAME;
14
15#endif // HALIDE_HALIDEPLUGIN_H