[LLVMdev] How to prevent generation of wide integers in LLVM IR?

Eli Friedman eli.friedman at gmail.com
Fri Jul 1 01:03:05 PDT 2011


On Fri, Jul 1, 2011 at 12:53 AM, Корчагин Василий
<vasiliy.korchagin at gmail.com> wrote:
> Hello, LLVMdev.
>
> The problem is that C backend doesn't support integers wider than 64
> bits, but I need to use it on programs with wide integers in LLVM IR. My
> question is how to deny LLVM to generate wide integer? Which part of
> LLVM should I modify?

scalarrepl is the only pass I can think of off the top of my head that
does that normally (although there might be others); you can either
avoid it (in favor of the simpler mem2reg), or hack it up so it
doesn't do that.

-Eli




More information about the llvm-dev mailing list