Displaying 5 results from an estimated 5 matches for "numindices".
2008 Jul 07
0
[LLVMdev] (GEP) Index validity
...t;isInteger();
}
namespace llvm {
Index: lib/Target/TargetData.cpp
===================================================================
--- lib/Target/TargetData.cpp (revision 53136)
+++ lib/Target/TargetData.cpp (working copy)
@@ -553,8 +553,7 @@
TI = gep_type_begin(ptrTy, Indices, Indices+NumIndices);
for (unsigned CurIDX = 0; CurIDX != NumIndices; ++CurIDX, ++TI) {
if (const StructType *STy = dyn_cast<StructType>(*TI)) {
- assert(Indices[CurIDX]->getType() == Type::Int32Ty &&
- "Illegal struct idx");
+ assert(isa<ConstantInt>(Indi...
2008 Jul 10
2
[LLVMdev] (GEP) Index validity
...llvm {
> Index: lib/Target/TargetData.cpp
> ===================================================================
> --- lib/Target/TargetData.cpp (revision 53136)
> +++ lib/Target/TargetData.cpp (working copy)
> @@ -553,8 +553,7 @@
> TI = gep_type_begin(ptrTy, Indices, Indices+NumIndices);
> for (unsigned CurIDX = 0; CurIDX != NumIndices; ++CurIDX, ++TI) {
> if (const StructType *STy = dyn_cast<StructType>(*TI)) {
> - assert(Indices[CurIDX]->getType() == Type::Int32Ty &&
> - "Illegal struct idx");
> + assert(is...
2008 Jul 07
2
[LLVMdev] (GEP) Index validity
Hi all,
I'm fiddling around a bit with programmatically created GEP instructions,
which is failing when using i64 for any indix, except the first.
The reason behind this, is that StructureType::indexValid only accepts Value*
that are constant ints of width 32. I can't really see why this limitation is
here.
SequentialType solves this slightly differently, it allows for both 32 and 64
2011 Jul 09
1
[LLVMdev] getting and setting array indices c interface
I really can't figure out how to get and set array indices from the c
interface.
so to get an element I'm calling
tindex = *fn\SymbolTable(*index\name)
index = LLVMBuildLoad(builder,tindex,"index")
arr = *fn\SymbolTable(*array\name)
arrptr = LLVMBuildLoad(Builder,arr,"arrayptr")
tmp = LLVMBuildGEP(Builder,arrptr,index,0,"ptr")
ptr =
2008 Jul 10
0
[LLVMdev] (GEP) Index validity
...lib/Target/TargetData.cpp
>> ===================================================================
>> --- lib/Target/TargetData.cpp (revision 53136)
>> +++ lib/Target/TargetData.cpp (working copy)
>> @@ -553,8 +553,7 @@
>> TI = gep_type_begin(ptrTy, Indices, Indices+NumIndices);
>> for (unsigned CurIDX = 0; CurIDX != NumIndices; ++CurIDX, ++TI) {
>> if (const StructType *STy = dyn_cast<StructType>(*TI)) {
>> - assert(Indices[CurIDX]->getType() == Type::Int32Ty &&
>> - "Illegal struct idx");
>>...