[llvm-dev] how to type-legalize a dag
Krzysztof Parzyszek via llvm-dev
llvm-dev at lists.llvm.org
Fri Mar 18 12:34:04 PDT 2016
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
More information about the llvm-dev
mailing list