[LLVMdev] [RFC] OpenMP Representation in LLVM IR
Krzysztof Parzyszek
kparzysz at codeaurora.org
Wed Nov 7 09:31:05 PST 2012
On 10/1/2012 8:06 PM, greened at obbligato.org wrote:
>
> I think this is a bad idea. OpenMP is not Low Level and I can't think
> of a good reason to start putting OpenMP support in the IR.
OpenMP is as low-level as loop nest optimizations or inlining. There is
nothing about it that would make it not fit in the LLVM's model.
As for reasons, here are two:
1. Implementing parallelization directives in the IR would allow
multiple front-ends to use the same interface to express SMP semantics
without having each one of them to do the actual implementation.
2. Having the paralellization infrastructure implemented in LLVM would
allow auto-parallelization to be added at some point without adding a
new parallelization infrastructure to the optimizer (on top of what the
front-ends would have already implemented).
-Krzysztof
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation
More information about the llvm-dev
mailing list