[LLVMdev] [PATCH] parallel loop metadata
paul.redmond at intel.com
Tue Jan 29 13:27:03 PST 2013
On 2013-01-29, at 2:42 PM, Pekka Jääskeläinen wrote:
> Maybe the safe thing here is to rename it back to the honest
> "llvm.loop.parallel" or similar and we can add a separate one for
> the assumed_dep later on. This one would support the truly parallel
> loops (at least OpenMP for and OpenCL WIloops) where no compiler
> checking at all can be assumed by the programmer.
> Any objections? Paul Redmond?
I don't have any objections. I think the only requirement is that the semantics are clearly defined.
Personally I think this metadata should be used to guide the vectorizer only. I'm not sure how it will be used in the context of OpenMP or OpenCL. For OpenMP I assume you'd add this metadata to parallel_for loops. At what point do you insert the runtime calls? Does LLVM need to know how to target each runtime?
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
More information about the llvm-dev