Fernando Magno Quintao Pereira
2009-Jan-27 13:35 UTC
[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
On Jan 27, 2009, at 5:35 AM, Fernando Magno Quintao Pereira wrote:> > 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?If there isn't a client for it in the public tree, it's better to keep it in your local tree for now. Thanks, Evan> > > All the best, > > Fernando > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev