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

Side by Side Diff: src/IceTargetLoweringX8632.cpp

Issue 622443002: Subzero: Change llvm::OwningPtr to C++11's std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Remove ErrorOr for now Created 6 years, 2 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
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. It also implements 12 // high-level instruction. It also implements
13 // TargetX8632Fast::postLower() which does the simplest possible 13 // TargetX8632Fast::postLower() which does the simplest possible
14 // register allocation for the "fast" target. 14 // register allocation for the "fast" target.
15 // 15 //
16 //===----------------------------------------------------------------------===// 16 //===----------------------------------------------------------------------===//
17 17
18 #include "IceDefs.h" 18 #include "llvm/ADT/DenseMap.h"
19 #include "llvm/Support/CommandLine.h"
20 #include "llvm/Support/MathExtras.h"
21
19 #include "IceCfg.h" 22 #include "IceCfg.h"
20 #include "IceCfgNode.h" 23 #include "IceCfgNode.h"
21 #include "IceClFlags.h" 24 #include "IceClFlags.h"
25 #include "IceDefs.h"
22 #include "IceInstX8632.h" 26 #include "IceInstX8632.h"
23 #include "IceOperand.h" 27 #include "IceOperand.h"
24 #include "IceRegistersX8632.h" 28 #include "IceRegistersX8632.h"
25 #include "IceTargetLoweringX8632.def" 29 #include "IceTargetLoweringX8632.def"
26 #include "IceTargetLoweringX8632.h" 30 #include "IceTargetLoweringX8632.h"
27 #include "IceUtils.h" 31 #include "IceUtils.h"
28 #include "llvm/ADT/DenseMap.h"
29 #include "llvm/Support/MathExtras.h"
30 #include "llvm/Support/CommandLine.h"
31 32
32 namespace Ice { 33 namespace Ice {
33 34
34 namespace { 35 namespace {
35 36
36 // The following table summarizes the logic for lowering the fcmp 37 // The following table summarizes the logic for lowering the fcmp
37 // instruction. There is one table entry for each of the 16 conditions. 38 // instruction. There is one table entry for each of the 16 conditions.
38 // 39 //
39 // The first four columns describe the case when the operands are 40 // The first four columns describe the case when the operands are
40 // floating point scalar values. A comment in lowerFcmp() describes the 41 // floating point scalar values. A comment in lowerFcmp() describes the
(...skipping 4485 matching lines...) Expand 10 before | Expand all | Expand 10 after
4526 Str << "\t.align\t" << Align << "\n"; 4527 Str << "\t.align\t" << Align << "\n";
4527 Str << MangledName << ":\n"; 4528 Str << MangledName << ":\n";
4528 for (SizeT i = 0; i < Size; ++i) { 4529 for (SizeT i = 0; i < Size; ++i) {
4529 Str << "\t.byte\t" << (((unsigned)Data[i]) & 0xff) << "\n"; 4530 Str << "\t.byte\t" << (((unsigned)Data[i]) & 0xff) << "\n";
4530 } 4531 }
4531 Str << "\t.size\t" << MangledName << ", " << Size << "\n"; 4532 Str << "\t.size\t" << MangledName << ", " << Size << "\n";
4532 } 4533 }
4533 } 4534 }
4534 4535
4535 } // end of namespace Ice 4536 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceTargetLoweringX8632.h ('k') | src/IceTranslator.h » ('j') | src/PNaClTranslator.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698