Skip to Content.
Sympa Menu

svadev - Re: [svadev] ConstantExpr in GEP, inttoptr?

svadev AT lists.siebelschool.illinois.edu

Subject: Svadev mailing list

List archive

Re: [svadev] ConstantExpr in GEP, inttoptr?


Chronological Thread 
  • From: Will Dietz <w AT wdtz.org>
  • To: Ryan Taylor <ryta1203 AT gmail.com>
  • Cc: svadev AT cs.uiuc.edu
  • Subject: Re: [svadev] ConstantExpr in GEP, inttoptr?
  • Date: Thu, 20 Sep 2012 21:01:25 -0500
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/svadev/>
  • List-id: <svadev.cs.uiuc.edu>

I believe the pass is intended to convert constexpr GEP's (which are used as operands to other instructions, and are not instructions themselves) into separate GEP instructions.

This is done to facilitate the SAFECode instrumentation by creating a code point between the GEP and its use.

In other words it breaks up geps that are constexpr's, not constexpr's used in geps (what your code is).

Hope this helps,

~Will

On Sep 20, 2012 8:55 PM, "Ryan Taylor" <ryta1203 AT gmail.com> wrote:
Is the BreakGEPs pass suppose to break the constant expr of GEPs up? For example, I have this instruction:

%uglygep296 = getelementptr i8* inttoptr (i32 4 to i8*), i32 %tmp243

After using the Break GEPs pass, I'm curious as to why it's not getting rid of the inttoptr call here? I'm assuming that it is not suppose to break up inttoptr?

Thanks.

_______________________________________________
svadev mailing list
svadev AT cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/svadev




Archive powered by MHonArc 2.6.16.

Top of Page