[llvm-dev] how to type-legalize a dag

Rail Shafigulin via llvm-dev llvm-dev at lists.llvm.org
Fri Mar 18 12:48:28 PDT 2016


On Fri, Mar 18, 2016 at 12:34 PM, Krzysztof Parzyszek <
kparzysz at codeaurora.org> wrote:

> On 3/18/2016 2:20 PM, Rail Shafigulin wrote:
>
>>
>> Given that the action is "Expand" how does legalizer know which
>> replacement to use for a given operation?
>>
>
> It's pretty much all hardcoded.  A more complex operation is rewritten in
> terms of simpler operations, which are more likely to be legal.
> Look in SelectionDAGLegalize::ExpandNode to see what happens in each case.
>
>
> -Krzysztof
>
> --
> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted
> by The Linux Foundation
>

I see. Thanks!

-- 
Rail Shafigulin
Software Engineer
Esencia Technologies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160318/f528251b/attachment.html>


More information about the llvm-dev mailing list