| 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 // This file defines the general driver class for translating ICE to | 10 // This file defines the general driver class for translating ICE to |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 << "' potentially conflicts with name '" << Name << "'.\n"; | 50 << "' potentially conflicts with name '" << Name << "'.\n"; |
| 51 return true; | 51 return true; |
| 52 } | 52 } |
| 53 return false; | 53 return false; |
| 54 } | 54 } |
| 55 | 55 |
| 56 void Translator::translateFcn(std::unique_ptr<Cfg> Func) { | 56 void Translator::translateFcn(std::unique_ptr<Cfg> Func) { |
| 57 Ctx->optQueueBlockingPush(std::move(Func)); | 57 Ctx->optQueueBlockingPush(std::move(Func)); |
| 58 } | 58 } |
| 59 | 59 |
| 60 void Translator::emitConstants() { | |
| 61 if (!getErrorStatus()) | |
| 62 TargetDataLowering::createLowering(Ctx)->lowerConstants(); | |
| 63 } | |
| 64 | |
| 65 void Translator::transferErrorCode() const { | |
| 66 if (getErrorStatus()) | |
| 67 Ctx->getErrorStatus()->assign(getErrorStatus().value()); | |
| 68 } | |
| 69 | |
| 70 void Translator::lowerGlobals( | 60 void Translator::lowerGlobals( |
| 71 std::unique_ptr<VariableDeclarationList> VariableDeclarations) { | 61 std::unique_ptr<VariableDeclarationList> VariableDeclarations) { |
| 72 EmitterWorkItem *Item = new EmitterWorkItem(getNextSequenceNumber(), | 62 EmitterWorkItem *Item = new EmitterWorkItem(getNextSequenceNumber(), |
| 73 VariableDeclarations.release()); | 63 VariableDeclarations.release()); |
| 74 Ctx->emitQueueBlockingPush(Item); | 64 Ctx->emitQueueBlockingPush(Item); |
| 75 } | 65 } |
| OLD | NEW |