[Mlir-commits] [mlir] d288656 - [mlir] Mark FunctionPass as deprecated using the C++14 deprecated attribute

River Riddle llvmlistbot at llvm.org
Tue Jan 18 20:21:15 PST 2022


Author: River Riddle
Date: 2022-01-18T20:18:47-08:00
New Revision: d288656368e3b0e7d313689232c44daf81f13021

URL: https://github.com/llvm/llvm-project/commit/d288656368e3b0e7d313689232c44daf81f13021
DIFF: https://github.com/llvm/llvm-project/commit/d288656368e3b0e7d313689232c44daf81f13021.diff

LOG: [mlir] Mark FunctionPass as deprecated using the C++14 deprecated attribute

Added: 
    

Modified: 
    mlir/include/mlir/Pass/Pass.h

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Pass/Pass.h b/mlir/include/mlir/Pass/Pass.h
index 8a543b2948d75..ebc92414e6175 100644
--- a/mlir/include/mlir/Pass/Pass.h
+++ b/mlir/include/mlir/Pass/Pass.h
@@ -383,7 +383,11 @@ template <> class OperationPass<void> : public Pass {
 ///   - A 'void runOnFunction()' method.
 ///   - A 'StringRef getName() const' method.
 ///   - A 'std::unique_ptr<Pass> clonePass() const' method.
-class FunctionPass : public OperationPass<FuncOp> {
+class [[deprecated(
+    "Use OperationPass<FuncOp> instead: See "
+    "https://llvm.discourse.group/t/"
+    "functionpass-deprecated-in-favor-of-operationpass-funcop")]] FunctionPass
+    : public OperationPass<FuncOp> {
 public:
   using OperationPass<FuncOp>::OperationPass;
 


        


More information about the Mlir-commits mailing list