Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Unified Diff: src/IceCompiler.h

Issue 997773002: Refactor Subzero initialization and add a browser callback handler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Add argv note Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceCompileServer.cpp ('k') | src/IceCompiler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceCompiler.h
diff --git a/src/IceCompiler.h b/src/IceCompiler.h
new file mode 100644
index 0000000000000000000000000000000000000000..87915a6366df7b6f648142280ee180e261440254
--- /dev/null
+++ b/src/IceCompiler.h
@@ -0,0 +1,43 @@
+//===- subzero/src/IceCompiler.h - Compiler driver --------------*- C++ -*-===//
+//
+// The Subzero Code Generator
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// This file declares the driver for translating bitcode to native code.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef SUBZERO_SRC_ICECOMPILER_H
+#define SUBZERO_SRC_ICECOMPILER_H
+
+#include "IceDefs.h"
+
+namespace llvm {
+class DataStreamer;
+}
+
+namespace Ice {
+
+class ClFlagsExtra;
+
+// A compiler driver. It may be called to handle a single compile request.
+class Compiler {
+ Compiler(const Compiler &) = delete;
+ Compiler &operator=(const Compiler &) = delete;
+
+public:
+ Compiler() {}
+
+ // Run the compiler with the given GlobalContext for compilation
+ // state. Upon error, the Context's error status will be set.
+ void run(const ClFlagsExtra &ExtraFlags, GlobalContext &Ctx,
+ std::unique_ptr<llvm::DataStreamer> &&InputStream);
+};
+
+} // end of namespace Ice
+
+#endif // SUBZERO_SRC_ICECOMPILER_H
« no previous file with comments | « src/IceCompileServer.cpp ('k') | src/IceCompiler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698