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]
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]