[LLVMdev] Generating GetElementPtr inlined in a function argument list programmatically

Matt Arsenault arsenm2 at gmail.com
Mon Aug 19 14:42:09 PDT 2013


On Aug 19, 2013, at 14:37 , Matt Arsenault <arsenm2 at gmail.com> wrote:
> 
> This is a constant expression cast. It will only happen for a constant arguments, in this case the address of global @bbname. You should get these if you run instcombine on it.
> 
> http://llvm.org/docs/LangRef.html#constant-expressions
> 
I forgot to mention you can also create ConstantExprs directly if you want
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130819/a749a46d/attachment.html>


More information about the llvm-dev mailing list