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

Side by Side Diff: src/IceTargetLowering.cpp

Issue 944333002: Subzero: Update tests and build scripts for sandboxing. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: More code review changes Created 5 years, 9 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.h ('k') | src/IceTargetLoweringX8632.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/IceTargetLowering.cpp - Basic lowering implementation --===// 1 //===- subzero/src/IceTargetLowering.cpp - Basic lowering 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 skeleton of the TargetLowering class, 10 // This file implements the skeleton of the TargetLowering class,
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 return IceTargetARM64::create(Func); 98 return IceTargetARM64::create(Func);
99 #endif 99 #endif
100 Func->setError("Unsupported target"); 100 Func->setError("Unsupported target");
101 return nullptr; 101 return nullptr;
102 } 102 }
103 103
104 TargetLowering::TargetLowering(Cfg *Func) 104 TargetLowering::TargetLowering(Cfg *Func)
105 : Func(Func), Ctx(Func->getContext()), 105 : Func(Func), Ctx(Func->getContext()),
106 RandomizeRegisterAllocation(CLRandomizeRegisterAllocation), 106 RandomizeRegisterAllocation(CLRandomizeRegisterAllocation),
107 HasComputedFrame(false), CallsReturnsTwice(false), StackAdjustment(0), 107 HasComputedFrame(false), CallsReturnsTwice(false), StackAdjustment(0),
108 Context() {} 108 Context(), SnapshotStackAdjustment(0) {}
109 109
110 std::unique_ptr<Assembler> TargetLowering::createAssembler(TargetArch Target, 110 std::unique_ptr<Assembler> TargetLowering::createAssembler(TargetArch Target,
111 Cfg *Func) { 111 Cfg *Func) {
112 // These statements can be #ifdef'd to specialize the assembler 112 // These statements can be #ifdef'd to specialize the assembler
113 // to a subset of the available targets. TODO: use CRTP. 113 // to a subset of the available targets. TODO: use CRTP.
114 if (Target == Target_X8632) 114 if (Target == Target_X8632)
115 return std::unique_ptr<Assembler>(new x86::AssemblerX86()); 115 return std::unique_ptr<Assembler>(new x86::AssemblerX86());
116 Func->setError("Unsupported target"); 116 Func->setError("Unsupported target");
117 return nullptr; 117 return nullptr;
118 } 118 }
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 if (Target == Target_ARM64) 269 if (Target == Target_ARM64)
270 return std::unique_ptr<TargetDataLowering>(TargetDataARM64::create(Ctx)); 270 return std::unique_ptr<TargetDataLowering>(TargetDataARM64::create(Ctx));
271 #endif 271 #endif
272 llvm_unreachable("Unsupported target"); 272 llvm_unreachable("Unsupported target");
273 return nullptr; 273 return nullptr;
274 } 274 }
275 275
276 TargetDataLowering::~TargetDataLowering() {} 276 TargetDataLowering::~TargetDataLowering() {}
277 277
278 } // end of namespace Ice 278 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceTargetLowering.h ('k') | src/IceTargetLoweringX8632.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698