search for: opaquefoo

Displaying 2 results from an estimated 2 matches for "opaquefoo".

2008 Jun 12
0
[LLVMdev] code generation order revisited.
...to i8* %obj.field = getelementptr i8* %obj.start, i32 0, i32 %Type.field.offs %field.ptr = bitcast %obj.field to %field* %field.val = load %field* %field.ptr This is completely analogous to opaque data types in C. You can use any of the following techniques: typedef struct OpaqueFoo *FooRef; /* like %object = type opaque in LLVM */ typedef void *FooRef; /* like %object = type i8 in LLVM */ typedef struct { struct Vtable *VT; } Base; typedef Base *FooRef; /* like %object = type { %vtable* } in LLVM */ — Gordon
2008 Jun 12
2
[LLVMdev] code generation order revisited.
On Tue, 06 May 2008 16:06:35 -0400, Gordon Henriksen wrote: > On 2008-05-06, at 13:42, Hendrik Boom wrote: > >> One more question. I hope you're not getting tired of me already. Does >> generating LLVM code have to proceed in any particular order? >> >> Of course, if I am writing LLVM assembler by appending characters to >> the >> end of a sequential