[mlir][func]-Add deduplicate funcOp arguments transform (#158266)

This PR adds a new transform operation which removes the duplicate
arguments from the function operation based on the callOp of this
function.

To have a more simple implementation for now, the transform will fail
when having multiple callOps for the same function we want to eliminate
the different arguments from.

This pull request also adpat the utils under the func dialect to be
reusable also for this transformOp.

GitOrigin-RevId: 471bd1745ef044a7ee58a4947bf06a7f56660502
6 files changed
tree: 8cc37707eb15c701fd4e737379167de2a4bb9466
  1. benchmark/
  2. cmake/
  3. docs/
  4. examples/
  5. include/
  6. lib/
  7. python/
  8. test/
  9. tools/
  10. unittests/
  11. utils/
  12. .clang-format
  13. .clang-tidy
  14. CMakeLists.txt
  15. LICENSE.TXT
  16. Maintainers.md
  17. README.md
README.md

Multi-Level Intermediate Representation

See https://mlir.llvm.org/ for more information.