[all-commits] [llvm/llvm-project] 0a7a1a: [mlir] Support FuncOpSignatureConversion for more ...

mikeurbach via All-commits all-commits at lists.llvm.org
Thu Jan 21 17:40:08 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0a7a1ac73d095eacd4499e889ce35191a9d1c648
      https://github.com/llvm/llvm-project/commit/0a7a1ac73d095eacd4499e889ce35191a9d1c648
  Author: mikeurbach <mikeurbach at gmail.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M mlir/include/mlir/IR/FunctionSupport.h
    M mlir/include/mlir/Transforms/DialectConversion.h
    M mlir/lib/IR/FunctionSupport.cpp
    M mlir/lib/Transforms/Utils/DialectConversion.cpp

  Log Message:
  -----------
  [mlir] Support FuncOpSignatureConversion for more FunctionLike ops.

This extracts the implementation of getType, setType, and getBody from
FunctionSupport.h into the mlir::impl namespace and defines them
generically in FunctionSupport.cpp. This allows them to be used
elsewhere for any FunctionLike ops that use FunctionType for their
type signature.

Using the new helpers, FuncOpSignatureConversion is generalized to
work with all such FunctionLike ops. Convenience helpers are added to
configure the pattern for a given concrete FunctionLike op type.

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D95021




More information about the All-commits mailing list