[LLVMdev] what's meaning of the last field of an LLVM intrinsic instrucation

Reid Kleckner rnk at google.com
Tue Apr 21 09:14:10 PDT 2015


On Mon, Apr 20, 2015 at 11:29 PM, zhi chen <zchenhn at gmail.com> wrote:

> Hi Paul,
>
> Is this field mandatory? or do I have to create the attribute if I create
> a call for the intrinsic function?
>

Usually attributes on call sites are completely unnecessary. They are
things like 'readnone' or 'nounwind', which are optimization hints. There
are some parameter attributes like 'byval' and 'inreg' that are mandatory,
but they are not typically used on intrinsics.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150421/e7fd7e8b/attachment.html>


More information about the llvm-dev mailing list