[LLVMdev] Get Maximum Instruction Index
Evan Cheng
echeng at apple.com
Tue Jan 27 22:21:10 PST 2009
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
More information about the llvm-dev
mailing list