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

Side by Side Diff: src/IceInst.h

Issue 802003003: Subzero: Clean up live range construction. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 6 years 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/IceCfgNode.cpp ('k') | src/IceOperand.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 // This file declares the Inst class and its target-independent 10 // This file declares the Inst class and its target-independent
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 FakeDef, // not part of LLVM/PNaCl bitcode 62 FakeDef, // not part of LLVM/PNaCl bitcode
63 FakeUse, // not part of LLVM/PNaCl bitcode 63 FakeUse, // not part of LLVM/PNaCl bitcode
64 FakeKill, // not part of LLVM/PNaCl bitcode 64 FakeKill, // not part of LLVM/PNaCl bitcode
65 Target // target-specific low-level ICE 65 Target // target-specific low-level ICE
66 // Anything >= Target is an InstTarget subclass. 66 // Anything >= Target is an InstTarget subclass.
67 }; 67 };
68 InstKind getKind() const { return Kind; } 68 InstKind getKind() const { return Kind; }
69 69
70 InstNumberT getNumber() const { return Number; } 70 InstNumberT getNumber() const { return Number; }
71 void renumber(Cfg *Func); 71 void renumber(Cfg *Func);
72 enum { NumberDeleted = -1, NumberSentinel = 0 }; 72 enum {
73 NumberDeleted = -1,
74 NumberSentinel = 0,
75 NumberInitial = 2,
76 NumberExtended = NumberInitial - 1
77 };
73 78
74 bool isDeleted() const { return Deleted; } 79 bool isDeleted() const { return Deleted; }
75 void setDeleted() { Deleted = true; } 80 void setDeleted() { Deleted = true; }
76 void deleteIfDead(); 81 void deleteIfDead();
77 82
78 bool hasSideEffects() const { return HasSideEffects; } 83 bool hasSideEffects() const { return HasSideEffects; }
79 84
80 bool isDestNonKillable() const { return IsDestNonKillable; } 85 bool isDestNonKillable() const { return IsDestNonKillable; }
81 void setDestNonKillable() { IsDestNonKillable = true; } 86 void setDestNonKillable() { IsDestNonKillable = true; }
82 87
(...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after
859 static void noteHead(Ice::Inst *, Ice::Inst *) {} 864 static void noteHead(Ice::Inst *, Ice::Inst *) {}
860 void deleteNode(Ice::Inst *) {} 865 void deleteNode(Ice::Inst *) {}
861 866
862 private: 867 private:
863 mutable ilist_half_node<Ice::Inst> Sentinel; 868 mutable ilist_half_node<Ice::Inst> Sentinel;
864 }; 869 };
865 870
866 } // end of namespace llvm 871 } // end of namespace llvm
867 872
868 #endif // SUBZERO_SRC_ICEINST_H 873 #endif // SUBZERO_SRC_ICEINST_H
OLDNEW
« no previous file with comments | « src/IceCfgNode.cpp ('k') | src/IceOperand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698