[DAG] Add getFreeze(SDValue, UndefPoisonKind) variant (#245320)
Makes it easier to filter for just POISON/UNDEF cases, which will be
more common in upcoming patches - but avoids the need for manual
DemandedElts handling.
I had hoped to entirely remove the isGuaranteedNotToBeUndefOrPoison
check inside getNode() but there's a lot of code changes due to
different SDLoc etc. that should be handled separately.