We don’t actually use LegalizerInfo in Legalizer pass, it’s just passed
as an argument.
In order to check if an instruction is legal or not, we need to get LegalizerInfo
by calling MI.getParent()->getParent()->getSubtarget().getLegalizerInfo().
Instead, make LegalizerInfo accessible in LegalizerHelper.