We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d942f5e commit 4c9cb97Copy full SHA for 4c9cb97
mlir/include/mlir/Dialect/EmitC/IR/EmitC.td
@@ -1110,9 +1110,11 @@ def EmitC_GlobalOp : EmitC_Op<"global", [Symbol]> {
1110
1111
```mlir
1112
// Global variable with an initial value.
1113
- emitc.global @x : emitc.array<2xf32> = dense<0.0, 2.0>
+ 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]>
1116
// External global variable
- emitc.global extern @x : emitc.array<2xf32>
1117
+ emitc.global extern @x : !emitc.array<2xf32>
1118
// Constant global variable with internal linkage
1119
emitc.global static const @x : i32 = 0
1120
```
0 commit comments