--- [ Binary instructions ] ------------------------------------------------- ~~~ [ add ] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ NewAdd appends a new add instruction to the basic block based on the given operands.
(x, y value.Value)
| 11 | // NewAdd appends a new add instruction to the basic block based on the given |
| 12 | // operands. |
| 13 | func (block *Block) NewAdd(x, y value.Value) *InstAdd { |
| 14 | inst := NewAdd(x, y) |
| 15 | block.Insts = append(block.Insts, inst) |
| 16 | return inst |
| 17 | } |
| 18 | |
| 19 | // ~~~ [ fadd ] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 20 |