<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">I'm not very happy with the way the
high-water mark is handled with the current proposal, so I like to
propose alternative. Rather that a stack of positions, we keep a
dictionary of named positions.<br>
<br>
So this stack based example:<br>
</div>
<blockquote cite="mid:504A5F4A.2040009@codeaurora.org" type="cite">
<blockquote>; CHECK-PUSH: <br>
; CHECK: memw(##a) <br>
; CHECK-POP: <br>
; CHECK: memw(##b) <br>
; CHECK-HWM:<br>
<br>
%0 = load i32* @a, align 4 <br>
%1 = load i32* @b, align 4 <br>
<br>
; CHECK: memw(##a) <br>
<br>
%2 = load i32* @a, align 4 <br>
</blockquote>
</blockquote>
<br>
becomes:<br>
<blockquote><tt>
; CHECK-SAVE-POS: foo</tt><br>
<tt>
; CHECK: memw(##a)</tt><br>
<tt>
; CHECK-RESTORE-POS: foo</tt><br>
<tt>
; CHECK: memw(##b)</tt><br>
<tt>
; CHECK-RESTORE-POS: ^</tt><br>
<tt>
</tt><br>
<tt>
%0 = load i32* @a, align 4</tt><br>
<tt>
%1 = load i32* @b, align 4</tt><br>
<br>
<tt>
; CHECK: memw(##a)</tt><br>
<br>
<tt>
%2 = load i32* @a, align 4</tt><br>
</blockquote>
<tt><br>
The name '^' used in the second CHECK-RESTORE-POS is a special
name that refers to the high water mark. I think this API is
conceptually simpler, a little more flexible.<br>
<br>
See attached patch for implementation details.<br>
<br>
Matthew C.</tt><br>
<pre class="moz-signature" cols="72">
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation</pre>
</body>
</html>