Expose the respective patterns as a transform op. Differential Revision: https://reviews.llvm.org/D152346