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

Side by Side Diff: src/IceInstARM32.h

Issue 1452293003: Add BL (immediate) and BLX (register) to ARM assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. 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 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after
1016 InstARM32Call(const InstARM32Call &) = delete; 1016 InstARM32Call(const InstARM32Call &) = delete;
1017 InstARM32Call &operator=(const InstARM32Call &) = delete; 1017 InstARM32Call &operator=(const InstARM32Call &) = delete;
1018 1018
1019 public: 1019 public:
1020 static InstARM32Call *create(Cfg *Func, Variable *Dest, Operand *CallTarget) { 1020 static InstARM32Call *create(Cfg *Func, Variable *Dest, Operand *CallTarget) {
1021 return new (Func->allocate<InstARM32Call>()) 1021 return new (Func->allocate<InstARM32Call>())
1022 InstARM32Call(Func, Dest, CallTarget); 1022 InstARM32Call(Func, Dest, CallTarget);
1023 } 1023 }
1024 Operand *getCallTarget() const { return getSrc(0); } 1024 Operand *getCallTarget() const { return getSrc(0); }
1025 void emit(const Cfg *Func) const override; 1025 void emit(const Cfg *Func) const override;
1026 void emitIAS(const Cfg *Func) const override;
1026 void dump(const Cfg *Func) const override; 1027 void dump(const Cfg *Func) const override;
1027 static bool classof(const Inst *Inst) { return isClassof(Inst, Call); } 1028 static bool classof(const Inst *Inst) { return isClassof(Inst, Call); }
1028 1029
1029 private: 1030 private:
1030 InstARM32Call(Cfg *Func, Variable *Dest, Operand *CallTarget); 1031 InstARM32Call(Cfg *Func, Variable *Dest, Operand *CallTarget);
1031 }; 1032 };
1032 1033
1033 /// Pop into a list of GPRs. Technically this can be predicated, but we don't 1034 /// Pop into a list of GPRs. Technically this can be predicated, but we don't
1034 /// need that functionality. 1035 /// need that functionality.
1035 class InstARM32Pop : public InstARM32 { 1036 class InstARM32Pop : public InstARM32 {
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
1346 // default implementations. Without this, there is the possibility of ODR 1347 // default implementations. Without this, there is the possibility of ODR
1347 // violations and link errors. 1348 // violations and link errors.
1348 1349
1349 template <> void InstARM32Ldr::emit(const Cfg *Func) const; 1350 template <> void InstARM32Ldr::emit(const Cfg *Func) const;
1350 template <> void InstARM32Movw::emit(const Cfg *Func) const; 1351 template <> void InstARM32Movw::emit(const Cfg *Func) const;
1351 template <> void InstARM32Movt::emit(const Cfg *Func) const; 1352 template <> void InstARM32Movt::emit(const Cfg *Func) const;
1352 1353
1353 } // end of namespace Ice 1354 } // end of namespace Ice
1354 1355
1355 #endif // SUBZERO_SRC_ICEINSTARM32_H 1356 #endif // SUBZERO_SRC_ICEINSTARM32_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698