<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Dear All</p>
<p>I have some questions about how to use patchpoint intrinsic:<br>
</p>
<p>1- The function that is provided as argument to the intrinsic call, where does it belong? I'm making a pass to change a given IR file and add call to patchpoint. Where should I put this function? In the pass or in the same IR file or in another IR and include
it or what?<br>
</p>
<p>2- When actually this code is patched into the original code and executed? Upon some condition or signal or it's patched by default whenever it's met in code? If it's patched automatically, what is its advantage then?<br>
</p>
<p>Thanks in advance.<br>
</p>
<p><br>
</p>
<div id="Signature">
<div class="BodyFragment"><font size="2"><span style="font-size:10pt;">
<div class="PlainText">Regards,<br>
Marwa Yusuf<br>
Teaching Assistant - Computer Engineering Department<br>
Faculty of Engineering - Benha University<br>
E-JUST MSc Student<br>
Computer Science & Engineering Dept.</div>
</span></font></div>
</div>
</div>
</body>
</html>