search for: tmp1617

Displaying 2 results from an estimated 2 matches for "tmp1617".

Did you mean: tmp11
2007 Nov 15
0
[LLVMdev] BasicAliasAnalysis and out-of-bound GEP indices
...0, i32 1 %tmp910 = bitcast [0 x i32]* %tmp9 to %struct.ehci_hcd* ; later in the source, a pointer to the parent struct is obtained ; from %tmp910 using inner field's offset knowledge ; (__builtin_offsetof operator in the C source) %tmp1415 = bitcast %struct.ehci_hcd* %tmp910 to [0 x i32]* %tmp1617 = bitcast [0 x i32]* %tmp1415 to i8* %tmp18 = getelementptr i8* %tmp1617, i32 -4 %tmp1819 = bitcast i8* %tmp18 to %struct.usb_hcd* -= after instcombine =- %tmp18 = getelementptr %struct.usb_hcd* %hcd, i32 0, i32 1, i32 -1 %tmp1819 = bitcast i32* %tmp18 to %struct.usb_hcd* It is an example of GEP...
2007 Nov 15
3
[LLVMdev] BasicAliasAnalysis and out-of-bound GEP indices
On 11/15/07, Duncan Sands <baldrick at free.fr> wrote: > Hi, > > > Sadly, this will break a very common idiom. In GCC, we discovered it > > to be common enough that it broke a *bunch* of C code. > > > > In particular, you will break > > > > struct foo { > > int a; > > char name[0]; > > } > > > > bar = malloc(sizeof