This PR simplifies CallBuiltin by using PrimValue/StringImm/DataTypeImm to directly represent the positional argument instead of using customized translation of Attrs.
Remove BuiltinFuncAttrs
Use directly call_packed instead for most cases.
Introduce call_builtin_with_ctx to cover the remaining usecase of call_builtin that requires ctx.
Update the testcases accordingly.
This PR also serves as an example on how can we further simplify other special lowering logics through PrimValue, which can be done in future PRs.
This PR simplifies CallBuiltin by using PrimValue/StringImm/DataTypeImm to directly represent the positional argument instead of using customized translation of Attrs.
This PR also serves as an example on how can we further simplify other special lowering logics through PrimValue, which can be done in future PRs.