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

Side by Side Diff: src/IceTargetLoweringX8632.cpp

Issue 1641653004: Subzero: Make the register allocator more robust with -reg-use and -reg-exclude. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Test code accidentally left in Created 4 years, 10 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/IceTargetLoweringMIPS32.cpp ('k') | src/IceTargetLoweringX8664.cpp » ('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
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 llvm::array_lengthof(TableTypeX8632Attributes); 100 llvm::array_lengthof(TableTypeX8632Attributes);
101 101
102 const uint32_t TargetX8632Traits::X86_STACK_ALIGNMENT_BYTES = 16; 102 const uint32_t TargetX8632Traits::X86_STACK_ALIGNMENT_BYTES = 16;
103 const char *TargetX8632Traits::TargetName = "X8632"; 103 const char *TargetX8632Traits::TargetName = "X8632";
104 104
105 template <> 105 template <>
106 std::array<llvm::SmallBitVector, RCX86_NUM> 106 std::array<llvm::SmallBitVector, RCX86_NUM>
107 TargetX86Base<X8632::Traits>::TypeToRegisterSet = {{}}; 107 TargetX86Base<X8632::Traits>::TypeToRegisterSet = {{}};
108 108
109 template <> 109 template <>
110 std::array<llvm::SmallBitVector, RCX86_NUM>
111 TargetX86Base<X8632::Traits>::TypeToRegisterSetUnfiltered = {{}};
112
113 template <>
110 std::array<llvm::SmallBitVector, 114 std::array<llvm::SmallBitVector,
111 TargetX86Base<X8632::Traits>::Traits::RegisterSet::Reg_NUM> 115 TargetX86Base<X8632::Traits>::Traits::RegisterSet::Reg_NUM>
112 TargetX86Base<X8632::Traits>::RegisterAliases = {{}}; 116 TargetX86Base<X8632::Traits>::RegisterAliases = {{}};
113 117
114 template <> 118 template <>
115 FixupKind TargetX86Base<X8632::Traits>::PcRelFixup = 119 FixupKind TargetX86Base<X8632::Traits>::PcRelFixup =
116 TargetX86Base<X8632::Traits>::Traits::FK_PcRel; 120 TargetX86Base<X8632::Traits>::Traits::FK_PcRel;
117 121
118 template <> 122 template <>
119 FixupKind TargetX86Base<X8632::Traits>::AbsFixup = 123 FixupKind TargetX86Base<X8632::Traits>::AbsFixup =
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 #define X(tag, sizeLog2, align, elts, elty, str, rcstr) \ 453 #define X(tag, sizeLog2, align, elts, elty, str, rcstr) \
450 static_assert(_table1_##tag == _table2_##tag, \ 454 static_assert(_table1_##tag == _table2_##tag, \
451 "Inconsistency between ICETYPEX8632_TABLE and ICETYPE_TABLE"); 455 "Inconsistency between ICETYPEX8632_TABLE and ICETYPE_TABLE");
452 ICETYPE_TABLE 456 ICETYPE_TABLE
453 #undef X 457 #undef X
454 } // end of namespace dummy3 458 } // end of namespace dummy3
455 } // end of anonymous namespace 459 } // end of anonymous namespace
456 460
457 } // end of namespace X8632 461 } // end of namespace X8632
458 } // end of namespace Ice 462 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceTargetLoweringMIPS32.cpp ('k') | src/IceTargetLoweringX8664.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698