search for: mytargetpbqpproblembuild

Displaying 5 results from an estimated 5 matches for "mytargetpbqpproblembuild".

2010 Sep 08
3
[LLVMdev] Complex regalloc contraints
...tor and into its own class. Anyone (such as yourself, Carlos) who wants to represent more esoteric constraints in their architecture just extends this class, calls the base class to handle all the basic constraints, then performs their own pass over the function to add in their constraints: struct MyTargetPBQPProblemBuilder : public PBQPProblemBuilder { PBQP::Graph* buildProblemFor(MachineFunction *mf) { PBQP::Graph* g = PBQPProblemBuilder::buildProblemFor(mf); // Add additional constraints for my architecture here. return g; } } Any thoughts or comments? I think this should be a very straightforwar...
2010 Sep 08
0
[LLVMdev] Complex regalloc contraints
...to its own class. Anyone (such as yourself, Carlos) who wants to represent more esoteric constraints in their architecture just extends this class, calls the base class to handle all the basic constraints, then performs their own pass over the function to add in their constraints: > > struct MyTargetPBQPProblemBuilder : public PBQPProblemBuilder { > PBQP::Graph* buildProblemFor(MachineFunction *mf) { > PBQP::Graph* g = PBQPProblemBuilder::buildProblemFor(mf); > // Add additional constraints for my architecture here. > return g; > } > } > > Any thoughts or comments? I th...
2010 Sep 09
1
[LLVMdev] Complex regalloc contraints
...nyone (such as yourself, > Carlos) who wants to represent more esoteric constraints in their > architecture just extends this class, calls the base class to handle all the > basic constraints, then performs their own pass over the function to add in > their constraints: > > struct MyTargetPBQPProblemBuilder : public PBQPProblemBuilder { > PBQP::Graph* buildProblemFor(MachineFunction *mf) { > PBQP::Graph* g = PBQPProblemBuilder::buildProblemFor(mf); > // Add additional constraints for my architecture here. > return g; > } > } > > Any thoughts or comments? I thi...
2010 Sep 07
0
[LLVMdev] Complex regalloc contraints
On Sep 7, 2010, at 3:01 AM, Carlos Sanchez de La Lama wrote: > The machine I am targeting has some special requirements for some > operations, say: > > ADD or1, ir1, r5 > > would add ir1 (input reg 1) and r5 and put the result in or1 (output reg > 1). The point id that input and output regs have to go paired (this > meaning an addition of ir1 with whatever always goes to
2010 Sep 07
2
[LLVMdev] Complex regalloc contraints
Hi all, The machine I am targeting has some special requirements for some operations, say: ADD or1, ir1, r5 would add ir1 (input reg 1) and r5 and put the result in or1 (output reg 1). The point id that input and output regs have to go paired (this meaning an addition of ir1 with whatever always goes to or1, or an in general irX + whatever goes to orX). AFAIK, InstrInfo.td only allow