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

Method String

ir/module.go:285–297  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

283// String returns the string representation of the use-list order directive
284// definition.
285func (u *UseListOrder) String() string {
286 // 'uselistorder' TypeValue ',' '{' Indices=(UintLit separator ',')+ '}'
287 buf := &strings.Builder{}
288 fmt.Fprintf(buf, "uselistorder %s, { ", u.Value)
289 for i, index := range u.Indices {
290 if i != 0 {
291 buf.WriteString(", ")
292 }
293 fmt.Fprintf(buf, "%d", index)
294 }
295 buf.WriteString(" }")
296 return buf.String()
297}
298
299// UseListOrderBB is a basic block specific use-list order directive.
300type UseListOrderBB struct {

Callers

nothing calls this directly

Calls 2

FprintfMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected