<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Verdana" size="2"><span style="font-size:10pt;">
<div>Hi,</div>
<div> </div>
<div>Is it possible to give an instruction metadata that accepts function argument as operand? The 2 functions are in the same module so the metadata operand can be resolved. Here is how I imagine it should look like:</div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
<div style="padding-left:36pt;"><font face="Courier New">define i32 @f(i32 %v) {</font></div>
<div style="padding-left:36pt;"><font face="Courier New"> %v0 = call i32 @f1 (i32 %v, metadata !0) ; this ok</font></div>
<div style="padding-left:36pt;"><font face="Courier New"> ret i32 %v0</font></div>
<div style="padding-left:36pt;"><font face="Courier New">}</font></div>
<div style="padding-left:36pt;"><font face="Courier New"> </font></div>
<div style="padding-left:36pt;"><font face="Courier New">define i32 @f1 (i32 %v, metadata %md) { ; and this is ok too</font></div>
<div style="padding-left:36pt;"><font face="Courier New"> %t0 = add i32 %v, 1, !md !%md </font></div>
<div style="padding-left:36pt;"><font face="Courier New">; ^ here it says it expects an integer</font></div>
<div style="padding-left:36pt;"><font face="Courier New"> ret i32 %t0</font></div>
<div style="padding-left:36pt;"><font face="Courier New">}</font></div>
<div style="padding-left:36pt;"><font face="Courier New"> </font></div>
<div style="padding-left:36pt;"><font face="Courier New">!0 = metadata !{i32 4}</font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
<div>Thanks, Anat </div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
</span></font>
<p>---------------------------------------------------------------------<br>
Intel Israel (74) Limited</p>
<p>This e-mail and any attachments may contain confidential material for<br>
the sole use of the intended recipient(s). Any review or distribution<br>
by others is strictly prohibited. If you are not the intended<br>
recipient, please contact the sender and delete all copies.</p></body>
</html>