[LLVMdev] convert llvm ir to selection Dag

Eli Friedman eli.friedman at gmail.com
Fri Oct 1 08:51:23 PDT 2010


On Thu, Sep 30, 2010 at 11:33 PM, Kulbhushan Pachauri
<kb.pachauri at samsung.com> wrote:
> Hi,
>
>
>
> Can anyone please tell me how can I scalarize or de-vectorize the llvm
> vector ir.
>
> In this
> (http://old.nabble.com/Re%3A-Thoughts-about-the-llvm-architecture---p29617203.html)
>  thread
>
> I  found LegalizeTypes will do this while generating machine code from llvm
> ir..
>
>
>
> How do I convert llvm ir to selection Dag. And scalarize the vector ir and
> again get back llvm ir…

You can't... the SelectionDAG is part of CodeGen.  If you really need
to scalarize IR, you'll need to write a pass yourself; that said, it
should be pretty straightforward to write.

-Eli




More information about the llvm-dev mailing list