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

Side by Side Diff: src/IceInst.h

Issue 1169493002: Subzero: Improve/refactor folding loads into the next instruction. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes Created 5 years, 6 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/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 // This file declares the Inst class and its target-independent 10 // This file declares the Inst class and its target-independent
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 95
96 Variable *getDest() const { return Dest; } 96 Variable *getDest() const { return Dest; }
97 97
98 SizeT getSrcSize() const { return NumSrcs; } 98 SizeT getSrcSize() const { return NumSrcs; }
99 Operand *getSrc(SizeT I) const { 99 Operand *getSrc(SizeT I) const {
100 assert(I < getSrcSize()); 100 assert(I < getSrcSize());
101 return Srcs[I]; 101 return Srcs[I];
102 } 102 }
103 103
104 bool isLastUse(const Operand *Src) const; 104 bool isLastUse(const Operand *Src) const;
105 void spliceLivenessInfo(Inst *OrigInst, Inst *SpliceAssn);
105 106
106 // Returns a list of out-edges corresponding to a terminator 107 // Returns a list of out-edges corresponding to a terminator
107 // instruction, which is the last instruction of the block. 108 // instruction, which is the last instruction of the block.
108 virtual NodeList getTerminatorEdges() const { 109 virtual NodeList getTerminatorEdges() const {
109 // All valid terminator instructions override this method. For 110 // All valid terminator instructions override this method. For
110 // the default implementation, we assert in case some CfgNode 111 // the default implementation, we assert in case some CfgNode
111 // is constructed without a terminator instruction at the end. 112 // is constructed without a terminator instruction at the end.
112 llvm_unreachable( 113 llvm_unreachable(
113 "getTerminatorEdges() called on a non-terminator instruction"); 114 "getTerminatorEdges() called on a non-terminator instruction");
114 return NodeList(); 115 return NodeList();
(...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after
949 static void noteHead(Ice::Inst *, Ice::Inst *) {} 950 static void noteHead(Ice::Inst *, Ice::Inst *) {}
950 void deleteNode(Ice::Inst *) {} 951 void deleteNode(Ice::Inst *) {}
951 952
952 private: 953 private:
953 mutable ilist_half_node<Ice::Inst> Sentinel; 954 mutable ilist_half_node<Ice::Inst> Sentinel;
954 }; 955 };
955 956
956 } // end of namespace llvm 957 } // end of namespace llvm
957 958
958 #endif // SUBZERO_SRC_ICEINST_H 959 #endif // SUBZERO_SRC_ICEINST_H
OLDNEW
« no previous file with comments | « src/IceELFObjectWriter.cpp ('k') | src/IceInst.cpp » ('j') | src/IceTargetLoweringX8632.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698