[llvm-dev] Adding a string-argument Intrinsic

Dounia Khaldi via llvm-dev llvm-dev at lists.llvm.org
Mon Dec 4 13:29:48 PST 2017


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>


More information about the llvm-dev mailing list