search for: getaisize

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

Did you mean: get_size
2007 Dec 04
2
[LLVMdev] 32-bit indexes
...n of LLVM anyway? > > array indices can be 32 bit or 64 bit. But array lengths must be 32-bit? I've just started using arrays here so maybe I'm doing something wrong but attempting to allocate an array with a 64-bit length gives the error: bench: Instructions.cpp:650: llvm::Value* getAISize(llvm::Value*): Assertion `Amt->getType() == Type::Int32Ty && "Malloc/Allocation array size is not a 32-bit integer!"' failed. -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/products/?e
2007 Dec 04
2
[LLVMdev] 32-bit indexes
I notice that, even though I'm on 64-bit, many indexes are required by LLVM to be 32-bit integers. This won't be too important for the next few years except, I think, for the case of indexing large mmapped files which could already require more than 32-bits. Am I right and is this on the todo list? What are 32-bit integers doing in the 64-bit version of LLVM anyway? -- Dr Jon D
2007 Dec 04
0
[LLVMdev] 32-bit indexes
Hi Jon, > I notice that, even though I'm on 64-bit, many indexes are required by LLVM to > be 32-bit integers. This won't be too important for the next few years > except, I think, for the case of indexing large mmapped files which could > already require more than 32-bits. > > Am I right and is this on the todo list? What are 32-bit integers doing in the >
2007 Dec 04
0
[LLVMdev] 32-bit indexes
...can have 64 bit lengths. This is useful for modelling all of memory as an array. > I've just started using arrays here so maybe I'm doing something wrong but > attempting to allocate an array with a 64-bit length gives the error: > > bench: Instructions.cpp:650: llvm::Value* getAISize(llvm::Value*): Assertion > `Amt->getType() == Type::Int32Ty && "Malloc/Allocation array size is not a > 32-bit integer!"' failed. Ah, memory allocation! I think you want to declare a very long array type and then alloc one of them (rather than trying to alloc a la...