search for: smartptr

Displaying 5 results from an estimated 5 matches for "smartptr".

Did you mean: smart_ptr
2006 Nov 21
2
[LLVMdev] EH and C++ intergation
...conversions and this is quite easy to add, we only have to garantee that the backend will emit it. >> 2) the ret instruction should be able to return structs (as Chris has >> already written on his page). > > This won't help C++ or C. I don't agree. For example: struct SmartPtr { void* px; shared* py; } Now, if I write the following method signature in C++: SmartPtr foo(int whatever); When I return, the llvm cannot return value in registers what is required by Visual C++ (or at least I think it is). I am posing this issue because I really need this feature in llvm for...
2006 Nov 21
0
[LLVMdev] EH and C++ intergation
..., we only have to garantee that > the backend will emit it. Right. >>> 2) the ret instruction should be able to return structs (as Chris has >>> already written on his page). >> >> This won't help C++ or C. > I don't agree. For example: > > struct SmartPtr { void* px; shared* py; } > > Now, if I write the following method signature in C++: > SmartPtr foo(int whatever); > > When I return, the llvm cannot return value in registers what is > required by Visual C++ (or at least I think it is). I am posing > this issue because I reall...
2006 Nov 21
0
[LLVMdev] EH and C++ intergation
On Tue, 21 Nov 2006, [ISO-8859-2] Žiga Osolin wrote: > I was going through documentation and source lately, and I decided how to > make llvm bytecode more compatible to C++: > 1) thiscall sould be introduced, which would take N arguments and the > first argument would always be the C++ "this" argument. This would > abstract llvm compiler dependant C++ code emittion. Sure.
2006 Nov 21
1
[LLVMdev] EH and C++ intergation
...backend will emit it. > > Right. > >>>> 2) the ret instruction should be able to return structs (as Chris has >>>> already written on his page). >>> >>> This won't help C++ or C. >> I don't agree. For example: >> >> struct SmartPtr { void* px; shared* py; } >> >> Now, if I write the following method signature in C++: >> SmartPtr foo(int whatever); >> >> When I return, the llvm cannot return value in registers what is >> required by Visual C++ (or at least I think it is). I am posing >&gt...
2006 Nov 21
2
[LLVMdev] EH and C++ intergation
I was going through documentation and source lately, and I decided how to make llvm bytecode more compatible to C++: 1) thiscall sould be introduced, which would take N arguments and the first argument would always be the C++ "this" argument. This would abstract llvm compiler dependant C++ code emittion. 2) the ret instruction should be able to return structs (as Chris has already