[mlir] Make the inliner arg/res handlers more concise.
authorTobias Gysi <tobias.gysi@nextsilicon.com>
Tue, 11 Apr 2023 06:16:12 +0000 (06:16 +0000)
committerTobias Gysi <tobias.gysi@nextsilicon.com>
Tue, 11 Apr 2023 06:34:32 +0000 (06:34 +0000)
commit0fb4ac55bb73c64b30d72ae0cb76936cb13793f2
tree144fd4996b747414e373cc8ff69222f2f2171d8e
parentcebdf206caad921ab4b1d231d90e42ed60d5998e
[mlir] Make the inliner arg/res handlers more concise.

The revision ensures the newly introduced argument
and result handlers cannot be used for type conversion.
Instead use the existing materializeCallConversion hook to
perform type conversions.

Reviewed By: Dinistro

Differential Revision: https://reviews.llvm.org/D147605
mlir/include/mlir/Transforms/InliningUtils.h
mlir/lib/Dialect/LLVMIR/IR/LLVMInlining.cpp
mlir/lib/Transforms/Utils/InliningUtils.cpp
mlir/test/lib/Dialect/Test/TestDialect.cpp