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

Side by Side Diff: src/IceTargetLoweringMIPS32.h

Issue 2313293002: [SubZero] Implement address optimization for MIPS (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 years, 3 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
OLDNEW
1 //===- subzero/src/IceTargetLoweringMIPS32.h - MIPS32 lowering ---*- C++-*-===// 1 //===- subzero/src/IceTargetLoweringMIPS32.h - MIPS32 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 /// \file 10 /// \file
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 static constexpr uint32_t CHAR_BITS = 8; 619 static constexpr uint32_t CHAR_BITS = 8;
620 static constexpr uint32_t INT32_BITS = 32; 620 static constexpr uint32_t INT32_BITS = 32;
621 size_t SpillAreaSizeBytes = 0; 621 size_t SpillAreaSizeBytes = 0;
622 size_t FixedAllocaSizeBytes = 0; 622 size_t FixedAllocaSizeBytes = 0;
623 size_t FixedAllocaAlignBytes = 0; 623 size_t FixedAllocaAlignBytes = 0;
624 size_t PreservedRegsSizeBytes = 0; 624 size_t PreservedRegsSizeBytes = 0;
625 625
626 private: 626 private:
627 ENABLE_MAKE_UNIQUE; 627 ENABLE_MAKE_UNIQUE;
628 628
629 OperandMIPS32Mem *formAddressingMode(Type Ty, Cfg *Func,
630 const CfgNode *LdStNode,
631 const Inst *LdSt, Operand *Base);
632
629 class ComputationTracker { 633 class ComputationTracker {
630 public: 634 public:
631 ComputationTracker() = default; 635 ComputationTracker() = default;
632 ~ComputationTracker() = default; 636 ~ComputationTracker() = default;
633 637
634 void forgetProducers() { KnownComputations.clear(); } 638 void forgetProducers() { KnownComputations.clear(); }
635 void recordProducers(CfgNode *Node); 639 void recordProducers(CfgNode *Node);
636 640
637 const Inst *getProducerOf(const Operand *Opnd) const { 641 const Inst *getProducerOf(const Operand *Opnd) const {
638 auto *Var = llvm::dyn_cast<Variable>(Opnd); 642 auto *Var = llvm::dyn_cast<Variable>(Opnd);
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 explicit TargetHeaderMIPS32(GlobalContext *Ctx); 730 explicit TargetHeaderMIPS32(GlobalContext *Ctx);
727 731
728 private: 732 private:
729 ~TargetHeaderMIPS32() = default; 733 ~TargetHeaderMIPS32() = default;
730 }; 734 };
731 735
732 } // end of namespace MIPS32 736 } // end of namespace MIPS32
733 } // end of namespace Ice 737 } // end of namespace Ice
734 738
735 #endif // SUBZERO_SRC_ICETARGETLOWERINGMIPS32_H 739 #endif // SUBZERO_SRC_ICETARGETLOWERINGMIPS32_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698