[PATCH] support llvm.vectorization.vector_width metadata

Redmond, Paul paul.redmond at intel.com
Fri May 24 10:49:41 PDT 2013


Hi,

The attached patch modifies LoopVectorizer to recognize llvm.vectorization.vector_width metadata attached to llvm.loop metadata.

The llvm.loop.parallel metadata has been renamed to llvm.loop to be more generic. Loop::isAnnotatedParallel now looks for llvm.loop and associated llvm.mem.parallel_loop_access. If we decide that we still need an explicit llvm.loop.parallel metadata then it can be added as a child of llvm.loop.

Loop::setLoopID was added for symmetry and it is used in a forthcoming patch which preserves llvm.loop metadata in loop passes.

paul

-------------- next part --------------
A non-text attachment was scrubbed...
Name: vector_width.diff
Type: application/octet-stream
Size: 11175 bytes
Desc: vector_width.diff
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130524/f5a271bc/attachment.obj>


More information about the llvm-commits mailing list