Displaying 4 results from an estimated 4 matches for "mbbno".
2008 Feb 11
0
[LLVMdev] Some questions about live intervals
...HS, const IdxMBBPair &RHS)
> const {
> + return LHS.first < RHS.first;
> + }
> + };
> +
> class LiveIntervals : public MachineFunctionPass {
> MachineFunction* mf_;
> const TargetMachine* tm_;
> @@ -153,6 +167,23 @@
> return MBB2IdxMap[MBBNo].second;
> }
>
> + /// getMBBFromIndex - given an index in any instruction of an
> + /// MBB return a pointer the MBB
> + MachineBasicBlock* getMBBFromIndex(unsigned index) const {
> + std::vector<IdxMBBPair>::const_iterator I =
> + std::lower_bound(...
2008 Feb 08
2
[LLVMdev] Some questions about live intervals
Hi Evan,
Here is a patch for the LiveIntervalAnalysis that we discussed.
--- Evan Cheng <evan.cheng at apple.com> schrieb:
> > 1) What is the easiest way to understand which MBB a given
> instruction index belongs to? All the required information is
> available in the
> > MBB2IdxMap of the LiveIntervalAnalysis class. Would it be useful
> to add a small function
2008 Feb 11
2
[LLVMdev] Some questions about live intervals
...> > + return LHS.first < RHS.first;
> > + }
> > + };
> > +
> > class LiveIntervals : public MachineFunctionPass {
> > MachineFunction* mf_;
> > const TargetMachine* tm_;
> > @@ -153,6 +167,23 @@
> > return MBB2IdxMap[MBBNo].second;
> > }
> >
> > + /// getMBBFromIndex - given an index in any instruction of an
> > + /// MBB return a pointer the MBB
> > + MachineBasicBlock* getMBBFromIndex(unsigned index) const {
> > + std::vector<IdxMBBPair>::const_iterator I...
2008 Feb 12
0
[LLVMdev] Some questions about live intervals
...turn LHS.first < RHS.first;
>>> + }
>>> + };
>>> +
>>> class LiveIntervals : public MachineFunctionPass {
>>> MachineFunction* mf_;
>>> const TargetMachine* tm_;
>>> @@ -153,6 +167,23 @@
>>> return MBB2IdxMap[MBBNo].second;
>>> }
>>>
>>> + /// getMBBFromIndex - given an index in any instruction of an
>>> + /// MBB return a pointer the MBB
>>> + MachineBasicBlock* getMBBFromIndex(unsigned index) const {
>>> + std::vector<IdxMBBPair>::...