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

Side by Side Diff: src/IceInstARM32.h

Issue 1424863005: Handle MOV (immediate) and MOVT to load ARM global addresses. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix movw and movt Created 5 years, 1 month 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/IceInstARM32.h - ARM32 machine instructions --*- C++ -*-===// 1 //===- subzero/src/IceInstARM32.h - ARM32 machine instructions --*- C++ -*-===//
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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 static InstARM32UnaryopGPR *create(Cfg *Func, Variable *Dest, Operand *Src, 411 static InstARM32UnaryopGPR *create(Cfg *Func, Variable *Dest, Operand *Src,
412 CondARM32::Cond Predicate) { 412 CondARM32::Cond Predicate) {
413 return new (Func->allocate<InstARM32UnaryopGPR>()) 413 return new (Func->allocate<InstARM32UnaryopGPR>())
414 InstARM32UnaryopGPR(Func, Dest, Src, Predicate); 414 InstARM32UnaryopGPR(Func, Dest, Src, Predicate);
415 } 415 }
416 void emit(const Cfg *Func) const override { 416 void emit(const Cfg *Func) const override {
417 if (!BuildDefs::dump()) 417 if (!BuildDefs::dump())
418 return; 418 return;
419 emitUnaryopGPR(Opcode, this, Func, NeedsWidthSuffix); 419 emitUnaryopGPR(Opcode, this, Func, NeedsWidthSuffix);
420 } 420 }
421 void emitIAS(const Cfg *Func) const override;
421 void dump(const Cfg *Func) const override { 422 void dump(const Cfg *Func) const override {
422 if (!BuildDefs::dump()) 423 if (!BuildDefs::dump())
423 return; 424 return;
424 Ostream &Str = Func->getContext()->getStrDump(); 425 Ostream &Str = Func->getContext()->getStrDump();
425 dumpDest(Func); 426 dumpDest(Func);
426 Str << " = "; 427 Str << " = ";
427 dumpOpcodePred(Str, Opcode, getDest()->getType()); 428 dumpOpcodePred(Str, Opcode, getDest()->getType());
428 Str << " "; 429 Str << " ";
429 dumpSources(Func); 430 dumpSources(Func);
430 } 431 }
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after
1229 // default implementations. Without this, there is the possibility of ODR 1230 // default implementations. Without this, there is the possibility of ODR
1230 // violations and link errors. 1231 // violations and link errors.
1231 1232
1232 template <> void InstARM32Ldr::emit(const Cfg *Func) const; 1233 template <> void InstARM32Ldr::emit(const Cfg *Func) const;
1233 template <> void InstARM32Movw::emit(const Cfg *Func) const; 1234 template <> void InstARM32Movw::emit(const Cfg *Func) const;
1234 template <> void InstARM32Movt::emit(const Cfg *Func) const; 1235 template <> void InstARM32Movt::emit(const Cfg *Func) const;
1235 1236
1236 } // end of namespace Ice 1237 } // end of namespace Ice
1237 1238
1238 #endif // SUBZERO_SRC_ICEINSTARM32_H 1239 #endif // SUBZERO_SRC_ICEINSTARM32_H
OLDNEW
« src/IceAssemblerARM32.cpp ('K') | « src/IceAssemblerARM32.cpp ('k') | src/IceInstARM32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698