OLD | NEW |
1 //===- subzero/src/IceTranslator.cpp - ICE to machine code ------*- C++ -*-===// | 1 //===- subzero/src/IceTranslator.cpp - ICE to machine code ------*- C++ -*-===// |
2 // | 2 // |
3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
4 // | 4 // |
5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
7 // | 7 // |
8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
9 /// | 9 /// |
10 /// \file | 10 /// \file |
11 /// This file defines the general driver class for translating ICE to machine | 11 /// \brief Defines the general driver class for translating ICE to machine code. |
12 /// code. | |
13 /// | 12 /// |
14 //===----------------------------------------------------------------------===// | 13 //===----------------------------------------------------------------------===// |
15 | 14 |
16 #include "IceTranslator.h" | 15 #include "IceTranslator.h" |
17 | 16 |
18 #include "IceCfg.h" | 17 #include "IceCfg.h" |
19 #include "IceClFlags.h" | 18 #include "IceClFlags.h" |
20 #include "IceDefs.h" | 19 #include "IceDefs.h" |
21 #include "IceGlobalInits.h" | 20 #include "IceGlobalInits.h" |
22 #include "IceTargetLowering.h" | 21 #include "IceTargetLowering.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 void Translator::translateFcn(std::unique_ptr<Cfg> Func) { | 55 void Translator::translateFcn(std::unique_ptr<Cfg> Func) { |
57 Ctx->optQueueBlockingPush(std::move(Func)); | 56 Ctx->optQueueBlockingPush(std::move(Func)); |
58 } | 57 } |
59 | 58 |
60 void Translator::lowerGlobals( | 59 void Translator::lowerGlobals( |
61 std::unique_ptr<VariableDeclarationList> VariableDeclarations) { | 60 std::unique_ptr<VariableDeclarationList> VariableDeclarations) { |
62 EmitterWorkItem *Item = new EmitterWorkItem(getNextSequenceNumber(), | 61 EmitterWorkItem *Item = new EmitterWorkItem(getNextSequenceNumber(), |
63 VariableDeclarations.release()); | 62 VariableDeclarations.release()); |
64 Ctx->emitQueueBlockingPush(Item); | 63 Ctx->emitQueueBlockingPush(Item); |
65 } | 64 } |
OLD | NEW |