OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |