[LLVMdev] GetElementPtr

Eli Friedman eli.friedman at gmail.com
Thu Dec 8 13:23:38 PST 2011


On Thu, Dec 8, 2011 at 11:49 AM, Ryan Taylor <ryta1203 at gmail.com> wrote:
> After some thought, to put this more simply (more direct), it would be fine
> if the getelementptr is lowered into IR assuming an x86 architecture. The
> real problem is that I don't want the x86 code generation, I still want to
> deal in LLVM IR just with the GEP lowered, and it lowered for the x86
> architecture is fine.
>
> Is there any way to do this?

It should be straightforward to write, but I don't think there's any
existing code to do this.  You can grab the necessary information
about the target out of TargetData.

-Eli



More information about the llvm-dev mailing list