21 #ifndef LLVM_ADT_INTEQCLASSES_H 22 #define LLVM_ADT_INTEQCLASSES_H 47 void grow(
unsigned N);
59 unsigned join(
unsigned a,
unsigned b);
77 assert(NumClasses &&
"operator[] called before compress()");
unsigned operator[](unsigned a) const
operator[] - Return a's equivalence class number, 0 .
unsigned findLeader(unsigned a) const
findLeader - Compute the leader of a's equivalence class.
void grow(unsigned N)
grow - Increase capacity to hold 0 .
This class represents lattice values for constants.
IntEqClasses(unsigned N=0)
IntEqClasses - Create an equivalence class mapping for 0 .. N-1.
void compress()
compress - Compress equivalence classes by numbering them 0 .
void clear()
clear - Clear all classes so that grow() will assign a unique class to every integer.
void uncompress()
uncompress - Change back to the uncompressed representation that allows editing.
unsigned getNumClasses() const
getNumClasses - Return the number of equivalence classes after compress() was called.
unsigned join(unsigned a, unsigned b)
Join the equivalence classes of a and b.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())