pingshiyu
pingshiyu
I was compiling the below program using: `mlir-opt --remove-dead-values out.mlir` ```mlir "builtin.module"() ({ ^bb0(): "func.func"() ({ ^bb0(%1 : i1, %2 : i1): %3 = "arith.constant"() {value=1 : i1} : ()...
The code below tries to calculate: `arith.floordivsi (1 - 2^63), -1`, which should give a well defined result equalling `2^63 - 1` (as far as I can tell from the...
Would love a way to print out `tensor`s, in a similar way to `vector.print`. Seems like the alternative (relatively simple way) would be to first lower to memref (after talking...
Reproduction: https://godbolt.org/z/6jMa76WEb ```mlir module { func.func @main() { %ca = arith.constant 5 : index %c1 = call @get_idx() : () -> (index) %sum, %overflow = arith.addui_extended %ca, %c1 : index,...
The code below computes `mulsi_extended (-1) * (-1) : i1`, which should yield an extended vector with value `1 : i2`, or the bitvector `01`. However, canonicalization seems to cause...
The following code computes `ceildivsi -128, 7`, with an expected result of `-18`. However, `--convert-arith-to-llvm` produces an incorrect output of `18`. Reproduction: https://godbolt.org/z/cWf96T8v3
For the following program, ```mlir module { func.func @main() { %c = arith.constant 100 : i64 %0 = call @c0() : () -> i64 %1 = arith.muli %c, %0 :...
similar issue to: https://github.com/llvm/llvm-project/issues/90238 The following code: ```mlir module { func.func @main() { %3 = call @gt_i8_max() : () -> index %4 = arith.index_cast %3 : index to i8 %5...
I've been toying with the semantics of `linalg.generic` lately, and I came across this program: ```mlir module { func.func private @printMemrefI64(tensor) func.func private @printMemrefI32(tensor) func.func private @printMemrefF64(tensor) func.func private @printMemrefF32(tensor)...
After observing [some interesting behaviour ](https://discourse.llvm.org/t/linalg-generic-issue-understanding-indexing-map-semantics/79256) recently, I learned (from @ftynse) that there is a _convention_ where `linalg.generic` operations should always write to the output buffer _fully_, i.e. write to...