Currently NativeCodeCallVoid is not supported in the result patterns.
For example, below code will fail to build with the error message
referencing unbound symbol.
def Foo: NativeCodeCallVoid<"foo()">; def AddToAddV2 : Pattern< (TF_AddOp TF_NumberTensor:$arg0, TF_NumberTensor:$arg1), [(TF_AddV2Op $arg0, $arg1), (Foo)]>;
MLIR tablegen-based pattern rewrites does not preserve attributes of the source
op, with this change users could mannualy copy source attributes to the target
op via NativeCodeCallVoid. This is a replacement of D157032.