MCPcopy Create free account
hub / github.com/Samsung/UTopia / PrintLatticeKey

Method PrintLatticeKey

lib/indcallsolver/CustomCVPPass.cpp:221–232  ·  view source on GitHub ↗

Print the given CVPLatticeKey to the specified stream.

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 1

getNameMethod · 0.45

Tested by

no test coverage detected