[mlir] Finish removing FunctionPass
authorRiver Riddle <riddleriver@gmail.com>
Tue, 1 Feb 2022 21:27:46 +0000 (13:27 -0800)
committerRiver Riddle <riddleriver@gmail.com>
Tue, 8 Feb 2022 03:04:52 +0000 (19:04 -0800)
commit7889ff7f0008500710fd84838b66d5022c7acb2a
tree8c066165231a8a14c1bc5d78bbd5c14ac7fcb280
parent2418cd92c0340723bbf03630a91520089ec9ca7e
[mlir] Finish removing FunctionPass

FunctionPass has been deprecated in favor of OperationPass<FuncOp>
for a few weeks, and this commit finished the deprecation with deletion.
The only difference between the two is that FunctionPass filters out function
declarations. When updating references to FunctionPass, ensure that
the pass either can handle declarations or explicitly add in filtering.

See https://llvm.discourse.group/t/functionpass-deprecated-in-favor-of-operationpass-funcop

Differential Revision: https://reviews.llvm.org/D118735
mlir/include/mlir/Dialect/SCF/Utils/Utils.h
mlir/include/mlir/Pass/Pass.h
mlir/include/mlir/Pass/PassBase.td