This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][Loops] Expose transformations on loop.parallel in header (NFC).
ClosedPublic

Authored by herhut on Feb 27 2020, 1:50 AM.

Details

Summary

This change does not add any functionality but merely exposes existing
static functions to make the associated transformations available
outside of their testing passes.

Diff Detail

Event Timeline

herhut created this revision.Feb 27 2020, 1:50 AM

PTAL.

We probably have other transforms that should ultimately move to the header. This is a first step as the added transforms are not available otherwise.

herhut updated this revision to Diff 246908.Feb 27 2020, 4:13 AM

fix linter errors.

bkramer accepted this revision.Feb 27 2020, 4:15 AM
bkramer added a subscriber: bkramer.

looks good, thanks

This revision is now accepted and ready to land.Feb 27 2020, 4:15 AM
ftynse accepted this revision.Feb 27 2020, 6:31 AM
ftynse added inline comments.
mlir/lib/Dialect/LoopOps/Transforms/ParallelLoopFusion.cpp
171

Ultra-nit: drop trivial braces

rriddle added inline comments.Feb 27 2020, 8:36 AM
mlir/include/mlir/Dialect/LoopOps/Transforms.h
49

Could you please fix this.

herhut updated this revision to Diff 247031.Feb 27 2020, 10:53 AM
herhut marked 3 inline comments as done.

Comments...

Thanks!

mlir/include/mlir/Dialect/LoopOps/Transforms.h
49

Of course. Still not used to all the C++ cruft :(

This revision was automatically updated to reflect the committed changes.