MCPcopy Create free account
hub / github.com/llir/llvm / String

Method String

ir/module.go:70–76  ·  view source on GitHub ↗

String returns the string representation of the module in LLVM IR assembly syntax.

()

Source from the content-addressed store, hash-verified

68// String returns the string representation of the module in LLVM IR assembly
69// syntax.
70func (m *Module) String() string {
71 buf := &strings.Builder{}
72 if _, err := m.WriteTo(buf); err != nil {
73 panic(fmt.Errorf("unable to write to string buffer; %v", err))
74 }
75 return buf.String()
76}
77
78// WriteTo write the string representation of the module in LLVM IR assembly
79// syntax to w.

Callers 4

TestAssignGlobalIDsFunction · 0.95
LLStringMethod · 0.45
StringMethod · 0.45
StringMethod · 0.45

Calls 1

WriteToMethod · 0.95

Tested by 1

TestAssignGlobalIDsFunction · 0.76