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

Side by Side Diff: src/IceCfg.cpp

Issue 504963002: Subzero: Fixes for Hello World and bisection debugging. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix lit test prefix names. Created 6 years, 4 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 | « no previous file | src/IceClFlags.h » ('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/IceCfg.cpp - Control flow graph implementation ---------===// 1 //===- subzero/src/IceCfg.cpp - Control flow graph implementation ---------===//
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 implements the Cfg class, including constant pool 10 // This file implements the Cfg class, including constant pool
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 Str << "# $LLVM_BIN_PATH/llvm-mc" 302 Str << "# $LLVM_BIN_PATH/llvm-mc"
303 << " -arch=x86" 303 << " -arch=x86"
304 << " -x86-asm-syntax=intel" 304 << " -x86-asm-syntax=intel"
305 << " -filetype=obj" 305 << " -filetype=obj"
306 << " -o=MyObj.o" 306 << " -o=MyObj.o"
307 << "\n\n"; 307 << "\n\n";
308 } 308 }
309 Str << "\t.text\n"; 309 Str << "\t.text\n";
310 IceString MangledName = getContext()->mangleName(getFunctionName()); 310 IceString MangledName = getContext()->mangleName(getFunctionName());
311 if (Ctx->getFlags().FunctionSections) 311 if (Ctx->getFlags().FunctionSections)
312 Str << "\t.section\t.text." << MangledName << "\n"; 312 Str << "\t.section\t.text." << MangledName << ",\"ax\",@progbits\n";
313 if (!getInternal()) { 313 if (!getInternal()) {
314 Str << "\t.globl\t" << MangledName << "\n"; 314 Str << "\t.globl\t" << MangledName << "\n";
315 Str << "\t.type\t" << MangledName << ",@function\n"; 315 Str << "\t.type\t" << MangledName << ",@function\n";
316 } 316 }
317 for (NodeList::const_iterator I = Nodes.begin(), E = Nodes.end(); I != E; 317 for (NodeList::const_iterator I = Nodes.begin(), E = Nodes.end(); I != E;
318 ++I) { 318 ++I) {
319 (*I)->emit(this); 319 (*I)->emit(this);
320 } 320 }
321 Str << "\n"; 321 Str << "\n";
322 T_emit.printElapsedUs(Ctx, "emit()"); 322 T_emit.printElapsedUs(Ctx, "emit()");
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 for (NodeList::const_iterator I = Nodes.begin(), E = Nodes.end(); I != E; 368 for (NodeList::const_iterator I = Nodes.begin(), E = Nodes.end(); I != E;
369 ++I) { 369 ++I) {
370 (*I)->dump(this); 370 (*I)->dump(this);
371 } 371 }
372 if (getContext()->isVerbose(IceV_Instructions)) { 372 if (getContext()->isVerbose(IceV_Instructions)) {
373 Str << "}\n"; 373 Str << "}\n";
374 } 374 }
375 } 375 }
376 376
377 } // end of namespace Ice 377 } // end of namespace Ice
OLDNEW
« no previous file with comments | « no previous file | src/IceClFlags.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698