Craig Topper via llvm-dev
2021-Feb-24 19:17 UTC
[llvm-dev] Query supported llvm intrinsic calls during runtime.
Are you asking about target independent intrinsics or target specific intrinsics? ~Craig On Wed, Feb 24, 2021 at 11:15 AM Deepak Rajendrakumaran via llvm-dev < llvm-dev at lists.llvm.org> wrote:> Hello, > > I have a frontend which creates LLVM IR and uses LLVM optimizations and > codegen. Is there someway to query LLVM during runtime if a particular > intrinsic is supported? > > For example- during runtime user says call the following intrinsic - > ‘llvm.foo(<8 x i64>)’. I’m looking for a way to verify that llvm.foo(<8 x > i64>)’. is a valid llvm intrinsic before creating IR/inserting in IR. > > Regards, > Deepak > _______________________________________________ > 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/20210224/bd1b18da/attachment-0001.html>
Deepak Rajendrakumaran via llvm-dev
2021-Feb-24 19:26 UTC
[llvm-dev] Query supported llvm intrinsic calls during runtime.
Both. Target specific intrinsics especially are important but ideally I’d like to be able to query for both. The idea is to enable to directly call any available llvm intrinsic. Regards, Deepak On Wed, Feb 24, 2021 at 11:17 AM Craig Topper <craig.topper at gmail.com> wrote:> Are you asking about target independent intrinsics or target specific > intrinsics? > > ~Craig > > > On Wed, Feb 24, 2021 at 11:15 AM Deepak Rajendrakumaran via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> Hello, >> >> I have a frontend which creates LLVM IR and uses LLVM optimizations and >> codegen. Is there someway to query LLVM during runtime if a particular >> intrinsic is supported? >> >> For example- during runtime user says call the following intrinsic - >> ‘llvm.foo(<8 x i64>)’. I’m looking for a way to verify that llvm.foo(<8 x >> i64>)’. is a valid llvm intrinsic before creating IR/inserting in IR. >> >> Regards, >> Deepak >> > _______________________________________________ >> 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/20210224/da78078b/attachment.html>