search for: daginit

Displaying 8 results from an estimated 8 matches for "daginit".

Did you mean: aginst
2011 Jul 15
2
[LLVMdev] select1st, select2nd
...ct2nd exist somewhere within LLVM or is there some >> equivalent? If not, I'll add it. > > Is this making the resultant loop simpler? C++ without lambda's isn't > very friendly to functors, what is the before/after effect of doing > this? It's going to unify the DagInit constructors into one piece of code. The problem now is there are two constructors. One takes a vector of pairs and the other takes two vectors. They each make sense in their use contexts but it results in a lot of code duplication when moving DagInit to a uniqued pool implementation. I wanted t...
2011 Jul 15
3
[LLVMdev] select1st, select2nd
I've run into a use case where I'd like to use a mapped_iterator to iterator the 1st (or 2nd) items in a sequence of std::pairs. Does select1st/select2nd exist somewhere within LLVM or is there some equivalent? If not, I'll add it. -Dave
2011 Jul 15
0
[LLVMdev] select1st, select2nd
On Jul 15, 2011, at 12:35 PM, David Greene wrote: > I've run into a use case where I'd like to use a mapped_iterator to > iterator the 1st (or 2nd) items in a sequence of std::pairs. Does > select1st/select2nd exist somewhere within LLVM or is there some > equivalent? If not, I'll add it. Is this making the resultant loop simpler? C++ without lambda's isn't
2011 Jul 16
0
[LLVMdev] select1st, select2nd
...VM or is there some >>> equivalent? If not, I'll add it. >> >> Is this making the resultant loop simpler? C++ without lambda's isn't >> very friendly to functors, what is the before/after effect of doing >> this? > > It's going to unify the DagInit constructors into one piece of code. > The problem now is there are two constructors. One takes a vector of > pairs and the other takes two vectors. They each make sense in their > use contexts but it results in a lot of code duplication when moving > DagInit to a uniqued pool impleme...
2009 Dec 08
0
[LLVMdev] More questions on CompilerDriver.
Hi Sanjiv, On Tue, Dec 8, 2009 at 4:41 AM, Sanjiv Gupta <sanjiv.gupta at microchip.com> wrote: > Mikhail Glushenkov wrote: >> >> > 2. Is there anyway to call a C++ hook from inside actions? >> > for example >> > (actions (case >> >         (not_empty "Wl,"), (append_cmd "$CALL(Myhook)" ))) >> >> Not yet, this is
2009 Dec 08
2
[LLVMdev] More questions on CompilerDriver.
Mikhail Glushenkov wrote: > > > 2. Is there anyway to call a C++ hook from inside actions? > > for example > > (actions (case > > (not_empty "Wl,"), (append_cmd "$CALL(Myhook)" ))) > > Not yet, this is something I'm working on right now. > Hi Mikhail, Did you get a chance to do something about this? > > > BTW, I've
2018 Nov 30
2
[RFC] Tablegen-erated GlobalISel Combine Rules
...I was wondering whether it also makes sense to allow eliding the (match) if it only has one child. It seems convenient, although having it always be required may reduce the learning curve There's no technical reason we can't for the case where there's a single child and the child is a DagInit but I'm not sure there's a good reason to make it optional. Backend writers can always define a class that tacks it on using !cons if they want. > The other point is that I have been wondering in the past whether it wouldn't make sense to add an 'any' type to TableGen, so th...
2018 Nov 27
3
[RFC] Tablegen-erated GlobalISel Combine Rules
Hi All, I've more or less finished updating the examples to the DAG style we were talking about. Hopefully I haven't forgotten anything, there was a lot to keep track of :-). Overall, I think there's a couple places where things get a a little awkward (mainly debug info) but things generally look good to me. A Simple Example def : GICombineRule<(defs reg:$D, reg:$S),