| OLD | NEW |
| 1 //===- subzero/src/IceThreading.cpp - Threading function definitions ------===// | 1 //===- subzero/src/IceThreading.cpp - Threading function definitions ------===// |
| 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 threading-related functions. | 10 // This file defines threading-related functions. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 std::unique_ptr<Assembler> EmitterWorkItem::getAsm() { | 38 std::unique_ptr<Assembler> EmitterWorkItem::getAsm() { |
| 39 assert(getKind() == WI_Asm); | 39 assert(getKind() == WI_Asm); |
| 40 return std::move(Function); | 40 return std::move(Function); |
| 41 } | 41 } |
| 42 | 42 |
| 43 std::unique_ptr<Cfg> EmitterWorkItem::getCfg() { | 43 std::unique_ptr<Cfg> EmitterWorkItem::getCfg() { |
| 44 assert(getKind() == WI_Cfg); | 44 assert(getKind() == WI_Cfg); |
| 45 return std::move(RawFunc); | 45 return std::move(RawFunc); |
| 46 } | 46 } |
| 47 | 47 |
| 48 void EmitterWorkItem::setProfilerInits( |
| 49 std::unique_ptr<VariableDeclarationList> ProfInits) { |
| 50 assert(getKind() == WI_Asm || getKind() == WI_Cfg); |
| 51 ProfilerInits = std::move(ProfInits); |
| 52 } |
| 53 |
| 54 std::unique_ptr<VariableDeclarationList> EmitterWorkItem::getProfilerInits() { |
| 55 assert(getKind() == WI_Asm || getKind() == WI_Cfg); |
| 56 return std::move(ProfilerInits); |
| 57 } |
| 58 |
| 48 } // end of namespace Ice | 59 } // end of namespace Ice |
| OLD | NEW |