[Mlir-commits] [mlir] [mlir] Handle NativeCodeCallVoid in result patterns. (PR #65804)

Jian Cai llvmlistbot at llvm.org
Mon Sep 11 10:05:31 PDT 2023


jcai19 wrote:

Thanks for the clarification! My understanding is that since Foo is a void function (e.g. copying op attributes) and it does not return any values (i.e. return 0 result), "the last N results" will be the result of `TF_AddV2Op ` pattern in this case.  This is meant to replace reviews.llvm.org/D157032 because the code generated by the post-processing parameter I added in that patch is inserted after the source op is removed so I cannot copy the attributes before the original op is removed. If you think this change does not make sense, I can patch reviews.llvm.org/D157032 and move the post-processing code right before the original op is replaced. Would that make sense to you?

https://github.com/llvm/llvm-project/pull/65804


More information about the Mlir-commits mailing list