https://github.com/halide/Halide
Raw File
Tip revision: c34fe9ec2db2b2b9c83efb8996f4a844cbe23a54 authored by Patricia Adriana Suriana on 20 September 2018, 15:44:00 UTC
Merge branch 'master' of https://github.com/halide/Halide into compute_with_remove_is_right_level
Tip revision: c34fe9e
PythonExtensionGen.h
#ifndef HALIDE_PYTHON_EXTENSION_GEN_H_
#define HALIDE_PYTHON_EXTENSION_GEN_H_

#include <string>
#include "Module.h"
#include "Target.h"

namespace Halide {

class Module;
struct Target;

namespace Internal {

class PythonExtensionGen {
public:
    PythonExtensionGen(std::ostream &dest, const std::string &header_name, Target target);

    void compile(const Module &module);
    void compile(const LoweredFunc &f);
private:
    void convert_buffer(std::string name, const LoweredArgument* arg);
    std::ostream &dest;
    std::string header_name;
    Target target;
};

}
}

#endif // HALIDE_PYTHON_EXTENSION_GEN_H_
back to top