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

Side by Side Diff: src/IceTargetLoweringX8632.cpp

Issue 1551633002: Subzero. Refactoring. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addresses comments. Created 4 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/IceTargetLoweringX8632.h ('k') | src/IceTargetLoweringX8664.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 /// \file 10 /// \file
11 /// \brief Implements the TargetLoweringX8632 class, which consists almost 11 /// \brief Implements the TargetLoweringX8632 class, which consists almost
12 /// entirely of the lowering sequence for each high-level instruction. 12 /// entirely of the lowering sequence for each high-level instruction.
13 /// 13 ///
14 //===----------------------------------------------------------------------===// 14 //===----------------------------------------------------------------------===//
15 15
16 #include "IceTargetLoweringX8632.h" 16 #include "IceTargetLoweringX8632.h"
17 17
18 #include "IceTargetLoweringX8632Traits.h" 18 #include "IceTargetLoweringX8632Traits.h"
19 #include "IceTargetLoweringX86Base.h" 19 #include "IceTargetLoweringX86Base.h"
20 20
21 namespace X8632 {
22 std::unique_ptr<::Ice::TargetLowering> createTargetLowering(::Ice::Cfg *Func) {
23 return ::Ice::TargetX8632::create(Func);
24 }
25
26 std::unique_ptr<::Ice::TargetDataLowering>
27 createTargetDataLowering(::Ice::GlobalContext *Ctx) {
28 return ::Ice::TargetDataX8632::create(Ctx);
29 }
30
31 std::unique_ptr<::Ice::TargetHeaderLowering>
32 createTargetHeaderLowering(::Ice::GlobalContext *Ctx) {
33 return ::Ice::TargetHeaderX8632::create(Ctx);
34 }
35
36 void staticInit() { ::Ice::TargetX8632::staticInit(); }
37 } // end of namespace X8632
38
21 namespace Ice { 39 namespace Ice {
22 40
23 //------------------------------------------------------------------------------ 41 //------------------------------------------------------------------------------
24 // ______ ______ ______ __ ______ ______ 42 // ______ ______ ______ __ ______ ______
25 // /\__ _\ /\ == \ /\ __ \ /\ \ /\__ _\ /\ ___\ 43 // /\__ _\ /\ == \ /\ __ \ /\ \ /\__ _\ /\ ___\
26 // \/_/\ \/ \ \ __< \ \ __ \ \ \ \ \/_/\ \/ \ \___ \ 44 // \/_/\ \/ \ \ __< \ \ __ \ \ \ \ \/_/\ \/ \ \___ \
27 // \ \_\ \ \_\ \_\ \ \_\ \_\ \ \_\ \ \_\ \/\_____\ 45 // \ \_\ \ \_\ \_\ \ \_\ \_\ \ \_\ \ \_\ \/\_____\
28 // \/_/ \/_/ /_/ \/_/\/_/ \/_/ \/_/ \/_____/ 46 // \/_/ \/_/ /_/ \/_/\/_/ \/_/ \/_/ \/_____/
29 // 47 //
30 //------------------------------------------------------------------------------ 48 //------------------------------------------------------------------------------
(...skipping 963 matching lines...) Expand 10 before | Expand all | Expand 10 after
994 // case the high-level table has extra entries. 1012 // case the high-level table has extra entries.
995 #define X(tag, sizeLog2, align, elts, elty, str) \ 1013 #define X(tag, sizeLog2, align, elts, elty, str) \
996 static_assert(_table1_##tag == _table2_##tag, \ 1014 static_assert(_table1_##tag == _table2_##tag, \
997 "Inconsistency between ICETYPEX8632_TABLE and ICETYPE_TABLE"); 1015 "Inconsistency between ICETYPEX8632_TABLE and ICETYPE_TABLE");
998 ICETYPE_TABLE 1016 ICETYPE_TABLE
999 #undef X 1017 #undef X
1000 } // end of namespace dummy3 1018 } // end of namespace dummy3
1001 } // end of anonymous namespace 1019 } // end of anonymous namespace
1002 1020
1003 } // end of namespace Ice 1021 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceTargetLoweringX8632.h ('k') | src/IceTargetLoweringX8664.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698