[Mlir-commits] [mlir] a0e1c13 - Remove deprecated `parseSourceFile/String()` overloads.

Christian Sigg llvmlistbot at llvm.org
Mon Apr 11 05:11:16 PDT 2022


Author: Christian Sigg
Date: 2022-04-11T14:11:08+02:00
New Revision: a0e1c13caef214da0c38a26e8a61b5a23c3fce20

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

LOG: Remove deprecated `parseSourceFile/String()` overloads.

Reviewed By: rriddle

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

Added: 
    

Modified: 
    mlir/include/mlir/Parser/Parser.h

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Parser/Parser.h b/mlir/include/mlir/Parser/Parser.h
index 5bbac02c905ad..ae59ea2896c72 100644
--- a/mlir/include/mlir/Parser/Parser.h
+++ b/mlir/include/mlir/Parser/Parser.h
@@ -204,26 +204,6 @@ inline OwningOpRef<ContainerOpT> parseSourceString(llvm::StringRef sourceStr,
       &block, context, sourceFileLoc);
 }
 
-/// TODO: These methods are deprecated in favor of the above template versions.
-/// They should be removed when usages have been updated.
-[[deprecated("use parseSourceFile<ModuleOp>")]] inline OwningOpRef<ModuleOp>
-parseSourceFile(const llvm::SourceMgr &sourceMgr, MLIRContext *context) {
-  return parseSourceFile<ModuleOp>(sourceMgr, context);
-}
-[[deprecated("use parseSourceFile<ModuleOp>")]] inline OwningOpRef<ModuleOp>
-parseSourceFile(llvm::StringRef filename, MLIRContext *context) {
-  return parseSourceFile<ModuleOp>(filename, context);
-}
-[[deprecated("use parseSourceFile<ModuleOp>")]] inline OwningOpRef<ModuleOp>
-parseSourceFile(llvm::StringRef filename, llvm::SourceMgr &sourceMgr,
-                MLIRContext *context) {
-  return parseSourceFile<ModuleOp>(filename, sourceMgr, context);
-}
-[[deprecated("use parseSourceString<ModuleOp>")]] inline OwningOpRef<ModuleOp>
-parseSourceString(llvm::StringRef moduleStr, MLIRContext *context) {
-  return parseSourceString<ModuleOp>(moduleStr, context);
-}
-
 /// This parses a single MLIR attribute to an MLIR context if it was valid.  If
 /// not, an error message is emitted through a new SourceMgrDiagnosticHandler
 /// constructed from a new SourceMgr with a single a MemoryBuffer wrapping


        


More information about the Mlir-commits mailing list