In this patch, we are adding a copy permutation to the transform.promote op. This option is available when using the new mapping attribute to the transform.promote op. This allows changing the logical view of the data (memref.subview) using memref.transpose without moving the data.
If the copy permutation is given by the user, the result operation will be the generated operation linalg.generic otherwise the original linalg target operation.