[all-commits] [llvm/llvm-project] 2e36e0: [MLIR] Move eraseArguments and eraseResults to Fun...
mikeurbach via All-commits
all-commits at lists.llvm.org
Tue Nov 3 15:54:03 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 2e36e0dad52b07f0e856f939d530d47bbe8a74ac
https://github.com/llvm/llvm-project/commit/2e36e0dad52b07f0e856f939d530d47bbe8a74ac
Author: mikeurbach <mikeurbach at gmail.com>
Date: 2020-11-03 (Tue, 03 Nov 2020)
Changed paths:
M mlir/docs/Traits.md
M mlir/include/mlir/IR/Block.h
M mlir/include/mlir/IR/Function.h
M mlir/include/mlir/IR/FunctionSupport.h
M mlir/include/mlir/IR/Types.h
M mlir/lib/Dialect/Linalg/Transforms/DropUnitDims.cpp
M mlir/lib/IR/Block.cpp
M mlir/lib/IR/CMakeLists.txt
M mlir/lib/IR/Function.cpp
A mlir/lib/IR/FunctionSupport.cpp
M mlir/lib/IR/Types.cpp
Log Message:
-----------
[MLIR] Move eraseArguments and eraseResults to FunctionLike
Previously, they were only defined for `FuncOp`.
To support this, `FunctionLike` needs a way to get an updated type
from the concrete operation. This adds a new hook for that purpose,
called `getTypeWithoutArgsAndResults`.
For now, `FunctionLike` continues to assume the type is
`FunctionType`, and concrete operations that use another type can hide
the `getType`, `setType`, and `getTypeWithoutArgsAndResults` methods.
Reviewed By: rriddle
Differential Revision: https://reviews.llvm.org/D90363
More information about the All-commits
mailing list