<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi Sunil,<br>
      <br>
      On 17/08/12 15:05, sunil rathee wrote:<br>
    </div>
    <blockquote
cite="mid:CAOgC5QJyjJbGkdZqCtLc9aGUMZhjwb1kD1=se27ZynwWikHWAA@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      I want to know that is there any way to find a given instruction
      is using an array as operand?<br clear="all">
      <br>
    </blockquote>
    <br>
    You could check whether the operand is a getelementptr instruction.
    This would indicate either an array or structure access but you
    could distinguish those based on the type of the accessed value. If
    you want to link the access to a particular array and subscript in
    the original source code, you might want to hack Clang to add this
    as metadata on the instruction (assuming your IR comes from C/C++
    code).<br>
    <br>
    Tobias<br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Network & Multimedia Solutions Group
Freescale Semiconductor UK Ltd
Colvilles Road, East Kilbride, Glasgow G75 0TG, Scotland.
Company Registration Number: SC262720
</pre>
  </body>
</html>