MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / DumpToString

Function DumpToString

tensorflow/compiler/xla/service/llvm_ir/llvm_util.h:68–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66// Dump the given LLVM entity to a string. This works for Types and Values.
67template <typename T>
68string DumpToString(const T& entity) {
69 std::string buffer_string;
70 llvm::raw_string_ostream ostream(buffer_string);
71 entity.print(ostream);
72 ostream.flush();
73 return buffer_string;
74}
75
76// Dump the given LLVM module to a string. This requires a function distinct
77// from DumpToString because the signatures of the print() methods for Values

Callers 6

EmitTupleSelectFunction · 0.85
EmitBufferIndexingGEPFunction · 0.85
ToStringMethod · 0.85
EmitHlo021TileMethod · 0.85
HandleDotMethod · 0.85
FinishVisitMethod · 0.85

Calls 1

flushMethod · 0.45

Tested by

no test coverage detected