Closed ShivaChen closed 2 months ago
This commit introduce CIRPtrStrideOpLowering to lower the following pattern to memref load or store.
Rewrite %0 = cir.cast(array_to_ptrdecay, %base) %1 = cir.ptr_stride(%0, %index) cir.load %1 To memref.load %base[%index]
I was rebasing to update the cir.const format changes in recent main branch. Perhaps I pushed the wrong button and it closed.
This commit introduce CIRPtrStrideOpLowering to lower the following pattern to memref load or store.
Rewrite %0 = cir.cast(array_to_ptrdecay, %base) %1 = cir.ptr_stride(%0, %index) cir.load %1 To memref.load %base[%index]