[LLVMdev] Original data type after DAG legalization

Duncan Sands baldrick at free.fr
Fri Dec 31 00:29:19 PST 2010


Hi Borja, you can tell if a type is legal using isTypeLegal.  That said, I think
you should explain why you think you need this kind of information.  I suspect
that you are taking the wrong approach to solve your underlying problem.

Ciao, Duncan.

> During the past week I've kept looking for a solution to this but i couldn't
> find one, is there really a way to get this type of information or some workaround?
>
> Thanks.
>
> 2010/12/22 Borja Ferrer <borja.ferav at gmail.com <mailto:borja.ferav at gmail.com>>
>
>     Hello,
>
>     Is there a way to determine before register allocation if a virtual reg is
>     mapped to the lo or hi part of a piece of a value? Basically i need to tell
>     the register allocator to use a certain set of registers for the lo part and
>     others for the hi part, so in order to do this i would have to know if the
>     data value was expanded into smaller pieces and which piece is each one.
>     Additionally, knowing if the virtual reg assigned to a certain value is not
>     expanded because the value had a legal type would be great.
>
>     Thanks
>
>
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list