[LLVMdev] Re: variable sized structs in LLVM
Chris Lattner
sabre at nondot.org
Sat Jun 25 09:29:07 PDT 2005
On Sat, 25 Jun 2005, Ed Cogburn wrote:
>>
>> http://nondot.org/sabre/LLVMNotes/SizeOf-OffsetOf-VariableSizedStructs.txt
>>
>> Hope this helps!
>
>
> Bingo, it does help! Thanks Chris! However, I'm with Aaron on where this
> belongs, your link above really should be integrated into or at least an
> addendum to the IR Language Reference,
>
> http://llvm.cs.uiuc.edu/docs/LangRef.html
>
> unless you're keeping it out of the official IR docs for now because you
> will/might handle this more directly or differently in a future revision of
> the IR.
I didn't integrate it because the LangRef is supposed to be a reference
that defines the syntax and semantics of the language constructs... not
giving examples of how they can be used to do various things. The
examples in the reference guide are there to make sure the
syntax/semantics are clear, not to show every possible use of them. :)
> If that's the case then the IR Lang Ref should at least for now
> provide a link to the above from within itself, IMHO. In any case,
> thanks! :)
I think the right way to go would be to have a new 'LLVM Language
Implementer's Guide', which could incorporate the various notes I added to
my personal page, some of the insights from the Stacker.html guide, and
others. If someone is interested in working on this, it would be a great
addition :)
-Chris
--
http://nondot.org/sabre/
http://llvm.cs.uiuc.edu/
More information about the llvm-dev
mailing list