Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 //===- subzero/src/IceInstVarIter.h - Iterate over inst vars ----*- C++ -*-===// | 1 //===- subzero/src/IceInstVarIter.h - Iterate over inst vars ----*- 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 |
| 11 /// This file defines a common pattern for iterating over the variables of an | 11 /// \brief Defines a common pattern for iterating over the variables |
|
Jim Stichnoth
2015/12/01 18:41:16
Reflow to 80-col.
rkotlerimgtec
2015/12/02 01:32:48
Done.
| |
| 12 /// instruction. | 12 /// of an instruction. |
| 13 /// | 13 /// |
| 14 //===----------------------------------------------------------------------===// | 14 //===----------------------------------------------------------------------===// |
| 15 | 15 |
| 16 #ifndef SUBZERO_SRC_ICEINSTVARITER_H | 16 #ifndef SUBZERO_SRC_ICEINSTVARITER_H |
| 17 #define SUBZERO_SRC_ICEINSTVARITER_H | 17 #define SUBZERO_SRC_ICEINSTVARITER_H |
| 18 | 18 |
| 19 /// In Subzero, an Instr may have multiple Ice::Operands, and each Operand can | 19 /// In Subzero, an Instr may have multiple Ice::Operands, and each Operand can |
| 20 /// have zero, one, or more Variables. | 20 /// have zero, one, or more Variables. |
| 21 /// | 21 /// |
| 22 /// We found that a common pattern in Subzero is to iterate over all the | 22 /// We found that a common pattern in Subzero is to iterate over all the |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 164 #define IndexOfVarOperandInInst(Var) IsOnlyValidInFOREACH_VAR_IN_INST(I##Var) | 164 #define IndexOfVarOperandInInst(Var) IsOnlyValidInFOREACH_VAR_IN_INST(I##Var) |
| 165 #define FOREACH_VAR_IN_INST_BREAK \ | 165 #define FOREACH_VAR_IN_INST_BREAK \ |
| 166 if (true) { \ | 166 if (true) { \ |
| 167 Sz_Foreach_Break = 1; \ | 167 Sz_Foreach_Break = 1; \ |
| 168 continue; \ | 168 continue; \ |
| 169 } else { \ | 169 } else { \ |
| 170 } | 170 } |
| 171 #undef OnlyValidIn_FOREACH_VAR_IN_INSTS | 171 #undef OnlyValidIn_FOREACH_VAR_IN_INSTS |
| 172 | 172 |
| 173 #endif // SUBZERO_SRC_ICEINSTVARITER_H | 173 #endif // SUBZERO_SRC_ICEINSTVARITER_H |
| OLD | NEW |