[llvm-dev] Adding a string-argument Intrinsic
Jonathan Roelofs via llvm-dev
llvm-dev at lists.llvm.org
Mon Dec 4 13:38:15 PST 2017
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
More information about the llvm-dev
mailing list