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

Side by Side Diff: src/IceTargetLoweringX8632.cpp

Issue 828873002: Subzero: Start writing out some relocation sections (text) (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: review fixes Created 5 years, 11 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/IceTargetLowering.cpp ('k') | src/assembler.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/IceTargetLoweringX8632.cpp - x86-32 lowering -----------===// 1 //===- subzero/src/IceTargetLoweringX8632.cpp - x86-32 lowering -----------===//
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 TargetLoweringX8632 class, which 10 // This file implements the TargetLoweringX8632 class, which
11 // consists almost entirely of the lowering sequence for each 11 // consists almost entirely of the lowering sequence for each
12 // high-level instruction. 12 // high-level instruction.
13 // 13 //
14 //===----------------------------------------------------------------------===// 14 //===----------------------------------------------------------------------===//
15 15
16 #include "llvm/Support/CommandLine.h" 16 #include "llvm/Support/CommandLine.h"
17 #include "llvm/Support/MathExtras.h" 17 #include "llvm/Support/MathExtras.h"
18 18
19 #include "IceCfg.h" 19 #include "IceCfg.h"
20 #include "IceCfgNode.h" 20 #include "IceCfgNode.h"
21 #include "IceClFlags.h" 21 #include "IceClFlags.h"
22 #include "IceDefs.h" 22 #include "IceDefs.h"
23 #include "IceELFObjectWriter.h"
23 #include "IceGlobalInits.h" 24 #include "IceGlobalInits.h"
24 #include "IceInstX8632.h" 25 #include "IceInstX8632.h"
25 #include "IceLiveness.h" 26 #include "IceLiveness.h"
26 #include "IceOperand.h" 27 #include "IceOperand.h"
27 #include "IceRegistersX8632.h" 28 #include "IceRegistersX8632.h"
28 #include "IceTargetLoweringX8632.def" 29 #include "IceTargetLoweringX8632.def"
29 #include "IceTargetLoweringX8632.h" 30 #include "IceTargetLoweringX8632.h"
30 #include "IceUtils.h" 31 #include "IceUtils.h"
31 32
32 namespace Ice { 33 namespace Ice {
(...skipping 4684 matching lines...) Expand 10 before | Expand all | Expand 10 after
4717 } else if (IsConstant || IsExternal) 4718 } else if (IsConstant || IsExternal)
4718 Str << "\t.zero\t" << Size << "\n"; 4719 Str << "\t.zero\t" << Size << "\n";
4719 // Size is part of .comm. 4720 // Size is part of .comm.
4720 4721
4721 if (IsConstant || HasNonzeroInitializer || IsExternal) 4722 if (IsConstant || HasNonzeroInitializer || IsExternal)
4722 Str << "\t.size\t" << MangledName << ", " << Size << "\n"; 4723 Str << "\t.size\t" << MangledName << ", " << Size << "\n";
4723 // Size is part of .comm. 4724 // Size is part of .comm.
4724 } 4725 }
4725 4726
4726 } // end of namespace Ice 4727 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceTargetLowering.cpp ('k') | src/assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698