[Mlir-commits] [mlir] [NFC][mlir][emitc] fix misspelling in description of emitc.global (PR #115548)

Andrey Timonin llvmlistbot at llvm.org
Fri Nov 8 13:54:07 PST 2024


https://github.com/EtoAndruwa created https://github.com/llvm/llvm-project/pull/115548

Missing `!` before `emitc.global` was added in the `EmitC.td`.

>From 9e13316f978e9e3578828414f8003075e1e07e22 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=D0=A2=D0=B8=D0=BC=D0=BE=D0=BD=D0=B8=D0=BD=20=D0=90=D0=BD?=
 =?UTF-8?q?=D0=B4=D1=80=D0=B5=D0=B9?= <atimonin at ispras.ru>
Date: Sat, 9 Nov 2024 00:52:19 +0300
Subject: [PATCH] [NFC][mlir][emitc] fix misspelling in description of
 emitc.global

---
 mlir/include/mlir/Dialect/EmitC/IR/EmitC.td | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mlir/include/mlir/Dialect/EmitC/IR/EmitC.td b/mlir/include/mlir/Dialect/EmitC/IR/EmitC.td
index 7c84ab4dd39eb7..91916c1c4493dd 100644
--- a/mlir/include/mlir/Dialect/EmitC/IR/EmitC.td
+++ b/mlir/include/mlir/Dialect/EmitC/IR/EmitC.td
@@ -1110,9 +1110,9 @@ def EmitC_GlobalOp : EmitC_Op<"global", [Symbol]> {
 
     ```mlir
     // Global variable with an initial value.
-    emitc.global @x : emitc.array<2xf32> = dense<0.0, 2.0>
+    emitc.global @x : !emitc.array<2xf32> = dense<0.0, 2.0>
     // External global variable
-    emitc.global extern @x : emitc.array<2xf32>
+    emitc.global extern @x : !emitc.array<2xf32>
     // Constant global variable with internal linkage
     emitc.global static const @x : i32 = 0
     ```



More information about the Mlir-commits mailing list