On Sun, Jun 03, 2012 at 08:28:39PM +0300, Pekka Enberg wrote:
> On Sun, Jun 03, 2012 at 10:01:31AM +0300, Pekka Enberg wrote:
> >> The LLVM API seems to change quite a bit over time so we probably only
> >> want to try to support few releases at a time.
>
> On Sun, Jun 3, 2012 at 8:17 AM, Gianluca Guida <
glg...@tlbflush.org> wrote:
> > This, or we could attempt at forking master to a llvm-version-specific branch
> > every time they do a release, keeping this way development on LLVM-trunk and
> > mantaining only a couple of branches for bug fixing.
> >
> > Any opinion?
>
> Who would benefit from the LLVM-version-specific branch? If there are
> users out there that depend on libcpu, we should do proper releases
> that are, of course, tied to a specific LLVM version.
Well, Ok. I skipped some part. I would really like to keep the architectures
frontend independent from LLVM. Right now we mostly have it -- not sure if
completely or not, anyway it's doable -- and I would like to enforce this.
It would mean that the only component that will be affected by LLVM changes
will be the libcpu backend itself.
Keeping around the backend working with older versions of LLVM will make
users happy, developers of frontends won't be affected and the core part
of libcpu could be rewritt^H^H^H^H^H^H^Himproved using new features available
on trunk LLVM.
Furthermore, we would get a product always in line with LLVM, so when we get
something useful we could even get it listed as a LLVM project.
> So I don't think it's worth it. The only thing I hope is that we don't
> track LLVM master too closely and force libcpu developers to upgrade
> LLVM every time they pull from libcpu git, that's all.
In my scheme, is up to what you mean by libcpu developer. If you want to
develop arch frontends, a stable interface will help us all and you won't
be affected.
If you want to change the inner architecture of libcpu, then yes, you'd be
affected, but not at the extreme to update llvm everytime you pull libcpu.
I might have over-simplified things here, but I hope this makes my point clearer.
Gianluca