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

Side by Side Diff: src/IceInst.h

Issue 1318553003: Compute the loop nest depth of each CfgNode and weight Variables by it. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 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
« no previous file with comments | « src/IceDefs.h ('k') | src/IceInst.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/IceInst.h - High-level instructions ----------*- C++ -*-===// 1 //===- subzero/src/IceInst.h - High-level 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 675 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 686
687 public: 687 public:
688 static InstStore *create(Cfg *Func, Operand *Data, Operand *Addr, 688 static InstStore *create(Cfg *Func, Operand *Data, Operand *Addr,
689 uint32_t Align = 1) { 689 uint32_t Align = 1) {
690 // TODO(kschimpf) Stop ignoring alignment specification. 690 // TODO(kschimpf) Stop ignoring alignment specification.
691 (void)Align; 691 (void)Align;
692 return new (Func->allocate<InstStore>()) InstStore(Func, Data, Addr); 692 return new (Func->allocate<InstStore>()) InstStore(Func, Data, Addr);
693 } 693 }
694 Operand *getAddr() const { return getSrc(1); } 694 Operand *getAddr() const { return getSrc(1); }
695 Operand *getData() const { return getSrc(0); } 695 Operand *getData() const { return getSrc(0); }
696 Variable *getRmwBeacon() const { return llvm::dyn_cast<Variable>(getSrc(2)); } 696 Variable *getRmwBeacon() const;
697 void setRmwBeacon(Variable *Beacon); 697 void setRmwBeacon(Variable *Beacon);
698 void dump(const Cfg *Func) const override; 698 void dump(const Cfg *Func) const override;
699 static bool classof(const Inst *Inst) { return Inst->getKind() == Store; } 699 static bool classof(const Inst *Inst) { return Inst->getKind() == Store; }
700 700
701 private: 701 private:
702 InstStore(Cfg *Func, Operand *Data, Operand *Addr); 702 InstStore(Cfg *Func, Operand *Data, Operand *Addr);
703 }; 703 };
704 704
705 /// Switch instruction. The single source operand is captured as 705 /// Switch instruction. The single source operand is captured as
706 /// getSrc(0). 706 /// getSrc(0).
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
982 static void noteHead(Ice::Inst *, Ice::Inst *) {} 982 static void noteHead(Ice::Inst *, Ice::Inst *) {}
983 void deleteNode(Ice::Inst *) {} 983 void deleteNode(Ice::Inst *) {}
984 984
985 private: 985 private:
986 mutable ilist_half_node<Ice::Inst> Sentinel; 986 mutable ilist_half_node<Ice::Inst> Sentinel;
987 }; 987 };
988 988
989 } // end of namespace llvm 989 } // end of namespace llvm
990 990
991 #endif // SUBZERO_SRC_ICEINST_H 991 #endif // SUBZERO_SRC_ICEINST_H
OLDNEW
« no previous file with comments | « src/IceDefs.h ('k') | src/IceInst.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698