On Fri, Jun 8, 2012 at 1:08 PM, Jeff Garzik <jeff@xxxxxxxxxx> wrote: > LLVM API seems to "prefer" that one use GEP code > and associated type information, and was written with this preference in > mind. Looking at the LLVM API docs that Xi referred to, the LLVM preference is actually pretty weak. So I'd almost say continue with the current IR, and just do the pointer arithmetic by hand. If LLVM doesn't treat GEP *that* specially, doing a separate pointer arithmetic level is quite possibly going to just cause problems: simplification of combinations of GEP and arithmetic is potentially quite annoying and has problems that simplification of perfectly regular addition does not. Linus -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html