@@ -62,25 +62,6 @@ static void assertIsContainableHWIntrinsicOp(Lowering* lowering,
62
62
#endif // DEBUG
63
63
}
64
64
65
- // ------------------------------------------------------------------------
66
- // genIsTableDrivenHWIntrinsic:
67
- //
68
- // Arguments:
69
- // category - category of a HW intrinsic
70
- //
71
- // Return Value:
72
- // returns true if this category can be table-driven in CodeGen
73
- //
74
- static bool genIsTableDrivenHWIntrinsic (NamedIntrinsic intrinsicId, HWIntrinsicCategory category)
75
- {
76
- // TODO - make more categories to the table-driven framework
77
- // HW_Category_Helper and HW_Flag_SpecialCodeGen usually need manual codegen
78
- const bool tableDrivenCategory =
79
- (category != HW_Category_Special) && (category != HW_Category_Scalar) && (category != HW_Category_Helper);
80
- const bool tableDrivenFlag = !HWIntrinsicInfo::HasSpecialCodegen (intrinsicId);
81
- return tableDrivenCategory && tableDrivenFlag;
82
- }
83
-
84
65
// ------------------------------------------------------------------------
85
66
// AddEmbRoundingMode: Adds the embedded rounding mode to the insOpts
86
67
//
@@ -408,7 +389,7 @@ void CodeGen::genHWIntrinsic(GenTreeHWIntrinsic* node)
408
389
assert (HWIntrinsicInfo::RequiresCodegen (intrinsicId));
409
390
assert (!HWIntrinsicInfo::NeedsNormalizeSmallTypeToInt (intrinsicId) || !varTypeIsSmall (node->GetSimdBaseType ()));
410
391
411
- bool isTableDriven = genIsTableDrivenHWIntrinsic (intrinsicId, category);
392
+ bool isTableDriven = HWIntrinsicInfo:: genIsTableDrivenHWIntrinsic (intrinsicId, category);
412
393
insOpts instOptions = INS_OPTS_NONE;
413
394
414
395
if (GetEmitter ()->UseEvexEncoding ())
@@ -1693,7 +1674,7 @@ void CodeGen::genNonTableDrivenHWIntrinsicsJumpTableFallback(GenTreeHWIntrinsic*
1693
1674
1694
1675
assert (HWIntrinsicInfo::IsEmbRoundingCompatible (intrinsicId));
1695
1676
assert (!lastOp->isContained ());
1696
- assert (!genIsTableDrivenHWIntrinsic (intrinsicId, category));
1677
+ assert (!HWIntrinsicInfo:: genIsTableDrivenHWIntrinsic (intrinsicId, category));
1697
1678
1698
1679
var_types baseType = node->GetSimdBaseType ();
1699
1680
emitAttr attr = emitActualTypeSize (Compiler::getSIMDTypeForSize (node->GetSimdSize ()));
0 commit comments