Skip to content

Commit ad453b0

Browse files
committed
Fix MLIR FuncOp documentation: declaration must be private (NFC)
1 parent 23e7da8 commit ad453b0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

mlir/include/mlir/Dialect/Func/IR/FuncOps.td

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,8 @@ def FuncOp : Func_Op<"func", [
246246

247247
```mlir
248248
// External function definitions.
249-
func.func @abort()
250-
func.func @scribble(i32, i64, memref<? x 128 x f32, #layout_map0>) -> f64
249+
func.func private @abort()
250+
func.func private @scribble(i32, i64, memref<? x 128 x f32, #layout_map0>) -> f64
251251

252252
// A function that returns its argument twice:
253253
func.func @count(%x: i64) -> (i64, i64)
@@ -256,13 +256,13 @@ def FuncOp : Func_Op<"func", [
256256
}
257257

258258
// A function with an argument attribute
259-
func.func @example_fn_arg(%x: i32 {swift.self = unit})
259+
func.func private @example_fn_arg(%x: i32 {swift.self = unit})
260260

261261
// A function with a result attribute
262-
func.func @example_fn_result() -> (f64 {dialectName.attrName = 0 : i64})
262+
func.func private @example_fn_result() -> (f64 {dialectName.attrName = 0 : i64})
263263

264264
// A function with an attribute
265-
func.func @example_fn_attr() attributes {dialectName.attrName = false}
265+
func.func private @example_fn_attr() attributes {dialectName.attrName = false}
266266
```
267267
}];
268268

0 commit comments

Comments
 (0)