[llvm-dev] How do set 'nest' addribute in an indirect call?

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Thu Aug 24 07:40:01 PDT 2017


On 17 August 2017 at 15:15, Rodney M. Bates via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> For an indirect call, i.e., on a function whose address is runtime variable,
> I can't find any place/way to attach this attribute.  LLVMAddAttribute
> won't take a type.

In the C++ API you'd add the attribute to the CallInst. I've not used
any of the wrappers, but I think you might get what you want via
LLVMAddCallSiteAttribute.

Cheers.

Tim.


More information about the llvm-dev mailing list