[Mlir-commits] [mlir] 4c9cb97 - [NFC][mlir][emitc] fix misspelling in description of emitc.global (#115548)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Nov 13 03:17:03 PST 2024
Author: Andrey Timonin
Date: 2024-11-13T12:17:00+01:00
New Revision: 4c9cb974898c6a6fe3a4d3b1e2eb61c29dd1af28
URL: https://github.com/llvm/llvm-project/commit/4c9cb974898c6a6fe3a4d3b1e2eb61c29dd1af28
DIFF: https://github.com/llvm/llvm-project/commit/4c9cb974898c6a6fe3a4d3b1e2eb61c29dd1af28.diff
LOG: [NFC][mlir][emitc] fix misspelling in description of emitc.global (#115548)
Missing `!` before `emitc.global` was added in the `EmitC.td`.
Added:
Modified:
mlir/include/mlir/Dialect/EmitC/IR/EmitC.td
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/EmitC/IR/EmitC.td b/mlir/include/mlir/Dialect/EmitC/IR/EmitC.td
index 7c84ab4dd39eb7..071541fa98950f 100644
--- a/mlir/include/mlir/Dialect/EmitC/IR/EmitC.td
+++ b/mlir/include/mlir/Dialect/EmitC/IR/EmitC.td
@@ -1110,9 +1110,11 @@ 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>
+ // Global variable with an initial values.
+ emitc.global @x : !emitc.array<3xi32> = dense<[0, 1, 2]>
// 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