llvm.org GIT mirror llvm / 6efffd3
Add natvis visualizers for endian types. This allows ulittle* and ubig* types to be visualized properly in VS. Differential Revision: http://reviews.llvm.org/D19339 Reviewed By: Aaron Ballman git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267050 91177308-0d34-0410-b5e6-96231b3b80d8 Zachary Turner 3 years ago
1 changed file(s) with 41 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
167167 *(($T1 *)(unsigned char *)storage.buffer)
168168
169169
170
171
176
177 {{little endian value = {*(($T1*)(unsigned char *)Value.buffer)} }}
178
179 (unsigned char *)Value.buffer,1
180 (unsigned char *)Value.buffer,2
181 (unsigned char *)Value.buffer,4
182 (unsigned char *)Value.buffer,8
183
184
185
186
188
189 {{ big endian value = {*(unsigned char *)Value.buffer} }}
190 {{ big endian value = {(($T1)(*(unsigned char *)Value.buffer) << 8)
191 | ($T1)(*((unsigned char *)Value.buffer+1))} }}
192 {{ big endian value = {(($T1)(*(unsigned char *)Value.buffer) << 24)
193 | (($T1)(*((unsigned char *)Value.buffer+1)) << 16)
194 | (($T1)(*((unsigned char *)Value.buffer+2)) << 8)
195 | ($T1)(*((unsigned char *)Value.buffer+3))} }}
196 {{ big endian value = {(($T1)(*(unsigned char *)Value.buffer) << 56)
197 | (($T1)(*((unsigned char *)Value.buffer+1)) << 48)
198 | (($T1)(*((unsigned char *)Value.buffer+2)) << 40)
199 | (($T1)(*((unsigned char *)Value.buffer+3)) << 32)
200 | (($T1)(*((unsigned char *)Value.buffer+4)) << 24)
201 | (($T1)(*((unsigned char *)Value.buffer+5)) << 16)
202 | (($T1)(*((unsigned char *)Value.buffer+6)) << 8)
203 | ($T1)(*((unsigned char *)Value.buffer+7))} }}
204
205 (unsigned char *)Value.buffer,1
206 (unsigned char *)Value.buffer,2
207 (unsigned char *)Value.buffer,4
208 (unsigned char *)Value.buffer,8
209
210
170211