Moving cpu/runtime/ to cpu/.

This commit is contained in:
Ben Vanik
2015-03-24 08:25:58 -07:00
parent 29912f44c0
commit 9281d62106
102 changed files with 394 additions and 771 deletions

View File

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