[LLVMdev] PR1350 (Vreg subregs) questions

Chris Lattner sabre at nondot.org
Wed Jun 13 11:06:16 PDT 2007


On Wed, 13 Jun 2007, Christopher Lamb wrote:
>>  Where would you use this?  It seems that the only place that would need it
>>  is in the DAG schedulers, which turn the dags into a machineinstr stream.
>>  If so, putting it into the scheduler baseclass would make sense.
>
> It gets used in MachineInstrBuilder, MachineInstr, MRegisterInfo, and 
> ScheduleDAG. Basically any place where a vreg currently gets passed around by 
> an unsigned needs to accept the pair. In my working copy I've split it out 
> into it's own header file to reduce extraneous includes.

Ok, I suggest putting it in MachineInstr.h then.

>>  If you do something like this, I'd suggest a trivial value class that
>>  doesn't derive from std::pair.
>
> By a value class do you mean a subclass of Value or just a class with no 
> superclass?

Just a class with no superclass :)

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/



More information about the llvm-dev mailing list