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

Side by Side Diff: src/IceInst.h

Issue 1960393002: Subzero: Add necessary PNaCl files for standalone build. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero@master
Patch Set: make format Created 4 years, 7 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/IceCompiler.cpp ('k') | no next file » | 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 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after
1129 mutable ilist_half_node<Ice::Inst> Sentinel; 1129 mutable ilist_half_node<Ice::Inst> Sentinel;
1130 }; 1130 };
1131 1131
1132 } // end of namespace llvm 1132 } // end of namespace llvm
1133 1133
1134 namespace Ice { 1134 namespace Ice {
1135 1135
1136 inline InstList::iterator instToIterator(Inst *Instr) { 1136 inline InstList::iterator instToIterator(Inst *Instr) {
1137 #ifdef PNACL_LLVM 1137 #ifdef PNACL_LLVM
1138 return Instr; 1138 return Instr;
1139 #else // !PNACL_LLVM 1139 #else // !PNACL_LLVM
1140 return Instr->getIterator(); 1140 return Instr->getIterator();
1141 #endif // !PNACL_LLVM 1141 #endif // !PNACL_LLVM
1142 } 1142 }
1143 1143
1144 inline Inst *iteratorToInst(InstList::iterator Iter) { 1144 inline Inst *iteratorToInst(InstList::iterator Iter) { return &*Iter; }
1145 return &*Iter;
1146 }
1147 1145
1148 inline const Inst *iteratorToInst(InstList::const_iterator Iter) { 1146 inline const Inst *iteratorToInst(InstList::const_iterator Iter) {
1149 return &*Iter; 1147 return &*Iter;
1150 } 1148 }
1151 1149
1152 } // end of namespace Ice 1150 } // end of namespace Ice
1153 1151
1154 #endif // SUBZERO_SRC_ICEINST_H 1152 #endif // SUBZERO_SRC_ICEINST_H
OLDNEW
« no previous file with comments | « src/IceCompiler.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698