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

Side by Side Diff: src/IceTargetLoweringX8632.cpp

Issue 1075363002: Add a basic TargetARM32 skeleton which knows nothing. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: remove comments Created 5 years, 8 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/assembler_arm32.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
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 } // end of namespace dummy3 259 } // end of namespace dummy3
260 260
261 } // end of anonymous namespace 261 } // end of anonymous namespace
262 262
263 TargetX8632::TargetX8632(Cfg *Func) 263 TargetX8632::TargetX8632(Cfg *Func)
264 : TargetLowering(Func), 264 : TargetLowering(Func),
265 InstructionSet(static_cast<X86InstructionSet>( 265 InstructionSet(static_cast<X86InstructionSet>(
266 Func->getContext()->getFlags().getTargetInstructionSet() - 266 Func->getContext()->getFlags().getTargetInstructionSet() -
267 TargetInstructionSet::X86InstructionSet_Begin)), 267 TargetInstructionSet::X86InstructionSet_Begin)),
268 IsEbpBasedFrame(false), NeedsStackAlignment(false), FrameSizeLocals(0), 268 IsEbpBasedFrame(false), NeedsStackAlignment(false), FrameSizeLocals(0),
269 SpillAreaSizeBytes(0), NextLabelNumber(0) { 269 SpillAreaSizeBytes(0) {
270 static_assert((X86InstructionSet::End - X86InstructionSet::Begin) == 270 static_assert((X86InstructionSet::End - X86InstructionSet::Begin) ==
271 (TargetInstructionSet::X86InstructionSet_End - 271 (TargetInstructionSet::X86InstructionSet_End -
272 TargetInstructionSet::X86InstructionSet_Begin), 272 TargetInstructionSet::X86InstructionSet_Begin),
273 "X86InstructionSet range different from TargetInstructionSet"); 273 "X86InstructionSet range different from TargetInstructionSet");
274 // TODO: Don't initialize IntegerRegisters and friends every time. 274 // TODO: Don't initialize IntegerRegisters and friends every time.
275 // Instead, initialize in some sort of static initializer for the 275 // Instead, initialize in some sort of static initializer for the
276 // class. 276 // class.
277 llvm::SmallBitVector IntegerRegisters(RegX8632::Reg_NUM); 277 llvm::SmallBitVector IntegerRegisters(RegX8632::Reg_NUM);
278 llvm::SmallBitVector IntegerRegistersI8(RegX8632::Reg_NUM); 278 llvm::SmallBitVector IntegerRegistersI8(RegX8632::Reg_NUM);
279 llvm::SmallBitVector FloatRegisters(RegX8632::Reg_NUM); 279 llvm::SmallBitVector FloatRegisters(RegX8632::Reg_NUM);
(...skipping 4593 matching lines...) Expand 10 before | Expand all | Expand 10 after
4873 case FT_Asm: 4873 case FT_Asm:
4874 case FT_Iasm: { 4874 case FT_Iasm: {
4875 OstreamLocker L(Ctx); 4875 OstreamLocker L(Ctx);
4876 emitConstantPool<PoolTypeConverter<float>>(Ctx); 4876 emitConstantPool<PoolTypeConverter<float>>(Ctx);
4877 emitConstantPool<PoolTypeConverter<double>>(Ctx); 4877 emitConstantPool<PoolTypeConverter<double>>(Ctx);
4878 } break; 4878 } break;
4879 } 4879 }
4880 } 4880 }
4881 4881
4882 } // end of namespace Ice 4882 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceTargetLoweringX8632.h ('k') | src/assembler_arm32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698