search for: tp33341964p33381946

Displaying 3 results from an estimated 3 matches for "tp33341964p33381946".

2012 Feb 23
1
[LLVMdev] Size of structs & arrays
...MainClass's array after the transfer, and print it out, then it does so successfully, then continues to segfault. So it looks like it's copied the memory okay, but I've corrupted something in the process.. -- View this message in context: http://old.nabble.com/Size-of-structs---arrays-tp33341964p33381946.html Sent from the LLVM - Dev mailing list archive at Nabble.com.
2012 Feb 22
0
[LLVMdev] Size of structs & arrays
On Wed, Feb 22, 2012 at 1:56 PM, Fraser Cormack <frasercrmck at gmail.com> wrote: > > I'm trying to work out the size of a struct so that I can pass this to the > 'llvm.memcpy' intrinsic. It's easy to find out how I'm supposed to do this, > as I keep seeing the following: > > %Size = getelementptr %T* null, int 1 > %SizeI = cast %T* %Size to uint >
2012 Feb 22
5
[LLVMdev] Size of structs & arrays
I'm trying to work out the size of a struct so that I can pass this to the 'llvm.memcpy' intrinsic. It's easy to find out how I'm supposed to do this, as I keep seeing the following: %Size = getelementptr %T* null, int 1 %SizeI = cast %T* %Size to uint But I'm unsure how I actually do this in the C++ API. Is the 'null' here a llvm::ConstantPointerNull? Any help