Dounia Khaldi via llvm-dev
2017-Dec-04 21:29 UTC
[llvm-dev] Adding a string-argument Intrinsic
hello, Is there a way to add an intrinsic that takes a string as argument? If yes, what should be the second value provided to the macro // BUILTIN(__builtin_dummy, "v?", "n") in tools/clang/include/clang/Basic/BuiltinsX86.def Also, what should be the type passed in include/llvm/IR/IntrinsicsX86.td def dummy : GCCBuiltin<"__builtin_dummy">, Intrinsic<[], [llvm_???_ty], [IntrArgMemOnly] /* , "llvm.dummy" */>; Thanks, Dounia -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171204/b89dafd0/attachment.html>
Jonathan Roelofs via llvm-dev
2017-Dec-04 21:38 UTC
[llvm-dev] Adding a string-argument Intrinsic
On 12/4/17 2:29 PM, Dounia Khaldi via llvm-dev wrote:> hello, > > Is there a way to add an intrinsic that takes a string as argument?Have a look at __builtin_annotation Jon> > If yes, what should be the second value provided to the macro // > BUILTIN(__builtin_dummy, "v?", "n") > in tools/clang/include/clang/Basic/BuiltinsX86.def > > Also, what should be the type passed in include/llvm/IR/IntrinsicsX86.td > def dummy : GCCBuiltin<"__builtin_dummy">, > Intrinsic<[], [llvm_???_ty], [IntrArgMemOnly] /* , "llvm.dummy" */>; > > > Thanks, > Dounia > > > > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-- Jon Roelofs jonathan at codesourcery.com CodeSourcery / Mentor Embedded / Siemens