search for: optpassgate

Displaying 19 results from an estimated 19 matches for "optpassgate".

2018 Mar 29
2
Opt Bisect layering
& now looking back at the patch-in-progress, I see it allows setting the OptBisector/OptPassGate as suggested in (2). If that becomes the /only/ option (ie: LLVMContext has no default OptPassGate) then the virtual interface could be kept down in IR (though it's still a bit questionable to have those Analysis types (Loop, Region, CallGraphSCC) even declared in IR). Then the implementation...
2018 Mar 29
0
Opt Bisect layering
So... looking at OptBisect, I have a few thoughts: 1) what's the purpose of the virtual interface/OptPassGate? I'm guessing maybe that worked around the circular referencing in these APIs? hmm, no, I suppose that wouldn't work/be relevant here. 2) Why is OptBisector a ManagedStatic? That seems pretty antithetical to the role of LLVMContext. When/why would a user be bisecting over multiple LLVMCont...
2018 Mar 22
2
Opt Bisect layering
...ould not make the caller pass the description of the IR unit. That is because it would result in the description generated every time even if OptBisect is disabled. Description generation is not very chip. Thinking on the OptBisect extension, I believe passing the units are the right choice because OptPassGates may use them to make pass skipping decisions. -Yevgeny Rouban ----------------------------------------------------------- *From:* llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org <llvm-dev-bounces at lists.llvm.org>] *On Behalf Of *Kaylor, Andrew via llvm- dev *Sent:* Thursday, March 22...
2018 Apr 03
0
Opt Bisect layering
On 03/30/2018 12:05 AM, David Blaikie via llvm-dev wrote: > & now looking back at the patch-in-progress, I see it allows setting the OptBisector/OptPassGate as suggested in (2). Well, the patch currently discussed does not attempt to solve the passgate object management issue. It is left for the discretion of passgate object provider. > > If that becomes the /only/ option (ie: LLVMContext has no default OptPassGate) then the virtual interfac...
2018 Apr 03
2
Opt Bisect layering
On Mon, Apr 2, 2018 at 11:32 PM Fedor Sergeev via llvm-dev < llvm-dev at lists.llvm.org> wrote: > On 03/30/2018 12:05 AM, David Blaikie via llvm-dev wrote: > > & now looking back at the patch-in-progress, I see it allows setting > the OptBisector/OptPassGate as suggested in (2). > Well, the patch currently discussed does not attempt to solve the > passgate object management issue. > It is left for the discretion of passgate object provider. > > > > > If that becomes the /only/ option (ie: LLVMContext has no default > OptPas...
2018 Apr 03
0
Opt Bisect layering
...; > On Mon, Apr 2, 2018 at 11:32 PM Fedor Sergeev via llvm-dev <llvm-dev at lists.llvm.org> wrote: > >     On 03/30/2018 12:05 AM, David Blaikie via llvm-dev wrote: >      > & now looking back at the patch-in-progress, I see it allows setting >     the OptBisector/OptPassGate as suggested in (2). >     Well, the patch currently discussed does not attempt to solve the >     passgate object management issue. >     It is left for the discretion of passgate object provider. > >      > >      > If that becomes the /only/ option (ie: LLVMContext...
2018 Apr 03
2
Opt Bisect layering
...at 11:32 PM Fedor Sergeev via llvm-dev > <llvm-dev at lists.llvm.org> wrote: > > > > On 03/30/2018 12:05 AM, David Blaikie via llvm-dev wrote: > > > & now looking back at the patch-in-progress, I see it allows > setting > > the OptBisector/OptPassGate as suggested in (2). > > Well, the patch currently discussed does not attempt to solve the > > passgate object management issue. > > It is left for the discretion of passgate object provider. > > > > > > > > If that becomes the /...
2018 May 03
2
Opt Bisect layering
...at lists.llvm.org>> wrote: >  > >  >     On 03/30/2018 12:05 AM, David Blaikie via llvm-dev wrote: >  >      > & now looking back at the patch-in-progress, I see > it allows > setting >  >     the OptBisector/OptPassGate as suggested in (2). >  >     Well, the patch currently discussed does not attempt to > solve the >  >     passgate object management issue. >  >     It is left for the discretion of passgate object provider. >  > >  >...
2018 Apr 23
0
Opt Bisect layering
...v via llvm-dev >> <llvm-dev at lists.llvm.org> wrote: >> > >> > On 03/30/2018 12:05 AM, David Blaikie via llvm-dev wrote: >> > > & now looking back at the patch-in-progress, I see it allows >> setting >> > the OptBisector/OptPassGate as suggested in (2). >> > Well, the patch currently discussed does not attempt to solve the >> > passgate object management issue. >> > It is left for the discretion of passgate object provider. >> > >> > > >> > &g...
2018 Jun 07
5
RFC: Pass Execution Instrumentation interface
...convenience wrapper to provide an access to PassInstrumentation via analysis framework.      If using analysis is not convenient (?legacy) then PassInstrumentation can be queried      directly from LLVMContext. Additional goals ================   - layering problem     Currently OptBisect/OptPassGate has layering issue - interface dependencies on all the "IR units",     even those that are analyses - Loop, CallGraphSCC.     Generic PassInstrumentation facilitiy allows to inject arbitrary call-backs in run-time,     removing any compile-time interface dependencies on internals of...
2018 Jun 08
2
RFC: Pass Execution Instrumentation interface
...a convenience wrapper to provide an access to PassInstrumentation via analysis framework. If using analysis is not convenient (?legacy) then PassInstrumentation can be queried directly from LLVMContext. Additional goals ================ - layering problem Currently OptBisect/OptPassGate has layering issue - interface dependencies on all the "IR units", even those that are analyses - Loop, CallGraphSCC. Generic PassInstrumentation facilitiy allows to inject arbitrary call-backs in run-time, removing any compile-time interface dependencies on internals of t...
2018 Jun 07
2
RFC: Pass Execution Instrumentation interface
...ysis framework. >       If using analysis is not convenient (?legacy) then > PassInstrumentation can be queried >       directly from LLVMContext. > > > Additional goals > ================ > >    - layering problem >      Currently OptBisect/OptPassGate has layering issue - interface > dependencies on all the "IR units", >      even those that are analyses - Loop, CallGraphSCC. > >      Generic PassInstrumentation facilitiy allows to inject arbitrary > call-backs in run-time, >      removing any comp...
2018 May 06
0
Need guidance to work on NEW PASS managers bugs
...ter that can be set and if present use it instead for normal counter value check to decide if a pass should be executed or not. Or some other mechanism to provide this feature. - I am not completely sure but if we are able provide custom callback feature then we may be able to remove OptBiset and OptPassGate class. Anything missed here? Please share your thoughts. -Vivek On Thu, May 3, 2018 at 12:34 AM, Kaylor, Andrew <andrew.kaylor at intel.com> wrote: > As a point of clarification, optnone is already being handled by the pass > itself in the legacy implementation. The skip[IR unit]...
2018 Jun 08
2
RFC: Pass Execution Instrumentation interface
...t;>>> PassInstrumentation can be queried >>>> directly from LLVMContext. >>>> >>>> >>>> Additional goals >>>> ================ >>>> >>>> - layering problem >>>> Currently OptBisect/OptPassGate has layering issue - interface >>>> dependencies on all the "IR units", >>>> even those that are analyses - Loop, CallGraphSCC. >>>> >>>> Generic PassInstrumentation facilitiy allows to inject arbitrary >>>> call-backs...
2018 May 07
1
Need guidance to work on NEW PASS managers bugs
...and if present use it instead for normal counter > value check to decide if a pass should > be executed or not. Or some other mechanism to provide this feature. > - I am not completely sure but if we are able provide custom callback > feature then we may be able to remove OptBiset and OptPassGate > class. > > Anything missed here? > > Please share your thoughts. > -Vivek > > On Thu, May 3, 2018 at 12:34 AM, Kaylor, Andrew <andrew.kaylor at intel.com> > wrote: > >> As a point of clarification, optnone is already being handled by the pass >> i...
2018 May 02
2
Need guidance to work on NEW PASS managers bugs
As a point of clarification, optnone is already being handled by the pass itself in the legacy implementation. The skip[IR unit] functions are provided by the pass base classes, and the attribute is checked there. This happens any time the legacy wrapper is run, no matter how it is run. Regarding the opt-bisect design, I’m not particularly fond of the managed static either, but I do want to
2018 Jun 11
2
RFC: Pass Execution Instrumentation interface
...; directly from LLVMContext. > > > Additional goals > ================ > > - layering problem > Currently OptBisect/OptPassGate has layering issue > - interface > dependencies on all the "IR units", > even those that are analyses - Loop, CallGraphSCC. > > Generic PassInstrumentation facilitiy allows...
2018 May 01
4
Need guidance to work on NEW PASS managers bugs
On Tue, May 1, 2018 at 10:52 PM, Kaylor, Andrew <andrew.kaylor at intel.com> wrote: > Hi Vivek, > > > > Have you read the mailing list threads on this topic? I don’t believe > we’re quite ready to make the switch yet. There was a discussion last > October about what was left to be done. I’m sure it has been discussed > since then too. Here’s a link to the start of
2018 Sep 26
12
OptBisect implementation for new pass manager
Greetings! As the generic Pass Instrumentation framework for new pass manager is finally *in*, I'm glad to start the discussion on implementation of -opt-bisect through that framework. As it has already been discovered while porting other features (namely, -time-passes) blindly copying the currently existing legacy implementation is most likely not a perfect way forward. Now is a chance