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

Method String

ir/module.go:311–324  ·  view source on GitHub ↗

String returns the string representation of the basic block specific use- list order directive definition.

()

Source from the content-addressed store, hash-verified

309// String returns the string representation of the basic block specific use-
310// list order directive definition.
311func (u *UseListOrderBB) String() string {
312 // 'uselistorder_bb' Func=GlobalIdent ',' Block=LocalIdent ',' '{'
313 // Indices=(UintLit separator ',')+ '}'
314 buf := &strings.Builder{}
315 fmt.Fprintf(buf, "uselistorder_bb %s, %s, { ", u.Func.Ident(), u.Block.Ident())
316 for i, index := range u.Indices {
317 if i != 0 {
318 buf.WriteString(", ")
319 }
320 fmt.Fprintf(buf, "%d", index)
321 }
322 buf.WriteString(" }")
323 return buf.String()
324}
325
326// ### [ Helper functions ] ####################################################
327

Callers

nothing calls this directly

Calls 3

FprintfMethod · 0.80
IdentMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected