Displaying 5 results from an estimated 5 matches for "gepconstantexpr".
2008 Jun 18
3
[LLVMdev] Transforming ConstantExprs to Instructions
...rather than converting
> them back and forth.
With both I assume you mean both GEP instrs and GEP constantexprs? If so then
yes, I am intending to make it work with both, and that's exactly why I need
to convert the constantexprs to instructions (Since, unless I'm very much
mistaken, a gepconstantexpr won't work with an alloca, so I can't leave them
intact).
Gr.
Matthijs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.llvm.org/pipermail/llvm-de...
2008 Jun 17
4
[LLVMdev] Transforming ConstantExprs to Instructions
Hi,
I've been struggling with constantexprs for a bit. I'm working on a pass that
transforms global variables to local variables, and in particular the
GetElementPtrConstantExpr is a bit troublesome. For my transformation to
properly work, a global value should only be used by Instructions, not by
ConstantExprs.
I was thinking to add a ConstantExpr::replaceWithInstr() virtual method,
2008 Jun 17
0
[LLVMdev] Transforming ConstantExprs to Instructions
On Tue, Jun 17, 2008 at 8:50 AM, Matthijs Kooijman <matthijs at stdin.nl> wrote:
> Hi,
>
> I've been struggling with constantexprs for a bit. I'm working on a pass that
> transforms global variables to local variables, and in particular the
> GetElementPtrConstantExpr is a bit troublesome. For my transformation to
> properly work, a global value should only be used
2008 Jun 17
0
[LLVMdev] Transforming ConstantExprs to Instructions
On Tue, 17 Jun 2008, Matthijs Kooijman wrote:
> I've been struggling with constantexprs for a bit. I'm working on a pass that
> transforms global variables to local variables, and in particular the
> GetElementPtrConstantExpr is a bit troublesome. For my transformation to
> properly work, a global value should only be used by Instructions, not by
> ConstantExprs.
Ok, this
2008 Jun 19
0
[LLVMdev] Transforming ConstantExprs to Instructions
...nd forth.
> With both I assume you mean both GEP instrs and GEP constantexprs?
> If so then
> yes, I am intending to make it work with both, and that's exactly
> why I need
> to convert the constantexprs to instructions (Since, unless I'm very
> much
> mistaken, a gepconstantexpr won't work with an alloca, so I can't
> leave them
> intact).
What do you mean? A constantexpr gep can be used as the size of an
alloca.
-Chris