Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: src/IceTranslator.cpp

Issue 1179313004: Fix a bug that would cause subzero to fail when --threads=0. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addresses codereview comments. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/IceTranslator.h ('k') | tests_lit/llvm2ice_tests/elf_container.ll » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « src/IceTranslator.h ('k') | tests_lit/llvm2ice_tests/elf_container.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698