search for: _zn3foo3barel

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

2014 Jan 20
4
[LLVMdev] Methods on addrspace pointers
...don’t think it can be applied to methods the way I was thinking. At least it doesn’t actually change them: struct Foo { long x; __attribute__((address_space(7))) void bar(long y) { printf("%ld %ld\n", x, y); } }; Generates this declaration still: define linkonce_odr void @_ZN3Foo3barEl(%struct.Foo* %this, i64 %y) ssp uwtable align 2 Though I think desired behavior would be: define linkonce_odr void @_ZN3Foo3barEl(%struct.Foo addrspace(7)* %this, i64 %y) ssp uwtable align 2 (actually I think it’s more tricky because the address_space attribute could be applying to the return ty...
2014 Jan 20
2
[LLVMdev] Methods on addrspace pointers
I’ve been developing an optimization pass that uses the address space attribute (__attribute__((address_space(200))) to indicate different kinds of pointers to be treated differently (I’m making them be pointers to a “global” address space as in UPC). However, I’ve hit a snag in the frontend code generator: if I try to make a method call on a pointer with a custom address space, the frontend