Deleted Added
full compact
MachineRegisterInfo.h (203954) MachineRegisterInfo.h (204792)
1//===-- llvm/CodeGen/MachineRegisterInfo.h ----------------------*- C++ -*-===//
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//===----------------------------------------------------------------------===//

--- 101 unchanged lines hidden (view full) ---

110 return use_iterator(getRegUseDefListHead(RegNo));
111 }
112 static use_iterator use_end() { return use_iterator(0); }
113
114 /// use_empty - Return true if there are no instructions using the specified
115 /// register.
116 bool use_empty(unsigned RegNo) const { return use_begin(RegNo) == use_end(); }
117
1//===-- llvm/CodeGen/MachineRegisterInfo.h ----------------------*- C++ -*-===//
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//===----------------------------------------------------------------------===//

--- 101 unchanged lines hidden (view full) ---

110 return use_iterator(getRegUseDefListHead(RegNo));
111 }
112 static use_iterator use_end() { return use_iterator(0); }
113
114 /// use_empty - Return true if there are no instructions using the specified
115 /// register.
116 bool use_empty(unsigned RegNo) const { return use_begin(RegNo) == use_end(); }
117
118 /// hasOneUse - Return true if there is exactly one instruction using the
119 /// specified register.
120 bool hasOneUse(unsigned RegNo) const;
121
118 /// use_nodbg_iterator/use_nodbg_begin/use_nodbg_end - Walk all uses of the
119 /// specified register, skipping those marked as Debug.
120 typedef defusechain_iterator<true,false,true> use_nodbg_iterator;
121 use_nodbg_iterator use_nodbg_begin(unsigned RegNo) const {
122 return use_nodbg_iterator(getRegUseDefListHead(RegNo));
123 }
124 static use_nodbg_iterator use_nodbg_end() { return use_nodbg_iterator(0); }
125
126 /// use_nodbg_empty - Return true if there are no non-Debug instructions
127 /// using the specified register.
128 bool use_nodbg_empty(unsigned RegNo) const {
129 return use_nodbg_begin(RegNo) == use_nodbg_end();
130 }
131
122 /// use_nodbg_iterator/use_nodbg_begin/use_nodbg_end - Walk all uses of the
123 /// specified register, skipping those marked as Debug.
124 typedef defusechain_iterator<true,false,true> use_nodbg_iterator;
125 use_nodbg_iterator use_nodbg_begin(unsigned RegNo) const {
126 return use_nodbg_iterator(getRegUseDefListHead(RegNo));
127 }
128 static use_nodbg_iterator use_nodbg_end() { return use_nodbg_iterator(0); }
129
130 /// use_nodbg_empty - Return true if there are no non-Debug instructions
131 /// using the specified register.
132 bool use_nodbg_empty(unsigned RegNo) const {
133 return use_nodbg_begin(RegNo) == use_nodbg_end();
134 }
135
136 /// hasOneNonDBGUse - Return true if there is exactly one non-Debug
137 /// instruction using the specified register.
138 bool hasOneNonDBGUse(unsigned RegNo) const;
139
132 /// replaceRegWith - Replace all instances of FromReg with ToReg in the
133 /// machine function. This is like llvm-level X->replaceAllUsesWith(Y),
134 /// except that it also changes any definitions of the register as well.
135 void replaceRegWith(unsigned FromReg, unsigned ToReg);
136
137 /// getRegUseDefListHead - Return the head pointer for the register use/def
138 /// list for the specified virtual or physical register.
139 MachineOperand *&getRegUseDefListHead(unsigned RegNo) {

--- 216 unchanged lines hidden ---
140 /// replaceRegWith - Replace all instances of FromReg with ToReg in the
141 /// machine function. This is like llvm-level X->replaceAllUsesWith(Y),
142 /// except that it also changes any definitions of the register as well.
143 void replaceRegWith(unsigned FromReg, unsigned ToReg);
144
145 /// getRegUseDefListHead - Return the head pointer for the register use/def
146 /// list for the specified virtual or physical register.
147 MachineOperand *&getRegUseDefListHead(unsigned RegNo) {

--- 216 unchanged lines hidden ---