String returns the string representation of the basic block specific use- list order directive definition.
()
| 309 | // String returns the string representation of the basic block specific use- |
| 310 | // list order directive definition. |
| 311 | func (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 |