[Mlir-commits] [mlir] EmitC: Add emitc.global and emitc.get_global (#145) (PR #88701)
Simon Camphausen
llvmlistbot at llvm.org
Fri Apr 19 02:28:00 PDT 2024
================
@@ -1016,6 +1016,75 @@ def EmitC_VariableOp : EmitC_Op<"variable", []> {
let hasVerifier = 1;
}
+def EmitC_GlobalOp : EmitC_Op<"global", [Symbol]> {
+ let summary = "A global variable";
+ let description = [{
+ The `emitc.global` operation declares or defines a named global variable.
+ The backing memory for the variable is allocated statically and is
+ described by the type of the variable.
+ Optionally, and `initial_value` can be provided.
----------------
simon-camp wrote:
```suggestion
Optionally, an `initial_value` can be provided.
```
https://github.com/llvm/llvm-project/pull/88701
More information about the Mlir-commits
mailing list