Print the given CVPLatticeKey to the specified stream.
| 219 | |
| 220 | /// Print the given CVPLatticeKey to the specified stream. |
| 221 | void PrintLatticeKey(CVPLatticeKey Key, raw_ostream &OS) override { |
| 222 | if (Key.getInt() == IPOGrouping::Register) |
| 223 | OS << "<reg> "; |
| 224 | else if (Key.getInt() == IPOGrouping::Memory) |
| 225 | OS << "<mem> "; |
| 226 | else if (Key.getInt() == IPOGrouping::Return) |
| 227 | OS << "<ret> "; |
| 228 | if (isa<Function>(Key.getPointer())) |
| 229 | OS << Key.getPointer()->getName(); |
| 230 | else |
| 231 | OS << *Key.getPointer(); |
| 232 | } |
| 233 | |
| 234 | /// We collect a set of indirect calls when visiting call sites. This method |
| 235 | /// returns a reference to that set. |