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

Side by Side Diff: src/IceCfgNode.h

Issue 463563006: Subzero: Randomly insert nops. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Fix insertion strategy Created 6 years, 4 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/IceCfg.cpp ('k') | src/IceCfgNode.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/IceCfgNode.h - Control flow graph node -------*- C++ -*-===// 1 //===- subzero/src/IceCfgNode.h - Control flow graph node -------*- 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 CfgNode class, which represents a single 10 // This file declares the CfgNode class, which represents a single
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 void renumberInstructions(); 48 void renumberInstructions();
49 49
50 // Add a predecessor edge to the InEdges list for each of this 50 // Add a predecessor edge to the InEdges list for each of this
51 // node's successors. 51 // node's successors.
52 void computePredecessors(); 52 void computePredecessors();
53 53
54 void placePhiLoads(); 54 void placePhiLoads();
55 void placePhiStores(); 55 void placePhiStores();
56 void deletePhis(); 56 void deletePhis();
57 void doAddressOpt(); 57 void doAddressOpt();
58 void doNopInsertion();
58 void genCode(); 59 void genCode();
59 void livenessLightweight(); 60 void livenessLightweight();
60 bool liveness(Liveness *Liveness); 61 bool liveness(Liveness *Liveness);
61 void livenessPostprocess(LivenessMode Mode, Liveness *Liveness); 62 void livenessPostprocess(LivenessMode Mode, Liveness *Liveness);
62 void emit(Cfg *Func) const; 63 void emit(Cfg *Func) const;
63 void dump(Cfg *Func) const; 64 void dump(Cfg *Func) const;
64 65
65 private: 66 private:
66 CfgNode(Cfg *Func, SizeT LabelIndex, IceString Name); 67 CfgNode(Cfg *Func, SizeT LabelIndex, IceString Name);
67 CfgNode(const CfgNode &) LLVM_DELETED_FUNCTION; 68 CfgNode(const CfgNode &) LLVM_DELETED_FUNCTION;
68 CfgNode &operator=(const CfgNode &) LLVM_DELETED_FUNCTION; 69 CfgNode &operator=(const CfgNode &) LLVM_DELETED_FUNCTION;
69 Cfg *const Func; 70 Cfg *const Func;
70 const SizeT Number; // label index 71 const SizeT Number; // label index
71 IceString Name; // for dumping only 72 IceString Name; // for dumping only
72 bool HasReturn; // does this block need an epilog? 73 bool HasReturn; // does this block need an epilog?
73 NodeList InEdges; // in no particular order 74 NodeList InEdges; // in no particular order
74 NodeList OutEdges; // in no particular order 75 NodeList OutEdges; // in no particular order
75 PhiList Phis; // unordered set of phi instructions 76 PhiList Phis; // unordered set of phi instructions
76 InstList Insts; // ordered list of non-phi instructions 77 InstList Insts; // ordered list of non-phi instructions
77 }; 78 };
78 79
79 } // end of namespace Ice 80 } // end of namespace Ice
80 81
81 #endif // SUBZERO_SRC_ICECFGNODE_H 82 #endif // SUBZERO_SRC_ICECFGNODE_H
OLDNEW
« no previous file with comments | « src/IceCfg.cpp ('k') | src/IceCfgNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698