https://github.com/halide/Halide
Raw File
Tip revision: 83b07f1b5b9e393d9826dee6ee30797f5463e70d authored by Andrew Adams on 01 September 2023, 03:00:32 UTC
Merge remote-tracking branch 'origin/main' into abadams/fix_cse_name_collisions
Tip revision: 83b07f1
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