search for: inttptr

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

Did you mean: inttoptr
2011 Feb 15
0
[LLVMdev] Structure Types and ABI sizes
...to some different type) to do some > arithmetic operation. If LLVM can understand that, that's fine. It'll understand it but make sure it's casting to the correct types and using the correct offsets given the base types. We actually generate a bunch of ugly ptrtoint + arithmetic + inttptr + GEP stuff. I wrote an instcombine pass to fold that down to a single GEP where possible. I don't know if that's valid in general (due to inbounds and other GEP semantics) but it is for the cases we use it because we "know" where it came from. LLVM understands GEP better than...
2011 Feb 15
2
[LLVMdev] Structure Types and ABI sizes
On 15 February 2011 22:14, David A. Greene <greened at obbligato.org> wrote: > That's why we use { i8, i16 }.  It's not by accident.  We do adhere to > the Itanium ABI. Oh, I see. But the padding is not a problem, it could be [3 x i8] or { i8, i16 }, it doesn't matter, since it's never going to be used. But the [8 x i8] that was the original Base type is, and