Commit 250c248b authored by Robert Kimball's avatar Robert Kimball

working

parent 24a21089
...@@ -74,6 +74,11 @@ Compiler::~Compiler() ...@@ -74,6 +74,11 @@ Compiler::~Compiler()
{ {
} }
void Compiler::set_precomiled_header_source(const std::string& source)
{
s_static_compiler.set_precomiled_header_source(source);
}
std::unique_ptr<llvm::Module> Compiler::compile(const std::string& source) std::unique_ptr<llvm::Module> Compiler::compile(const std::string& source)
{ {
lock_guard<mutex> lock(m_mutex); lock_guard<mutex> lock(m_mutex);
......
...@@ -51,6 +51,7 @@ class ngraph::codegen::Compiler ...@@ -51,6 +51,7 @@ class ngraph::codegen::Compiler
public: public:
Compiler(); Compiler();
~Compiler(); ~Compiler();
void set_precomiled_header_source(const std::string& source);
std::unique_ptr<llvm::Module> compile(const std::string& source); std::unique_ptr<llvm::Module> compile(const std::string& source);
private: private:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment