#include "llvm/Analysis/LiveVar/ValueSet.h" #include "llvm/ConstantVals.h" #include std::ostream &operator<<(std::ostream &O, RAV V) { // func to print a Value const Value *v = V.V; if (v->hasName()) return O << v << "(" << v->getName() << ") "; else if (Constant *C = dyn_cast(v)) return O << v << "(" << C << ") "; else return O << v << " "; } void printSet(const ValueSet &S) { for (ValueSet::const_iterator I = S.begin(), E = S.end(); I != E; ++I) std::cerr << RAV(*I); }