llvm.org GIT mirror llvm / 7362ce0
eliminate all 80-col violations that I have introduced in my recent checkins (and some others more) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80304 91177308-0d34-0410-b5e6-96231b3b80d8 Gabor Greif 10 years ago
14 changed file(s) with 50 addition(s) and 30 deletion(s). Raw diff Collapse all Expand all
232232 return L1;
233233 }
234234
235 class member_iterator : public std::iterator ElemTy, ptrdiff_t> {
235 class member_iterator : public std::iterator
236 ElemTy, ptrdiff_t> {
236237 typedef std::iterator super;
237238 const ECValue *Node;
238239 friend class EquivalenceClasses;
4141 class SetType = llvm::SmallPtrSet::NodeType*, 8>,
4242 bool ExtStorage = false,
4343 class GT = GraphTraits >
44 class po_iterator : public std::iterator typename GT::NodeType, ptrdiff_t>,
44 class po_iterator : public std::iterator
45 typename GT::NodeType, ptrdiff_t>,
4546 public po_iterator_storage {
46 typedef std::iterator typename GT::NodeType, ptrdiff_t> super;
47 typedef std::iterator
48 typename GT::NodeType, ptrdiff_t> super;
4749 typedef typename GT::NodeType NodeType;
4850 typedef typename GT::ChildIteratorType ChildItTy;
4951
3333 ///
3434 template >
3535 class scc_iterator
36 : public std::iterator std::vector, ptrdiff_t> {
36 : public std::iterator
37 std::vector, ptrdiff_t> {
3738 typedef typename GT::NodeType NodeType;
3839 typedef typename GT::ChildIteratorType ChildItTy;
3940 typedef std::vector SccTy;
40 typedef std::iterator std::vector, ptrdiff_t> super;
41 typedef std::iterator
42 std::vector, ptrdiff_t> super;
4143 typedef typename super::reference reference;
4244 typedef typename super::pointer pointer;
4345
143143
144144 public:
145145 typedef ilist_traits Traits;
146 typedef std::iterator NodeTy, ptrdiff_t> super;
146 typedef std::iterator
147 NodeTy, ptrdiff_t> super;
147148
148149 typedef typename super::value_type value_type;
149150 typedef typename super::difference_type difference_type;
157157 void dump() const;
158158
159159 /// Define an iterator for alias sets... this is just a forward iterator.
160 class iterator : public std::iterator PointerRec, ptrdiff_t> {
160 class iterator : public std::iterator
161 PointerRec, ptrdiff_t> {
161162 PointerRec *CurNode;
162163 public:
163164 explicit iterator(PointerRec *CN = 0) : CurNode(CN) {}
2121
2222 class Constant;
2323
24 class constant_iterator : public std::iterator const Constant, ptrdiff_t> {
24 class constant_iterator : public std::iterator
25 const Constant, ptrdiff_t> {
2526 const_inst_iterator InstI; // Method instruction iterator
2627 unsigned OpIdx; // Operand index
2728
232232 };
233233
234234 typedef IntervalIterator function_interval_iterator;
235 typedef IntervalIterator interval_part_interval_iterator;
235 typedef IntervalIterator
236 interval_part_interval_iterator;
236237
237238
238239 inline function_interval_iterator intervals_begin(Function *F,
267267 }
268268 friend class MachineRegisterInfo;
269269 public:
270 typedef std::iterator::reference reference;
271 typedef std::iterator MachineInstr, ptrdiff_t>::pointer pointer;
270 typedef std::iterator
271 MachineInstr, ptrdiff_t>::reference reference;
272 typedef std::iterator
273 MachineInstr, ptrdiff_t>::pointer pointer;
272274
273275 defusechain_iterator(const defusechain_iterator &I) : Op(I.Op) {}
274276 defusechain_iterator() : Op(0) {}
433433
434434 class ScheduleDAG {
435435 public:
436 MachineBasicBlock *BB; // The block in which to insert instructions.
437 MachineBasicBlock::iterator InsertPos;// The position to insert instructions.
436 MachineBasicBlock *BB; // The block in which to insert instructions
437 MachineBasicBlock::iterator InsertPos;// The position to insert instructions
438438 const TargetMachine &TM; // Target processor
439439 const TargetInstrInfo *TII; // Target instruction information
440440 const TargetRegisterInfo *TRI; // Target processor register info
505505 ///
506506 virtual void Schedule() = 0;
507507
508 /// ForceUnitLatencies - Return true if all scheduling edges should be given a
509 /// latency value of one. The default is to return false; schedulers may
508 /// ForceUnitLatencies - Return true if all scheduling edges should be given
509 /// a latency value of one. The default is to return false; schedulers may
510510 /// override this as needed.
511511 virtual bool ForceUnitLatencies() const { return false; }
512512
534534 void EmitLiveInCopies(MachineBasicBlock *MBB);
535535 };
536536
537 class SUnitIterator : public std::iterator SUnit, ptrdiff_t> {
537 class SUnitIterator : public std::iterator
538 SUnit, ptrdiff_t> {
538539 SUnit *Node;
539540 unsigned Operand;
540541
546547 bool operator!=(const SUnitIterator& x) const { return !operator==(x); }
547548
548549 const SUnitIterator &operator=(const SUnitIterator &I) {
549 assert(I.Node == Node && "Cannot assign iterators to two different nodes!");
550 assert(I.Node==Node && "Cannot assign iterators to two different nodes!");
550551 Operand = I.Operand;
551552 return *this;
552553 }
290290 EXTRACT_SUBVECTOR,
291291
292292 /// VECTOR_SHUFFLE(VEC1, VEC2) - Returns a vector, of the same type as
293 /// VEC1/VEC2. A VECTOR_SHUFFLE node also contains an array of constant int
293 /// VEC1/VEC2. A VECTOR_SHUFFLE node also contains an array of constant int
294294 /// values that indicate which value (or undef) each result element will
295295 /// get. These constant ints are accessible through the
296296 /// ShuffleVectorSDNode class. This is quite similar to the Altivec
11331133 }
11341134 friend class SDNode;
11351135 public:
1136 typedef std::iterator::reference reference;
1137 typedef std::iterator SDUse, ptrdiff_t>::pointer pointer;
1136 typedef std::iterator
1137 SDUse, ptrdiff_t>::reference reference;
1138 typedef std::iterator
1139 SDUse, ptrdiff_t>::pointer pointer;
11381140
11391141 use_iterator(const use_iterator &I) : Op(I.Op) {}
11401142 use_iterator() : Op(0) {}
23522354 };
23532355
23542356
2355 class SDNodeIterator : public std::iterator SDNode, ptrdiff_t> {
2357 class SDNodeIterator : public std::iterator
2358 SDNode, ptrdiff_t> {
23562359 SDNode *Node;
23572360 unsigned Operand;
23582361
240240
241241
242242 /// NodeChildIterator - Another auxiliary class needed by GraphTraits.
243 class NodeChildIterator : public std::iterator {
243 class NodeChildIterator : public
244 std::iterator {
244245 typedef NodeChildIterator ThisType;
245246 typedef Node::container_type::iterator iterator;
246247
2020
2121 namespace llvm {
2222
23 //===--------------------------------------------------------------------===//
23 //===----------------------------------------------------------------------===//
2424 // BasicBlock pred_iterator definition
25 //===--------------------------------------------------------------------===//
25 //===----------------------------------------------------------------------===//
2626
2727 template // Predecessor Iterator
28 class PredIterator : public std::iterator _Ptr, ptrdiff_t> {
28 class PredIterator : public std::iterator
29 _Ptr, ptrdiff_t> {
2930 typedef std::iterator super;
3031 _USE_iterator It;
3132 public:
7879
7980
8081
81 //===--------------------------------------------------------------------===//
82 //===----------------------------------------------------------------------===//
8283 // BasicBlock succ_iterator definition
83 //===--------------------------------------------------------------------===//
84 //===----------------------------------------------------------------------===//
8485
8586 template // Successor Iterator
86 class SuccIterator : public std::iterator BB_, ptrdiff_t> {
87 class SuccIterator : public std::iterator
88 BB_, ptrdiff_t> {
8789 const Term_ Term;
8890 unsigned idx;
8991 typedef std::iterator super;
2121 template
2222 class generic_gep_type_iterator
2323 : public std::iterator {
24 typedef std::iterator const Type *, ptrdiff_t> super;
24 typedef std::iterator
25 const Type *, ptrdiff_t> super;
2526
2627 ItTy OpIt;
2728 const Type *CurTy;
157157
158158
159159 template // UserTy == 'User' or 'const User'
160 class value_use_iterator : public std::iterator UserTy*, ptrdiff_t> {
160 class value_use_iterator : public std::iterator
161 UserTy*, ptrdiff_t> {
161162 typedef std::iterator super;
162163 typedef value_use_iterator _Self;
163164