File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
mlir/include/mlir/Dialect/EmitC/IR Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1126,8 +1126,8 @@ def EmitC_GlobalOp : EmitC_Op<"global", [Symbol]> {
11261126 let summary = "A global variable";
11271127 let description = [{
11281128 The `emitc.global` operation declares or defines a named global variable.
1129- The backing memory for the variable is allocated statically and is
1130- described by the type of the variable .
1129+ The backing memory for the variable is allocated statically and described by
1130+ the variable's type, which must be an EmitC type .
11311131 Optionally, an `initial_value` can be provided.
11321132 Internal linkage can be specified using the `static_specifier` unit attribute
11331133 and external linkage can be specified using the `extern_specifier` unit attribute.
@@ -1147,6 +1147,8 @@ def EmitC_GlobalOp : EmitC_Op<"global", [Symbol]> {
11471147 emitc.global @x : !emitc.array<2xf32> = dense<0.0>
11481148 // Global variable with an initial values.
11491149 emitc.global @x : !emitc.array<3xi32> = dense<[0, 1, 2]>
1150+ // Global variable with an opaque initial value.
1151+ emitc.global @y : !emitc.opaque<"char"> = #emitc.opaque<"CHAR_MIN">
11501152 // External global variable
11511153 emitc.global extern @x : !emitc.array<2xf32>
11521154 // Constant global variable with internal linkage
You can’t perform that action at this time.
0 commit comments