Skip to content

Instantly share code, notes, and snippets.

@matthias-springer
Created October 3, 2025 13:06
Show Gist options
  • Select an option

  • Save matthias-springer/c7e754d1ec90bf4c35251bc2593624d7 to your computer and use it in GitHub Desktop.

Select an option

Save matthias-springer/c7e754d1ec90bf4c35251bc2593624d7 to your computer and use it in GitHub Desktop.
pattern_rollback_failure.mlir
// RUN: mlir-opt %s --test-emulate-narrow-int="arith-compute-bitwidth=1 memref-load-bitwidth=8"
func.func @vector_load_i4(%arg0: index, %arg1: index, %arg2: index, %arg3: index) -> vector<128xi4> {
%0 = memref.alloc(%arg0, %arg1) : memref<?x?xi4>
%1 = vector.load %0[%arg2, %arg3] : memref<?x?xi4>, vector<128xi4>
return %1 : vector<128xi4>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment