[LLVMdev] Backends supporting multiple LLVM revisions...

Eric Christopher echristo at gmail.com
Fri Dec 7 11:01:00 PST 2012


Currently top of tree is top of tree and no backwards compatibility, other
than the C backend, is promised. I think that instead of asserting that you
need to check in conditional compilation for a backend, perhaps, you would
be open to other options to accomplish the same needs?

My suggestion would be to check in or make some branches for the two older
versions and then apply your patches on top of that, letting people know
where to get those sources so that they can build what they need. If this
won't work then perhaps you can explain why you think you need to have
multiple versions available in top of tree?

Thanks!

-eric


On Fri, Dec 7, 2012 at 10:08 AM, Relph, Richard <Richard.Relph at amd.com>wrote:

> Is there a convention for how the LLVM community prefers to have
> conditional compilation in code intended to be checked in to llvm.org?
>
> Our goal is a single code base that can support multiple LLVM revisions,
> including LLVM TOT. In the long run, of course, we'll simply be able to
> refer to the backend revision that corresponds to the revision of LLVM in
> use. If fixes between TOT and that older version are desired,
> cherry-picking from trunk will be required, of course.
>
> But in the short run, that's not viable. We have to support a minimum of 3
> different LLVM versions with our backend… LLVM TOT, the LLVM version used
> for AMD's OpenCL as shipped for Windows and Linux, and the LLVM version
> used for Apple's OpenCL as shipped for Mac OS… all different today and for
> the foreseeable future.
>
> Between the time that we get AMDIL "in" to llvm.org and the time that the
> other platforms using AMDIL are up to the level of LLVM at that initial
> check-in, we'll need to have conditional code in AMDIL.
>
> Thanks,
> Richard
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121207/06bff7ff/attachment.html>


More information about the llvm-dev mailing list