[llvm-dev] SCEVExpander and IRBuilder

Sanjoy Das via llvm-dev
Sun, 29 Apr 2018 18:50:58 -0000

Hi Alexandre,

Sorry I missed this -- I was on vacation when you sent this.

SCEVExpander already has an IRBuilder in it but AFAICT it isn't
exposed as a public interface.  I'd be fine if you wanted to expose a
public `GetIRBuilder()` accessor that let a SCEVExpander client use
the same IRBuilder as SCEVExpander.

-- Sanjoy

On Fri, Apr 6, 2018 at 10:55 AM, Alexandre Isoard via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> Hello,
>
> I use SCEVExpander and IRBuilder to generate some code and I frequently
> end-up breaking dominance because the SCEVExpander insertion point and the
> IRBuilder insertion point do not advance in synchrony.
>
> Ideally, I could build a SCEVExpander based on an existing IRBuilder (so
> that they move each other). Or even better, SCEVExpander inherit from
> IRBuilder and basically extend it with SCEV expander capabilities (then I
> don't need to use a separate IRBuilder).
>
> Or maybe I am using them wrong? What is the intended way to use those?
>
> --
> Alexandre Isoard
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>