←back to thread

188 points refset | 4 comments | | HN request time: 0.612s | source
Show context
RossBencina ◴[] No.41867167[source]
Is LLVM IR a stable target these days? I once heard of a project that got bit pretty hard with LLVM IR interface changes in the (not all that recent) past.
replies(2): >>41867338 #>>41867511 #
1. fooker ◴[] No.41867511[source]
As long as you use the C++ API, the pace of change is reasonable.

If you try to keep by by generating textual IR, it can be a nightmare.

replies(2): >>41867925 #>>41867947 #
2. michielderhaeg ◴[] No.41867925[source]
I think the bitcode parsers (binary and textual) are quite backwards compatible. Old bitcode IR will be upgraded transparently. So you might not have to keep up.
3. michielderhaeg ◴[] No.41867947[source]
I do agree that the pace is reasonable. Both with opaque pointers and the new pass manager API there was a quite a long transition period where both were supported before the old system was deprecated/removed. But with every new non-patch release, some part of the public API is changed and we have to adapt.
replies(1): >>41868454 #
4. almostgotcaught ◴[] No.41868454[source]
> But with every new non-patch release, some part of the public API is changed and we have to adapt.

bumping only on major release is recipe for pain and misery. everyone project i'm familiar with bumps weekly against HEAD. much more manageable.