From: Tobias Gysi Date: Mon, 12 Jul 2021 12:31:30 +0000 (+0000) Subject: [mlir][linalg][python] Add auto-generated file warning (NFC). X-Git-Tag: llvmorg-14-init~1763 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b4e843ba3a9e759f7104d61b3d801344a604d412;p=platform%2Fupstream%2Fllvm.git [mlir][linalg][python] Add auto-generated file warning (NFC). Annotate LinalgNamedStructuredOps.yaml with a comment stating the file is auto-generated and should not be edited manually. Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D105809 --- diff --git a/mlir/include/mlir/Dialect/Linalg/IR/LinalgNamedStructuredOps.yaml b/mlir/include/mlir/Dialect/Linalg/IR/LinalgNamedStructuredOps.yaml index 04f9776..55cae71 100644 --- a/mlir/include/mlir/Dialect/Linalg/IR/LinalgNamedStructuredOps.yaml +++ b/mlir/include/mlir/Dialect/Linalg/IR/LinalgNamedStructuredOps.yaml @@ -1,3 +1,4 @@ +# Auto-generated file. Do not edit! --- !LinalgOpConfig metadata: !LinalgOpMetadata name: matmul diff --git a/mlir/python/mlir/dialects/linalg/opdsl/dump_oplib.py b/mlir/python/mlir/dialects/linalg/opdsl/dump_oplib.py index bacc0c3..05c06e7 100644 --- a/mlir/python/mlir/dialects/linalg/opdsl/dump_oplib.py +++ b/mlir/python/mlir/dialects/linalg/opdsl/dump_oplib.py @@ -81,6 +81,7 @@ def main(args): # Print. if args.format == "yaml": + print("# Auto-generated file. Do not edit!") print(yaml_dump_all(configs)) elif args.format == "repr": for config in configs: