Merging Runtime into Processor.

This commit is contained in:
Ben Vanik
2015-05-03 22:28:25 -07:00
parent 4c8f3501ad
commit 78921c1a7e
56 changed files with 441 additions and 543 deletions

View File

@@ -18,7 +18,7 @@
namespace xe {
namespace cpu {
class Runtime;
class Processor;
} // namespace cpu
} // namespace xe
@@ -30,10 +30,10 @@ class CompilerPass;
class Compiler {
public:
Compiler(Runtime* runtime);
Compiler(Processor* processor);
~Compiler();
Runtime* runtime() const { return runtime_; }
Processor* processor() const { return processor_; }
Arena* scratch_arena() { return &scratch_arena_; }
void AddPass(std::unique_ptr<CompilerPass> pass);
@@ -43,7 +43,7 @@ class Compiler {
int Compile(hir::HIRBuilder* builder);
private:
Runtime* runtime_;
Processor* processor_;
Arena scratch_arena_;
std::vector<std::unique_ptr<CompilerPass>> passes_;