[Mlir-commits] [mlir] [MLIR] Implement emulation of static indexing subbyte type vector stores (PR #115922)

Han-Chung Wang llvmlistbot at llvm.org
Wed Nov 20 10:59:43 PST 2024


================
@@ -306,6 +307,73 @@ emulatedVectorLoad(OpBuilder &rewriter, Location loc, Value base,
       newLoad);
 }
 
+/// Atomically store a subbyte-sized value to memory, with a mask.
+static void atomicStore(OpBuilder &rewriter, Location loc,
+                        TypedValue<MemRefType> emulatedMemref,
+                        Value emulatedIndex, TypedValue<VectorType> value,
+                        Value mask, int64_t scale) {
----------------
hanhanW wrote:

Couple nits:

- I'd rename it to builder instead of rewriter.
- `emulated*` seems to be a new terminology? Should we just use `linearized*` to avoid confusion?
- Should we use `numSrcElemsPerDest` instead of `scale`?


https://github.com/llvm/llvm-project/pull/115922


More information about the Mlir-commits mailing list