[mlir][func] Use the generated pass options in func to llvm.
authorTobias Gysi <tobias.gysi@nextsilicon.com>
Sat, 11 Feb 2023 09:31:19 +0000 (10:31 +0100)
committerTobias Gysi <tobias.gysi@nextsilicon.com>
Sat, 11 Feb 2023 09:31:19 +0000 (10:31 +0100)
commit771d9c05afc2515b474fb53db857716dfdfc1dcf
treefd3ac8e3df40f4be84cbad42c12cb32a8c7b07cf
parent19c42f672f942518b4d711a0c734693a9244f78c
[mlir][func] Use the generated pass options in func to llvm.

Update the FuncToLLVM pass to use the generated constructors and
the generated pass option struct. The hand written constructor
got out of sync after some refactorings. Using a generated constructor
and options struct ensures the everything remains in sync.

Reviewed By: zero9178

Differential Revision: https://reviews.llvm.org/D143733
mlir/include/mlir/Conversion/FuncToLLVM/ConvertFuncToLLVMPass.h
mlir/include/mlir/Conversion/Passes.td
mlir/lib/Conversion/FuncToLLVM/FuncToLLVM.cpp
mlir/test/CAPI/execution_engine.c