String returns the string representation of the use-list order directive definition.
()
| 283 | // String returns the string representation of the use-list order directive |
| 284 | // definition. |
| 285 | func (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. |
| 300 | type UseListOrderBB struct { |