ramshankar r via llvm-dev
2020-Jun-03 15:02 UTC
[llvm-dev] Alias scope and noalias metadata
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200603/7d7d4e4c/attachment.html>
Johannes Doerfert via llvm-dev
2020-Jun-03 15:09 UTC
[llvm-dev] Alias scope and noalias metadata
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 list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200603/9976697e/attachment.html>
ramshankar r via llvm-dev
2020-Jun-03 15:12 UTC
[llvm-dev] Alias scope and noalias metadata
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 < johannesdoerfert at gmail.com> wrote:> 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 listllvm-dev at lists.llvm.orghttps://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200603/75782d55/attachment.html>