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

Side by Side Diff: src/IceTargetLoweringX8632.h

Issue 641193002: Introduce the notion of function addresses in Subzero. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nit in test. 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 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 ~TargetX8632() override {} 475 ~TargetX8632() override {}
476 template <typename T> void emitConstantPool() const; 476 template <typename T> void emitConstantPool() const;
477 }; 477 };
478 478
479 class TargetGlobalInitX8632 : public TargetGlobalInitLowering { 479 class TargetGlobalInitX8632 : public TargetGlobalInitLowering {
480 public: 480 public:
481 static TargetGlobalInitLowering *create(GlobalContext *Ctx) { 481 static TargetGlobalInitLowering *create(GlobalContext *Ctx) {
482 return new TargetGlobalInitX8632(Ctx); 482 return new TargetGlobalInitX8632(Ctx);
483 } 483 }
484 484
485 virtual void lower(const GlobalAddress &Addr, 485 virtual void lower(const VariableDeclaration &Var) final;
486 bool DisableTranslation) override;
487 486
488 protected: 487 protected:
489 TargetGlobalInitX8632(GlobalContext *Ctx); 488 TargetGlobalInitX8632(GlobalContext *Ctx);
490 489
491 private: 490 private:
492 TargetGlobalInitX8632(const TargetGlobalInitX8632 &) = delete; 491 TargetGlobalInitX8632(const TargetGlobalInitX8632 &) = delete;
493 TargetGlobalInitX8632 &operator=(const TargetGlobalInitX8632 &) = delete; 492 TargetGlobalInitX8632 &operator=(const TargetGlobalInitX8632 &) = delete;
494 ~TargetGlobalInitX8632() override {} 493 ~TargetGlobalInitX8632() override {}
495 }; 494 };
496 495
497 template <> void ConstantInteger32::emit(GlobalContext *Ctx) const; 496 template <> void ConstantInteger32::emit(GlobalContext *Ctx) const;
498 template <> void ConstantInteger64::emit(GlobalContext *Ctx) const; 497 template <> void ConstantInteger64::emit(GlobalContext *Ctx) const;
499 template <> void ConstantFloat::emit(GlobalContext *Ctx) const; 498 template <> void ConstantFloat::emit(GlobalContext *Ctx) const;
500 template <> void ConstantDouble::emit(GlobalContext *Ctx) const; 499 template <> void ConstantDouble::emit(GlobalContext *Ctx) const;
501 500
502 } // end of namespace Ice 501 } // end of namespace Ice
503 502
504 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H 503 #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