Lines Matching defs:isLegal
153 bool CombinerHelper::isLegal(const LegalityQuery &Query) const {
154 assert(LI && "Must have LegalizerInfo to query isLegal!");
160 return isPreLegalize() || isLegal(Query);
170 return isLegal({TargetOpcode::G_BUILD_VECTOR, {Ty, EltTy}}) &&
171 isLegal({TargetOpcode::G_CONSTANT, {EltTy}});
1179 return isLegal(Q);
3449 !isLegal({TargetOpcode::G_CONCAT_VECTORS, {MidTy, UnmergeSrcTy}}))
3452 if (!isLegal({TargetOpcode::G_TRUNC, {DstTy, MidTy}}))
6448 if (isLegal({TargetOpcode::G_FMAXNUM, {DstTy}}))
6450 if (isLegal({TargetOpcode::G_FMAXIMUM, {DstTy}}))
6461 if (isLegal({TargetOpcode::G_FMINNUM, {DstTy}}))
6463 if (!isLegal({TargetOpcode::G_FMINIMUM, {DstTy}}))
6525 if (!Opc || !isLegal({Opc, {DstTy}}))
7127 if (isLegal({NewOpc, {DestTy}})) {