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

Side by Side Diff: src/IceAssemblerX8632.cpp

Issue 1202253002: Includes module header first. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Changes All Subzero includes to match LLVM style guide. Created 5 years, 6 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/IceAssemblerX8632.cpp - Assembler for x86-32 ----------===// 1 //===- subzero/src/IceAssemblerX8632.cpp - Assembler for x86-32 ----------===//
2 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 2 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
3 // for details. All rights reserved. Use of this source code is governed by a 3 // for details. All rights reserved. Use of this source code is governed by a
4 // BSD-style license that can be found in the LICENSE file. 4 // BSD-style license that can be found in the LICENSE file.
5 // 5 //
6 // Modified by the Subzero authors. 6 // Modified by the Subzero authors.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 // 9 //
10 // The Subzero Code Generator 10 // The Subzero Code Generator
11 // 11 //
12 // This file is distributed under the University of Illinois Open Source 12 // This file is distributed under the University of Illinois Open Source
13 // License. See LICENSE.TXT for details. 13 // License. See LICENSE.TXT for details.
14 // 14 //
15 //===----------------------------------------------------------------------===// 15 //===----------------------------------------------------------------------===//
16 // 16 //
17 // This file implements the Assembler class for x86-32. 17 // This file implements the Assembler class for x86-32.
18 // 18 //
19 //===----------------------------------------------------------------------===// 19 //===----------------------------------------------------------------------===//
20 20
21 #include "IceAssemblerX8632.h" 21 #include "IceAssemblerX8632.h"
22
22 #include "IceCfg.h" 23 #include "IceCfg.h"
23 #include "IceOperand.h" 24 #include "IceOperand.h"
24 25
25 namespace Ice { 26 namespace Ice {
26 namespace X8632 { 27 namespace X8632 {
27 28
28 Address Address::ofConstPool(Assembler *Asm, const Constant *Imm) { 29 Address Address::ofConstPool(Assembler *Asm, const Constant *Imm) {
29 AssemblerFixup *Fixup = Asm->createFixup(llvm::ELF::R_386_32, Imm); 30 AssemblerFixup *Fixup = Asm->createFixup(llvm::ELF::R_386_32, Imm);
30 const RelocOffsetT Offset = 0; 31 const RelocOffsetT Offset = 0;
31 return Address::Absolute(Offset, Fixup); 32 return Address::Absolute(Offset, Fixup);
(...skipping 2516 matching lines...) Expand 10 before | Expand all | Expand 10 after
2548 assert(shifter == RegX8632::Encoded_Reg_ecx); 2549 assert(shifter == RegX8632::Encoded_Reg_ecx);
2549 (void)shifter; 2550 (void)shifter;
2550 if (Ty == IceType_i16) 2551 if (Ty == IceType_i16)
2551 emitOperandSizeOverride(); 2552 emitOperandSizeOverride();
2552 emitUint8(isByteSizedArithType(Ty) ? 0xD2 : 0xD3); 2553 emitUint8(isByteSizedArithType(Ty) ? 0xD2 : 0xD3);
2553 emitOperand(rm, operand); 2554 emitOperand(rm, operand);
2554 } 2555 }
2555 2556
2556 } // end of namespace X8632 2557 } // end of namespace X8632
2557 } // end of namespace Ice 2558 } // end of namespace Ice
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698