org.jikesrvm.compilers.opt.regalloc
Class GenericRegisterRestrictions.RestrictedRegisterSet

java.lang.Object
  extended by org.jikesrvm.compilers.opt.regalloc.GenericRegisterRestrictions.RestrictedRegisterSet
Enclosing class:
GenericRegisterRestrictions

private static final class GenericRegisterRestrictions.RestrictedRegisterSet
extends Object

An instance of this class represents restrictions on physical register assignment.


Field Summary
private  BitSet bitset
          The set of registers to which assignment is forbidden.
private  boolean noVolatiles
          additionally, are all volatile registers forbidden?
 
Constructor Summary
GenericRegisterRestrictions.RestrictedRegisterSet(ArchitectureSpecificOpt.PhysicalRegisterSet phys)
          Default constructor
 
Method Summary
(package private)  void add(Register r)
          Add a particular physical register to the set.
(package private)  void addAll(BitSet set)
          Add a set of physical registers to this set.
(package private)  boolean contains(Register r)
          Does this set contain a particular register?
(package private)  boolean getNoVolatiles()
           
(package private)  void setNoVolatiles()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bitset

private final BitSet bitset
The set of registers to which assignment is forbidden.


noVolatiles

private boolean noVolatiles
additionally, are all volatile registers forbidden?

Constructor Detail

GenericRegisterRestrictions.RestrictedRegisterSet

GenericRegisterRestrictions.RestrictedRegisterSet(ArchitectureSpecificOpt.PhysicalRegisterSet phys)
Default constructor

Method Detail

getNoVolatiles

boolean getNoVolatiles()

setNoVolatiles

void setNoVolatiles()

add

void add(Register r)
Add a particular physical register to the set.


addAll

void addAll(BitSet set)
Add a set of physical registers to this set.


contains

boolean contains(Register r)
Does this set contain a particular register?