[Mlir-commits] [mlir] Allow SymbolUserOpInterface operators to be used in RemoveDeadValues Pass (PR #117405)
M. Zeeshan Siddiqui
llvmlistbot at llvm.org
Fri Nov 22 16:47:39 PST 2024
================
@@ -3,9 +3,10 @@
// The IR is updated regardless of memref.global private constant
//
module {
- memref.global "private" constant @__something_global : memref<i32> = dense<0>
+ memref.global "private" constant @global_buffer : memref<5xi32> = dense<[1, 2, 3, 4, 5]> : tensor<5xi32>
func.func @main(%arg0: i32) -> i32 {
%0 = tensor.empty() : tensor<10xbf16>
+ %1 = memref.get_global @global_buffer : memref<5xi32>
----------------
codemzs wrote:
@joker-eph We are checking the output, below the output after running this test but I have added and extra FILECHECK for `memref.global`
```
module {
memref.global "private" constant @__constant_4xi32 : memref<4xi32> = dense<[1, 2, 3, 4]> {alignment = 16 : i64}
func.func @main(%arg0: i32) -> i32 {
return %arg0 : i32
}
}
```
https://github.com/llvm/llvm-project/pull/117405
More information about the Mlir-commits
mailing list