<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><font face="Hack Nerd Font Mono">The logic to do the
        transformation from `noalias` to that is in the inliner, I
        think.<br>
      </font></p>
    <p><font face="Hack Nerd Font Mono">You can use the metadata
        directly as well when you generate IR, I doubt there is a user
        hook from clang to do so.<br>
      </font></p>
    <p><font face="Hack Nerd Font Mono">There is an ongoing effort to
        replace/augment the alias metadata though as it is not sound and
        not suitable to use it for other things, e.g., local restrict
        pointers.<br>
      </font></p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 6/3/20 10:12 AM, ramshankar r wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAPKAp6C+3u2Np9ErJy+j1erSrvmnqo3enKjNRPbRKM1ciQQLew@mail.gmail.com">
      <pre class="moz-quote-pre" wrap="">OK, I see. So to be clear the code is in the inliner? I would like to
explore if I can do it without inlining?!

On Wed, Jun 3, 2020 at 11:10 AM Johannes Doerfert <
<a class="moz-txt-link-abbreviated" href="mailto:johannesdoerfert@gmail.com">johannesdoerfert@gmail.com</a>> wrote:

</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">Hi Ram,


The inliner will translate `noalias` on an argument to those metadata
annotations.


Cheers,

  Johannes


On 6/3/20 10:02 AM, ramshankar r via llvm-dev wrote:

Hi there!

Greetings! I am wondering how I may be able get these annotations !noalias
and !alias.scope to show up- I have a function with restrict added to the
arguments but I do not see these intrinsics with clang -emit-llvm. Which
pass inserts them?

Best,
Ram



_______________________________________________
LLVM Developers mailing <a class="moz-txt-link-abbreviated" href="mailto:listllvm-dev@lists.llvm.orghttps://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">listllvm-dev@lists.llvm.orghttps://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a>


</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
</pre>
    </blockquote>
  </body>
</html>