https://github.com/halide/Halide
Raw File
Tip revision: 91d87d7b5e2e48012a23eee9985658dd6010a744 authored by Andrew Adams on 12 March 2024, 16:48:53 UTC
Merge remote-tracking branch 'origin/main' into abadams/fix_pointless_lower_condition
Tip revision: 91d87d7
PythonExtensionGen.h
#ifndef HALIDE_PYTHON_EXTENSION_GEN_H_
#define HALIDE_PYTHON_EXTENSION_GEN_H_

#include <iostream>
#include <string>
#include <vector>

namespace Halide {

class Module;

namespace Internal {

struct LoweredArgument;
struct LoweredFunc;

class PythonExtensionGen {
public:
    PythonExtensionGen(std::ostream &dest);

    void compile(const Module &module);

private:
    std::ostream &dest;

    void compile(const LoweredFunc &f);
};

}  // namespace Internal
}  // namespace Halide

#endif  // HALIDE_PYTHON_EXTENSION_GEN_H_
back to top