[LLVMdev] Question about Doc patch

Terence Parr parrt at cs.usfca.edu
Fri Apr 25 12:29:56 PDT 2008


On Apr 25, 2008, at 11:43 AM, Gordon Henriksen wrote:

> On Apr 25, 2008, at 14:32, Terence Parr wrote:
>
>> Howdy. I submitted a number of documentation patches to Chris, but
>> he wanted your input on this one:
>>
>>>> Also, is this correct:
>>>>
>>>> %class.Array = type { %class.Object, i32, [0 x %class.Object*] }
>>>> ?  Wondering if it should be
>>>> %class.Array = type { %class.Object*, i32, [0 x %class.Object*] }
>>>
>>> Not sure about this, please ask Gordon.
>>
>> Now I can't remember where that is even, but it must be in the
>> garbage collection doc.
>
> It is correct as written. The idiomatic way to implement B inherits A
> in LLVM is
>
> %B = type { %A, ... }

Ah!  Ok, i thought that was a metclass pointer for a second  
there...but inheritance makes mucho sense there.

>> Probably best would be to state that clearly in http://llvm.org/docs/LangRef.html#intrinsics
>  and hyperlink the first instance of 'intrinsic' (within each
> section?) of GarbageCollection.html. Possibly add the terms 'declare'
> to each of the intrinsics documented at http://llvm.org/docs/GarbageCollection.html#core
> .

Sounds great!
THanks,
Ter



More information about the llvm-dev mailing list