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 cf88e69 commit 9a7e7afCopy full SHA for 9a7e7af
mlir/include/mlir/Dialect/EmitC/IR/EmitC.td
@@ -1111,6 +1111,8 @@ def EmitC_GlobalOp : EmitC_Op<"global", [Symbol]> {
1111
```mlir
1112
// Global variable with an initial value.
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]>
1116
// External global variable
1117
emitc.global extern @x : !emitc.array<2xf32>
1118
// Constant global variable with internal linkage
0 commit comments