Displaying 2 results from an estimated 2 matches for "addrspaceani".
Did you mean:
addrspaceany
2015 Jan 18
4
[LLVMdev] Marking *some* pointers for gc
Sanjoy Das wrote:
> In your
> example, foo will have to treat its argument differently depending on
> whether it is a GC pointer or not.
In practice, this is not true of many functions that don't call other
functions. Take the example of a simple "print" function that takes a
void * to cast and print, type_int to determine what to cast to: why
should it care about whether
2015 Jan 18
2
[LLVMdev] Marking *some* pointers for gc
Hi,
I just found out that it's not practical to mark only some pointers
for GC. Consider:
%a = i8 addrspace(1)* malloc(...)
%b = i8* alloca(...)
The issue then becomes that routine functions declared:
declare i1 foo(i8 addrspace(1)*)
have a choice of accepting either gc'able or non-gc'able pointers. Is
there no way to have a reasonable mix of both?
Ram