search for: getprimitivesize

Displaying 4 results from an estimated 4 matches for "getprimitivesize".

2004 Jun 17
3
[LLVMdev] Primitive types
Hello, I'm getting this in debugger, where 't' is 'Type*': (gdb) p t->isPrimitiveType() $15 = false (gdb) p t->getPrimitiveID() $16 = PointerTyID (gdb) p t->getPrimitiveSize() $17 = 0 There are a couple of things that I'd like to ask. First, if isPrimitiveType() returns false, that the fact that getPrimitiveID returns reasonable value is quite strange. Maybe, the method is better called just getID, since it can get id for both primitive and derived types. S...
2004 Jun 17
0
[LLVMdev] Primitive types
On Thu, 17 Jun 2004, Vladimir Prus wrote: > I'm getting this in debugger, where 't' is 'Type*': > > (gdb) p t->isPrimitiveType() > $15 = false > (gdb) p t->getPrimitiveID() > $16 = PointerTyID > (gdb) p t->getPrimitiveSize() > $17 = 0 > > There are a couple of things that I'd like to ask. First, if > isPrimitiveType() returns false, that the fact that getPrimitiveID > returns reasonable value is quite strange. Maybe, the method is better > called just getID, since it can get id for both prim...
2005 Jun 20
0
[LLVMdev] variable sized structs in LLVM
...known, fixed sizes that are not target dependent. A ulong is 8 bytes. A uint is 4 bytes. A ushort is 2 bytes. Etc. and always. There are also methods in LLVM to help you deal with the size of a type in bits and bytes. In particular you might want to note the following methods: Type::isSized Type::getPrimitiveSize Type::getPrimitiveSizeInBites Reid On Mon, 2005-06-20 at 13:03 +0200, Carl Friedrich Bolz wrote: > Hi LLVM-dev! > > I'm having problems figuring out how to do variable sized structs in > LLVM (which are neccessary for PyPy's LLVM backend, on which I'm > working). I...
2005 Jun 20
4
[LLVMdev] variable sized structs in LLVM
Hi LLVM-dev! I'm having problems figuring out how to do variable sized structs in LLVM (which are neccessary for PyPy's LLVM backend, on which I'm working). I'm trying to do the equivalent of struct array { long refcount; long length; long items[1]; }; in LLVM, where the items array can be arbitrarily long. I guess that the struct definition should