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

Side by Side Diff: src/IceInstMIPS32.h

Issue 1838753002: Subzero: Remove IceString. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes Created 4 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/IceInstARM32.cpp ('k') | src/IceInstMIPS32.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/IceInstMIPS32.h - MIPS32 machine instrs --*- C++ -*-=== // 1 //===- subzero/src/IceInstMIPS32.h - MIPS32 machine instrs --*- 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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 InstMIPS32Label() = delete; 301 InstMIPS32Label() = delete;
302 InstMIPS32Label(const InstMIPS32Label &) = delete; 302 InstMIPS32Label(const InstMIPS32Label &) = delete;
303 InstMIPS32Label &operator=(const InstMIPS32Label &) = delete; 303 InstMIPS32Label &operator=(const InstMIPS32Label &) = delete;
304 304
305 public: 305 public:
306 static InstMIPS32Label *create(Cfg *Func, TargetMIPS32 *Target) { 306 static InstMIPS32Label *create(Cfg *Func, TargetMIPS32 *Target) {
307 return new (Func->allocate<InstMIPS32Label>()) 307 return new (Func->allocate<InstMIPS32Label>())
308 InstMIPS32Label(Func, Target); 308 InstMIPS32Label(Func, Target);
309 } 309 }
310 uint32_t getEmitInstCount() const override { return 0; } 310 uint32_t getEmitInstCount() const override { return 0; }
311 IceString getName(const Cfg *Func) const; 311 GlobalString getLabelName() const { return Name; }
312 SizeT getNumber() const { return Number; } 312 SizeT getNumber() const { return Number; }
313 void emit(const Cfg *Func) const override; 313 void emit(const Cfg *Func) const override;
314 void emitIAS(const Cfg *Func) const override; 314 void emitIAS(const Cfg *Func) const override;
315 void dump(const Cfg *Func) const override; 315 void dump(const Cfg *Func) const override;
316 316
317 static bool classof(const Inst *Instr) { return isClassof(Instr, Label); } 317 static bool classof(const Inst *Instr) { return isClassof(Instr, Label); }
318 318
319 private: 319 private:
320 InstMIPS32Label(Cfg *Func, TargetMIPS32 *Target); 320 InstMIPS32Label(Cfg *Func, TargetMIPS32 *Target);
321 321
322 // RelocOffset *OffsetReloc = nullptr; 322 // RelocOffset *OffsetReloc = nullptr;
323
324 SizeT Number; // used for unique label generation. 323 SizeT Number; // used for unique label generation.
324 GlobalString Name;
325 }; 325 };
326 326
327 /// Direct branch instruction. 327 /// Direct branch instruction.
328 class InstMIPS32Br : public InstMIPS32 { 328 class InstMIPS32Br : public InstMIPS32 {
329 InstMIPS32Br() = delete; 329 InstMIPS32Br() = delete;
330 InstMIPS32Br(const InstMIPS32Br &) = delete; 330 InstMIPS32Br(const InstMIPS32Br &) = delete;
331 InstMIPS32Br &operator=(const InstMIPS32Br &) = delete; 331 InstMIPS32Br &operator=(const InstMIPS32Br &) = delete;
332 332
333 public: 333 public:
334 /// Create an unconditional branch to a node. 334 /// Create an unconditional branch to a node.
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 template <> void InstMIPS32Mfhi::emit(const Cfg *Func) const; 522 template <> void InstMIPS32Mfhi::emit(const Cfg *Func) const;
523 template <> void InstMIPS32Mtlo::emit(const Cfg *Func) const; 523 template <> void InstMIPS32Mtlo::emit(const Cfg *Func) const;
524 template <> void InstMIPS32Mthi::emit(const Cfg *Func) const; 524 template <> void InstMIPS32Mthi::emit(const Cfg *Func) const;
525 template <> void InstMIPS32Mult::emit(const Cfg *Func) const; 525 template <> void InstMIPS32Mult::emit(const Cfg *Func) const;
526 template <> void InstMIPS32Multu::emit(const Cfg *Func) const; 526 template <> void InstMIPS32Multu::emit(const Cfg *Func) const;
527 527
528 } // end of namespace MIPS32 528 } // end of namespace MIPS32
529 } // end of namespace Ice 529 } // end of namespace Ice
530 530
531 #endif // SUBZERO_SRC_ICEINSTMIPS32_H 531 #endif // SUBZERO_SRC_ICEINSTMIPS32_H
OLDNEW
« no previous file with comments | « src/IceInstARM32.cpp ('k') | src/IceInstMIPS32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698