[mlir][linalg][python] Add auto-generated file warning (NFC).
authorTobias Gysi <gysit@google.com>
Mon, 12 Jul 2021 12:31:30 +0000 (12:31 +0000)
committerTobias Gysi <gysit@google.com>
Mon, 12 Jul 2021 12:54:14 +0000 (12:54 +0000)
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

mlir/include/mlir/Dialect/Linalg/IR/LinalgNamedStructuredOps.yaml
mlir/python/mlir/dialects/linalg/opdsl/dump_oplib.py

index bacc0c3..05c06e7 100644 (file)
@@ -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: