Prior to this commit, an operator's FCallPacked attribute, used to specify a 1:1 mapping between a relax operator and a PackedFunc that implements it, was only checked in CodegenVM. Any operator with FCallPacked would raise an error when compiled using CodegenVMTIR.
This commit removes the FCallPacked handling from CodegenVM altogether, and instead checks for this attribute as part of LegalizeOps. This provides the same functionality across both backends.
Prior to this commit, an operator's
FCallPacked
attribute, used to specify a 1:1 mapping between a relax operator and aPackedFunc
that implements it, was only checked inCodegenVM
. Any operator withFCallPacked
would raise an error when compiled usingCodegenVMTIR
.This commit removes the
FCallPacked
handling fromCodegenVM
altogether, and instead checks for this attribute as part ofLegalizeOps
. This provides the same functionality across both backends.