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

Side by Side Diff: src/IceTargetLoweringX8632.h

Issue 624663002: Introduce model of global initializers in Subzero. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 6 years, 2 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/IceTargetLowering.h ('k') | src/IceTargetLoweringX8632.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/IceTargetLoweringX8632.h - x86-32 lowering ---*- C++ -*-===// 1 //===- subzero/src/IceTargetLoweringX8632.h - x86-32 lowering ---*- 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 // This file declares the TargetLoweringX8632 class, which 10 // This file declares the TargetLoweringX8632 class, which
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 TargetX8632 &operator=(const TargetX8632 &) = delete; 479 TargetX8632 &operator=(const TargetX8632 &) = delete;
480 ~TargetX8632() override {} 480 ~TargetX8632() override {}
481 template <typename T> void emitConstantPool() const; 481 template <typename T> void emitConstantPool() const;
482 }; 482 };
483 483
484 class TargetGlobalInitX8632 : public TargetGlobalInitLowering { 484 class TargetGlobalInitX8632 : public TargetGlobalInitLowering {
485 public: 485 public:
486 static TargetGlobalInitLowering *create(GlobalContext *Ctx) { 486 static TargetGlobalInitLowering *create(GlobalContext *Ctx) {
487 return new TargetGlobalInitX8632(Ctx); 487 return new TargetGlobalInitX8632(Ctx);
488 } 488 }
489 void lower(const IceString &Name, SizeT Align, bool IsInternal, bool IsConst, 489
490 bool IsZeroInitializer, SizeT Size, const char *Data, 490 virtual void lower(const GlobalAddress &Addr,
491 bool DisableTranslation) override; 491 bool DisableTranslation) override;
492 492
493 protected: 493 protected:
494 TargetGlobalInitX8632(GlobalContext *Ctx); 494 TargetGlobalInitX8632(GlobalContext *Ctx);
495 495
496 private: 496 private:
497 TargetGlobalInitX8632(const TargetGlobalInitX8632 &) = delete; 497 TargetGlobalInitX8632(const TargetGlobalInitX8632 &) = delete;
498 TargetGlobalInitX8632 &operator=(const TargetGlobalInitX8632 &) = delete; 498 TargetGlobalInitX8632 &operator=(const TargetGlobalInitX8632 &) = delete;
499 ~TargetGlobalInitX8632() override {} 499 ~TargetGlobalInitX8632() override {}
500 }; 500 };
501 501
502 template <> void ConstantInteger32::emit(GlobalContext *Ctx) const; 502 template <> void ConstantInteger32::emit(GlobalContext *Ctx) const;
503 template <> void ConstantInteger64::emit(GlobalContext *Ctx) const; 503 template <> void ConstantInteger64::emit(GlobalContext *Ctx) const;
504 template <> void ConstantFloat::emit(GlobalContext *Ctx) const; 504 template <> void ConstantFloat::emit(GlobalContext *Ctx) const;
505 template <> void ConstantDouble::emit(GlobalContext *Ctx) const; 505 template <> void ConstantDouble::emit(GlobalContext *Ctx) const;
506 506
507 } // end of namespace Ice 507 } // end of namespace Ice
508 508
509 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H 509 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H
OLDNEW
« no previous file with comments | « src/IceTargetLowering.h ('k') | src/IceTargetLoweringX8632.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698