1. Apr 04, 2024
    • Matthias Springer's avatar
      [mlir][SCF] Add `scf.for` bufferization preprocessing pass · 4c819864
      Matthias Springer authored
      Add a bufferization preprocessing pass for `scf.for` loops to support loops where a yielded tensor value does not bufferize to the equivalent corresponding iter_arg buffer. This preprocessing works around a limitation of `scf.for` bufferization by inserting additional buffer copies for yielded tensors.
      
      This preprocessing can be used to support most cases where One-Shot Bufferize fails to bufferize the IR with the following error message:
      ```
      error: Yield operand #0 is not equivalent to the corresponding iter bbArg
      ```
      4c819864
  2. Apr 02, 2024
  3. Apr 01, 2024