[LLVMdev] (Function) attributes documentation
dpatel at apple.com
Mon Oct 6 11:52:23 PDT 2008
On Oct 6, 2008, at 9:23 AM, Matthijs Kooijman wrote:
> Hi all,
> due to the recent changes regarding paramater/function/return type
> I think the documentation around that could use some improvement. In
> particular, I see the following problems:
> * The section "Functions" in the LangRef has a large textual
> about how it should look, but no definition of syntax, or even a few
> examples of the syntax. This makes it very hard to read.
This description provides links for each item. Do you think we need an
> * The section "Functions" only mentions return value attributes and
> attributes, but not function attributes.
> * The section about the call and invoke instructions do not mention
> attributes at all.
> * The section about parameter attributes is a bit unclear as to what
> valid return attributes and what are valid parameter attributes.
> From the
> code, only zeroext, signext and inreg are valid for return values,
> adding an explicit "This is not a valid attribute for return
> values" to the
> others would make this a lot clearer.
> These problems seem to have been around for some time, but I guess
> it would be
> good to fix them (but I won't be having the time for it,
Let me know, if the docs are clear now or if we can improve them.
More information about the llvm-dev