[LLVMdev] Type Legalizer Question.

Eli Friedman eli.friedman at gmail.com
Tue Sep 30 13:27:12 PDT 2008


On Tue, Sep 30, 2008 at 9:48 AM,  <Sanjiv.Gupta at microchip.com> wrote:
> All the sub methods called inside ExpandIntegerOperand like ExpandInOp_STORE
> etc have access to the expanded operands map.
>
> Why they aren't passed to target LowerOperation? A target may also want to
> use the already expanded Lo and Hi parts.

You don't really need access to the map; just use build an
EXTRACT_ELEMENT node, and legalize will take care of the mapping for
you.

-Eli



More information about the llvm-dev mailing list