Displaying 8 results from an estimated 8 matches for "i2mimap_".
2007 Jun 22
4
[LLVMdev] df_ext_iterator in LiveIntervalAnalysis
...->begin(), miEnd =
mbb->end();
mi != miEnd;
++mi) {
bool inserted = mi2iMap_.insert(std::make_pair(mi,
miIndex)).second;
assert(inserted && "multiple MachineInstr -> index mappings");
i2miMap_.push_back(mi);
miIndex += InstrSlots::NUM;
}
}
this->maxInstrIndex_ = miIndex;
//===---------------------------------------
// --> old code
//===---------------------------------------
unsigned miIndex = 0;
for (MachineFunction::iterator mbb = mf_->begin(), mbbE...
2007 Jun 22
0
[LLVMdev] df_ext_iterator in LiveIntervalAnalysis
...bb->end();
> mi != miEnd;
> ++mi) {
> bool inserted = mi2iMap_.insert(std::make_pair(mi,
> miIndex)).second;
> assert(inserted && "multiple MachineInstr -> index mappings");
> i2miMap_.push_back(mi);
> miIndex += InstrSlots::NUM;
> }
> }
> this->maxInstrIndex_ = miIndex;
> //===---------------------------------------
> // --> old code
> //===---------------------------------------
> unsigned miIndex = 0;
> for (MachineFunctio...
2007 Jun 22
0
[LLVMdev] df_ext_iterator in LiveIntervalAnalysis
...mi !=
> miEnd;
> ++mi) {
> bool inserted = mi2iMap_.insert(std::make_pair(mi,
> miIndex)).second;
> assert(inserted && "multiple MachineInstr -> index
> mappings");
> i2miMap_.push_back(mi);
> miIndex += InstrSlots::NUM;
> }
> }
> this->maxInstrIndex_ = miIndex;
> //===---------------------------------------
> // --> old code
> //===---------------------------------------
> unsigned miIndex = 0;
> for (MachineF...
2008 Apr 16
3
[LLVMdev] Possible bug in LiveIntervalAnalysis?
...nsigned StartIdx = MIIndex;
for (MachineBasicBlock::iterator I = MBB->begin(), E = MBB->end();
I != E; ++I) {
bool inserted = mi2iMap_.insert(std::make_pair(I,
MIIndex)).second;
assert(inserted && "multiple MachineInstr -> index mappings");
i2miMap_.push_back(I);
MIIndex += InstrSlots::NUM;
}
// Set the MBB2IdxMap entry for this MBB.
MBB2IdxMap[MBB->getNumber()] = std::make_pair(StartIdx, MIIndex -
1);
For empty MBBs, the last line would create a pair, where the end
element is smaller than the start element, which is a...
2009 Jan 27
1
[LLVMdev] Get Maximum Instruction Index
Hi, guys,
sometimes it would be good if I could get the maximum instruction
index from the set of live intervals. In my local version I have added
this method to LiveIntervals:
/// Return the maximum index among the instruction indices.
inline unsigned getMaxInstrIndex() const {
return i2miMap_.size() * InstrSlots::NUM;
}
Is there something like this already in LiveIntervals? Do you guys think
it could be added as a patch?
All the best,
Fernando
2008 Apr 16
0
[LLVMdev] Possible bug in LiveIntervalAnalysis?
...t; for (MachineBasicBlock::iterator I = MBB->begin(), E = MBB->end();
> I != E; ++I) {
> bool inserted = mi2iMap_.insert(std::make_pair(I,
> MIIndex)).second;
> assert(inserted && "multiple MachineInstr -> index mappings");
> i2miMap_.push_back(I);
> MIIndex += InstrSlots::NUM;
> }
>
> // Set the MBB2IdxMap entry for this MBB.
> MBB2IdxMap[MBB->getNumber()] = std::make_pair(StartIdx, MIIndex -
> 1);
>
> For empty MBBs, the last line would create a pair, where the end
> element...
2008 Apr 18
1
[LLVMdev] Possible bug in LiveIntervalAnalysis?
...hineBasicBlock::iterator I = MBB->begin(), E = MBB->end();
>> I != E; ++I) {
>> bool inserted = mi2iMap_.insert(std::make_pair(I,
>> MIIndex)).second;
>> assert(inserted && "multiple MachineInstr -> index mappings");
>> i2miMap_.push_back(I);
>> MIIndex += InstrSlots::NUM;
>> }
>>
>> // Set the MBB2IdxMap entry for this MBB.
>> MBB2IdxMap[MBB->getNumber()] = std::make_pair(StartIdx, MIIndex -
>> 1);
>>
>> For empty MBBs, the last line would create a pair, wh...
2007 Jun 22
2
[LLVMdev] df_ext_iterator in LiveIntervalAnalysis
...mi != miEnd;
>> ++mi) {
>> bool inserted = mi2iMap_.insert(std::make_pair(mi,
>> miIndex)).second;
>> assert(inserted && "multiple MachineInstr -> index mappings");
>> i2miMap_.push_back(mi);
>> miIndex += InstrSlots::NUM;
>> }
>> }
>> this->maxInstrIndex_ = miIndex;
>> //===---------------------------------------
>> // --> old code
>> //===---------------------------------------
>> unsigned miIndex...