Use.cpp (276479) | Use.cpp (280031) |
---|---|
1//===-- Use.cpp - Implement the Use class ---------------------------------===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 38 unchanged lines hidden (view full) --- 47 48unsigned Use::getOperandNo() const { 49 return this - getUser()->op_begin(); 50} 51 52// Sets up the waymarking algorithm's tags for a series of Uses. See the 53// algorithm details here: 54// | 1//===-- Use.cpp - Implement the Use class ---------------------------------===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 38 unchanged lines hidden (view full) --- 47 48unsigned Use::getOperandNo() const { 49 return this - getUser()->op_begin(); 50} 51 52// Sets up the waymarking algorithm's tags for a series of Uses. See the 53// algorithm details here: 54// |
55// http://www.llvm.org/docs/ProgrammersManual.html#UserLayout | 55// http://www.llvm.org/docs/ProgrammersManual.html#the-waymarking-algorithm |
56// 57Use *Use::initTags(Use *const Start, Use *Stop) { 58 ptrdiff_t Done = 0; 59 while (Done < 20) { 60 if (Start == Stop--) 61 return Start; 62 static const PrevPtrTag tags[20] = { 63 fullStopTag, oneDigitTag, stopTag, oneDigitTag, oneDigitTag, --- 64 unchanged lines hidden --- | 56// 57Use *Use::initTags(Use *const Start, Use *Stop) { 58 ptrdiff_t Done = 0; 59 while (Done < 20) { 60 if (Start == Stop--) 61 return Start; 62 static const PrevPtrTag tags[20] = { 63 fullStopTag, oneDigitTag, stopTag, oneDigitTag, oneDigitTag, --- 64 unchanged lines hidden --- |