This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][transform] add ShareForallOperandsOp
Needs ReviewPublic

Authored by makslevental on Aug 24 2023, 8:31 AM.

Details

Summary

This is a straight copy+paste from iree.

Diff Detail

Event Timeline

makslevental created this revision.Aug 24 2023, 8:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 24 2023, 8:31 AM

removed commented code

makslevental published this revision for review.Aug 25 2023, 11:09 AM
makslevental edited the summary of this revision. (Show Details)

Note, it wasn't clear where to transplant this to so let me know if this isn't the right place.

Herald added a project: Restricted Project. · View Herald TranscriptAug 25 2023, 11:10 AM
ftynse added inline comments.Sep 4 2023, 6:34 AM
mlir/include/mlir/Dialect/Tensor/TransformOps/TensorTransformOps.td
160

The operation name should have a prefix corresponding to the extension that contains it. This also looks like more of a loop transformation that belongs to SCFTransformOps than a tensor transformation.

187

This should be mode prominent.

196

An example would be helpful.

mlir/lib/Dialect/Tensor/TransformOps/TensorTransformOps.cpp
188

Nit: no need to prefix with mlir:: in mlir codebase.

190

Nit: llvm::hasNItems