Displaying 3 results from an estimated 3 matches for "118c118".
Did you mean:
11118
2004 Jul 21
0
[LLVMdev] GC questions.
Ok, that makes sense :).
, Tobias
On Wed, 21 Jul 2004, Chris Lattner wrote:
> On Wed, 21 Jul 2004, Tobias Nurmiranta wrote:
> > > void *llvm_gc_read(void *ObjPtr, void **FieldPtr) {
> > > return *FieldPtr;
> > > }
> >
> > Hm, but doesn't FieldPtr need to be calculated target-specific in those
> > cases?
>
> For the field pointer, one
2004 Jul 21
2
[LLVMdev] GC questions.
On Wed, 21 Jul 2004, Tobias Nurmiranta wrote:
> > void *llvm_gc_read(void *ObjPtr, void **FieldPtr) {
> > return *FieldPtr;
> > }
>
> Hm, but doesn't FieldPtr need to be calculated target-specific in those
> cases?
For the field pointer, one could use the getelementptr instruction:
%pairty = { sbyte, sbyte, int* }
%pairPtr = ...
%fieldptr = getelementptr
2004 Jul 22
2
[LLVMdev] GC questions.
...vm_gc_read", VoidPtr, VoidPtr, VoidPtrPtr, 0);
---
> GCRead = M.getOrInsertFunction("llvm_gc_read", VoidPtr, VoidPtrPtr, 0);
115c115
< VoidPtr, VoidPtr, VoidPtrPtr, 0);
---
> VoidPtr, VoidPtrPtr, 0);
118c118
< if (GCRootInt || GCRootValueInt) {
---
> if (GCRootInt) {
121a122
>
156c157
< if (!GCRootInt && !GCRootValueInt && !GCReadInt && !GCWriteInt) return false;
---
> if (!GCRootInt && !GCReadInt && !GCWriteInt) return false;
165d165
<...