[PATCH] D47267: [UnrollAndJam] Add unroll_and_jam pragma handling
Michael Kruse via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 23 10:00:16 PDT 2018
Meinersbur added a comment.
This is straightforward in that it clones the implementation of `#pragma unroll` for `unroll_and_jam`.
Hence, it also shares the same problem of clang's LoopHints, namely that the order of loop transformations (if there are multiple on the same loop: loop distribution, vectorization, etc) is defined by the order of the passes in the pass pipeline, which should be an implementation detail.
I am currently working on this topic. Could we maybe disable the `#pragma clang loop unroll_and_jam` spelling ftm to avoid compatibility issues? However, the problem already exists for the other loop hints, so I will have to ensure compatibility with those anyway.
More information about the cfe-commits