[LLVMdev] GetElementPtr

Ryan Taylor ryta1203 at gmail.com
Thu Dec 8 14:37:44 PST 2011


On Thu, Dec 8, 2011 at 2:37 PM, Ryan Taylor <ryta1203 at gmail.com> wrote:

> Thanks.
>
> So basically then this operation is not target-independent like the docs
> suggest?
>
>
> On Thu, Dec 8, 2011 at 1:23 PM, Eli Friedman <eli.friedman at gmail.com>wrote:
>
>> 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
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111208/d50c2b16/attachment.html>


More information about the llvm-dev mailing list