Skip to content

Commit 4c9cb97

Browse files
authored
[NFC][mlir][emitc] fix misspelling in description of emitc.global (#115548)
Missing `!` before `emitc.global` was added in the `EmitC.td`.
1 parent d942f5e commit 4c9cb97

File tree

1 file changed

+4
-2
lines changed
  • mlir/include/mlir/Dialect/EmitC/IR

1 file changed

+4
-2
lines changed

mlir/include/mlir/Dialect/EmitC/IR/EmitC.td

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,9 +1110,11 @@ def EmitC_GlobalOp : EmitC_Op<"global", [Symbol]> {
11101110

11111111
```mlir
11121112
// Global variable with an initial value.
1113-
emitc.global @x : emitc.array<2xf32> = dense<0.0, 2.0>
1113+
emitc.global @x : !emitc.array<2xf32> = dense<0.0>
1114+
// Global variable with an initial values.
1115+
emitc.global @x : !emitc.array<3xi32> = dense<[0, 1, 2]>
11141116
// External global variable
1115-
emitc.global extern @x : emitc.array<2xf32>
1117+
emitc.global extern @x : !emitc.array<2xf32>
11161118
// Constant global variable with internal linkage
11171119
emitc.global static const @x : i32 = 0
11181120
```

0 commit comments

Comments
 (0)