search for: gep_type_begin

Displaying 7 results from an estimated 7 matches for "gep_type_begin".

2008 Jul 07
0
[LLVMdev] (GEP) Index validity
...is allowed + return V->getType()->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"); +...
2008 Jul 10
2
[LLVMdev] (GEP) Index validity
...teger(); > } > > 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 struc...
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
2004 Nov 15
0
[LLVMdev] Fixes for windows version
...rms/Scalar/ScalarReplAggregates.cpp 15 Nov 2004 08:38:35 -0000 > @@ -336,7 +336,7 @@ > for (Value::use_iterator UI = AI->use_begin(), E = AI->use_end(); > UI != E; ) { > GetElementPtrInst *GEPI = cast<GetElementPtrInst>(*UI++); > - gep_type_iterator I = gep_type_begin(GEPI), E = gep_type_end(GEPI); > + gep_type_iterator I = gep_type_begin(GEPI); > ++I; > > if (const ArrayType *AT = dyn_cast<ArrayType>(*I)) { > Index: win32/Support/Support.vcproj > =================================================================== > RCS...
2004 Nov 15
2
[LLVMdev] Fixes for windows version
Hi, when I updated the sources today there were several small problems that stopped the windows version from compiling, here are the patches m. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: win32patches.txt URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20041115/34634455/attachment.txt>
2009 Apr 17
0
[LLVMdev] llvm-ld (instruction combine) breaking for this test.
...is trying to combine two GEPs into one, and while creating the new one it is passing i16 as type of index args. (as PointerWidth on pic16 is i16). // Find out whether the last index in the source GEP is a sequential idx. bool EndsWithSequential = false; for (gep_type_iterator I = gep_type_begin(*cast<User>(PtrOp)), E = gep_type_end(*cast<User>(PtrOp)); I != E; ++I) EndsWithSequential = ! isa<StructType>(*I); // Can we combine the two pointer arithmetics offsets? if (EndsWithSequential) { // Replace: gep (gep %P, long B), long A, ......
2008 Jul 10
0
[LLVMdev] (GEP) Index validity
...t;> 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 && >> - &quot...