[Mlir-commits] [mlir] ad453b0 - Fix MLIR FuncOp documentation: declaration must be private (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Thu Oct 5 09:52:16 PDT 2023
Author: Mehdi Amini
Date: 2023-10-05T09:51:50-07:00
New Revision: ad453b036cce1b61be7cb7697e801eacf97a1905
URL: https://github.com/llvm/llvm-project/commit/ad453b036cce1b61be7cb7697e801eacf97a1905
DIFF: https://github.com/llvm/llvm-project/commit/ad453b036cce1b61be7cb7697e801eacf97a1905.diff
LOG: Fix MLIR FuncOp documentation: declaration must be private (NFC)
Added:
Modified:
mlir/include/mlir/Dialect/Func/IR/FuncOps.td
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/Func/IR/FuncOps.td b/mlir/include/mlir/Dialect/Func/IR/FuncOps.td
index 04b90ce107755f9..f4b43a590470540 100644
--- a/mlir/include/mlir/Dialect/Func/IR/FuncOps.td
+++ b/mlir/include/mlir/Dialect/Func/IR/FuncOps.td
@@ -246,8 +246,8 @@ def FuncOp : Func_Op<"func", [
```mlir
// External function definitions.
- func.func @abort()
- func.func @scribble(i32, i64, memref<? x 128 x f32, #layout_map0>) -> f64
+ func.func private @abort()
+ func.func private @scribble(i32, i64, memref<? x 128 x f32, #layout_map0>) -> f64
// A function that returns its argument twice:
func.func @count(%x: i64) -> (i64, i64)
@@ -256,13 +256,13 @@ def FuncOp : Func_Op<"func", [
}
// A function with an argument attribute
- func.func @example_fn_arg(%x: i32 {swift.self = unit})
+ func.func private @example_fn_arg(%x: i32 {swift.self = unit})
// A function with a result attribute
- func.func @example_fn_result() -> (f64 {dialectName.attrName = 0 : i64})
+ func.func private @example_fn_result() -> (f64 {dialectName.attrName = 0 : i64})
// A function with an attribute
- func.func @example_fn_attr() attributes {dialectName.attrName = false}
+ func.func private @example_fn_attr() attributes {dialectName.attrName = false}
```
}];
More information about the Mlir-commits
mailing list