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

hello,

Is there a way to add an intrinsic that takes a string as argument?

Have a look at __builtin_annotation

Jon